Skip to content

ci: deselect the extraction ReDoS sweeps on a PR with no sweep input (Part of #5166) - #5191

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5166-20261015T1254Z
Oct 15, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5166-20261015T1254Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5166 (part A; part B landed in #5169 / #5171).

What

A pull request that changes no sweep input deselects the extraction ReDoS sweeps in the full-suite parts. Push, nightly, manual, the shepherd:full label, an empty or unreadable diff and full-suite-gate.yml always run them. full-suite still runs and reports on every PR.

  • redos_sweep marker (pyproject.toml), applied by a tryfirst hook in tests/conftest.py to tests under tests/extraction/ whose name has redos or linear_on_pathological. It runs before pytest's -m deselection and pytest-split's slicing.
  • tests/tools/sweep_plan.py: an ALLOW-list of non-inputs (docs, .claude/, other workflows, tests/cobol_mainframe/, tests/equivalence/, tests/tools/), as ground_truth_plan.py does. An unlisted path is an input, so an omission can only keep a sweep, never drop one. INPUTS (the engine, tests/extraction/, tests/conftest.py, pyproject.toml, requirements, smoke-test.yml, full-suite-gate.yml, the planner) win.
  • smoke-test.yml full-suite-part: a plan step, then -m "not golden_crucible and not redos_sweep" only when its output is exactly none (a bare -m replaces addopts, so golden_crucible is repeated). The checkout is fetch-depth: 0 on a PR so the diff has a merge base. No other workflow is touched.
  • docs/ci.md: one paragraph.

Class table

Member Status
tests/extraction tests named *redos* / *linear_on_pathological* (748 marked) handled
tests/core_engine *_redos_sweep (~23, ~0.1 min) always-on, not marked
full-suite-gate.yml matrix unchanged, runs everything
extraction sweeps under other names sibling gap

Evidence

  • Collect-only, tests/extraction: 9619 tests; -m "not golden_crucible and not redos_sweep" keeps 8870 (749 deselected = 748 sweeps + 1 golden_crucible). Across tests/, -m redos_sweep selects 748.
  • Replay of the last 60 merged PRs' file lists through the planner: 26 (43%) would deselect the sweeps; the rest touch an input.
  • tests/tools/test_sweep_plan.py (67 tests, run as plain pytest from /tmp): one path per input family -> full, one per non-input family -> none, mixed diffs, non-PR events, label, empty / unreadable diff, an import guard (no extraction test imports a non-input module), marker == name rule and -m sees it, a core_engine test is not marked, workflow structure.
  • Gates: pr_gates --fast 6/6 pass; --ratchets 8 pass, 0 fail, 0 skipped. No golden bless (no parsing change).

Cross-repo

None.

To watch on the first CI run

Part balance: pytest-split slices after deselection, so a skipped run's three parts should be balanced by the remaining tests' durations.

Lessons for agents

  • A workflow step that runs git diff origin/main...HEAD needs fetch-depth: 0 on the checkout; the default shallow clone has no merge base and the planner would silently fall back to "full" every time.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 15, 2026 13:08
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 13:13
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5191 @ c3cfb4f: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38740196899/job/116441072706
repro: python -m pytest -q tests
errors:
fail-on-cache-miss: false
FAIL tests/tools/test_sweep_plan.py::test_the_marker_selects_exactly_the_name_rule_and_m_deselects_it: 11.1s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid["fn (a: i32, b: i32)"] - Known limitation: No block shielding for args inside strings
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
8182 passed, 20 skipped, 4 xfailed, 3 xpassed, 4 warnings in 463.60s (0:07:43)
##[group]Run python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-3.json"
python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-3.json"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
FAIL tests/tools/test_sweep_plan.py::test_the_marker_selects_exactly_the_name_rule_and_m_deselects_it: 11.1s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
8209 tests checked, 1 over the per-test limit
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/62ba2f3d-ea83-4f06-af81-e9248b01a3ff' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 15, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5191 @ 20416bd: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38744841651/job/116458826732
repro: python -m pytest -q tests
errors:
fail-on-cache-miss: false
FAIL tests/tools/test_evidence_report.py::test_a_translator_merge_without_a_refresh_fails_the_release_gate_and_a_refresh_passes: 123.0s is over 2x its baseline 52.3s (make it faster, or mark it slow with a reason)
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid["fn (a: i32, b: i32)"] - Known limitation: No block shielding for args inside strings
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
8183 passed, 20 skipped, 4 xfailed, 3 xpassed, 4 warnings in 534.73s (0:08:54)
##[group]Run python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-3.json"
python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-3.json"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
FAIL tests/tools/test_evidence_report.py::test_a_translator_merge_without_a_refresh_fails_the_release_gate_and_a_refresh_passes: 123.0s is over 2x its baseline 52.3s (make it faster, or mark it slow with a reason)
8210 tests checked, 1 over the per-test limit
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/1dab66c9-6633-4cac-8c56-f2c5817a2f97' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 15, 2026
…ratchet text, keep ReDoS sweeps section)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (c7582b2) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (c7582b2) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 15, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 16:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

…weeps and Fewer PR jobs sections)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant