Skip to content

ci: sweeps skip engine parts outside their import closure; PRs run tests/cobol_mainframe once (Part of #5166) - #5225

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5166-20261016T0727Z
Oct 16, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5166-20261016T0727Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5166 (remaining boxes after #5191 / #5179).

What

Two ways a PR stops paying for tests it cannot affect or that another required job already runs. Main push, nightly, manual and full-suite-gate.yml still run every test.

  1. Sweep inputs narrowed. ENGINE_NON_INPUTS in tests/tools/sweep_plan.py: gitgalaxy/tools/cobol_to_java/, gitgalaxy/tools/terabyte_log_scanning/, gitgalaxy/standards/cics/ and the two COBOL controllers are no longer sweep inputs. None is in the static import closure of tests/extraction. test_no_engine_non_input_is_in_the_sweeps_import_closure recomputes that closure (function-level imports and parent packages included) and fails if a listed path enters it. Still an allow-list: anything unlisted stays an input.
  2. tests/cobol_mainframe/ once on PRs. mainframe-ground-truth.yml runs the whole directory whenever a ground-truth input changed, and a PR that changed none cannot move it. The full-suite plan step writes PYTEST_ADDOPTS=--ignore=tests/cobol_mainframe to $GITHUB_ENV on pull_request only. The pytest command line and marks array are untouched (CI critical path: full-suite parts balanced by least_duration, durations refreshed (Part of #5133, #5162) #5223 edits that line). Workflow edit: one if appended to the existing plan step in smoke-test.yml.

Class table

Member Status
extraction ReDoS sweeps on engine-only-outside-closure PRs handled (1)
tests/cobol_mainframe duplicated in full-suite and Ground Truth handled (2)
cultural_gauntlet, test_unicode_gauntlet, test_scan_path_independence_4058 sibling gap: their inputs are gitgalaxy/**, little to gain
core_engine *_redos_sweep (~0.1 min) unmarked, stays
top-10 hand speedups (part C) open

Seconds (modeled from .test_durations; CI wall times need a run)

  • Serial suite (minus evidence_components): 56.9 min. Of it: sweeps 17.9, tests/cobol_mainframe 20.2.
  • Replay of the last 60 merged PRs: sweeps skipped 20 -> 25 (33% -> 42%).
  • Average serial minutes per PR: 50.9 before -> 29.2 after (-21.7, -43%); about 17.0 -> 9.7 per part over three parts.
  • A PR touching only the cobol_to_java translator: 56.9 -> ~18.8 serial (sweeps and mainframe tests both off).
  • Collect-only, tests/ minus evidence_components: 21397 on main/nightly, 16388 on a PR (the 5009 are all in tests/cobol_mainframe, which Ground Truth runs).

Tests / gates

  • tests/tools/test_sweep_plan.py: 81 pass (plain pytest from /tmp): each new non-input family, a mixed diff, the closure guard, workflow structure (PR only, not on the pytest line, Ground Truth still runs the whole directory).
  • pr_gates --fast 6/6; --ratchets 8 pass, 0 fail, 0 skipped. No golden bless.

Cross-repo

None. docs/ci.md also edited by #5223: merge main, not rebase.

Lessons for agents

  • PYTEST_ADDOPTS via $GITHUB_ENV adds pytest options without touching a contended command line.
  • A "files the tests do not read" list needs an import-closure guard, not just a grep.

🤖 Generated with Claude Code

…sts/cobol_mainframe once, in Ground Truth (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 16, 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 16, 2026 07:37
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 07:37
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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