Skip to content

test_sweep_plan: PR-skip classifier edge cases; re-measured skip share (Part of #5166) - #6517

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5166-20261024T1808Z
Oct 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5166-20261024T1808Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: done [c:1d258b56]

Part of #5166 (A, last checklist item). The classifier (sweep_plan.py) and its both-direction tests were already on main (#5191, #5225, #6342, #6362); this adds the remaining edge cases and re-measures.

What changed

  • test_sweep_plan.py: push/schedule/dispatch ignore a given PR file list (always full); replay counts a PR with a missing/None/nameless files as full.
  • docs/ci.md: fresh --replay 50 numbers.

Measured (python tests/tools/sweep_plan.py --replay 50, 2026-10-24)

23 of the last 50 merged PRs (46%) would have skipped the ReDoS sweeps; 576 s serial per run, so about 221 serial runner-minutes saved (~9.6 per skipped run). The earlier sample (38 of 50, 76%) was a different PR mix.

Class / Sibling gaps

Class: the PR-skip classifier must skip only when no changed file is a sweep input, and run in every other case (events, label, empty/unreadable/partial diff, renames, near-miss paths, import-closure guard). Every member is covered by tests in test_sweep_plan.py. Sibling planners (ground_truth_plan.py, det_sweep_plan.py, audit_skip_plan.py) have their own test files; not re-audited here.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 24, 2026 14:10
… missing files; re-measured skip share (Part of #5166)

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 18:20
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 18:23
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6517 @ 5f6ff74: 2 failed check(s)

== full-suite (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/40120221018/job/120954040512
repro: fails on main too: fix main (then merge origin/main here)
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {5e8ce145-df09-4141-aa9a-2f270978edae}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40120221018/job/120951353822
repro: python -m pytest -q tests/tools/test_db2_wait_bound.py::test_planner_wait_constant_is_the_workflows_wait
failing tests: tests/tools/test_db2_wait_bound.py::test_planner_wait_constant_is_the_workflows_wait
errors:
fail-on-cache-miss: false
tests/tools/test_db2_wait_bound.py:61: AssertionError
FAILED tests/tools/test_db2_wait_bound.py::test_planner_wait_constant_is_the_workflows_wait - assert 2700 == 3300
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 210373
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is c2e32a6bd92d053114a77606b58eb5d29c19cbab3e890801cf58925d31424787
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12571073327
Artifact test-times-part-3 has been successfully uploaded! Final size is 210373 bytes. Artifact ID is 12571073327
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40120221018/artifacts/12571073327
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9e1983f8-69aa-47c6-84d2-e6206872c35c' 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 24, 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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol 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 24, 2026
@squid-protocol
squid-protocol merged commit 0d854b9 into main Oct 24, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the churn/5166-20261024T1808Z branch October 24, 2026 19:36
@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