Skip to content

tests/tools: Det Sweep's Db2 runners follow the Db2 area (Part of #6278) - #6293

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6278-20261023T2045Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6278-20261023T2045Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6278, slice 2 of 6. Det Sweep's Db2 runners (17% of PR runner-minutes) now follow the Db2 area.

Owner decisions

Owner OK (2026-10-23): workflow edits allowed for this item (allow_workflows). (No workflow edit was needed.)

What changed

  • change_classifier.db2_area(path, db2_cases): the Db2 area = det translator + runtime (gitgalaxy/tools/cobol_to_java/**, incl. cobolrt and the forges), the Db2 harness / oracle / image files, the det proof tools, det-sweep.yml, and a Db2 case's directory.
  • det_sweep_plan.plan(): on a pull request, a plan that went full for a reason outside that area (e.g. tests/tools/equivalence.py, gnucobol.Dockerfile) keeps the non-Db2 sweep but sets db2_cases to [], so no Db2 shard starts. Nightly, manual, push and shepherd:full still prove every Db2 case; a Db2 case change still narrows to its Db2 runners; translator changes still go through the port diff.
  • Docs/agent-config/prose/probe-test-only PRs were already none (.md and non-inputs never matched DET_INPUTS); det still reports (0 shards + 0 Db2 shards passes the aggregate step). Pinned with real file lists.
  • test_ground_truth_plan._closure skips pattern holders, as change_classifier.ground_truth_scopes already does (a planner importing the classifier otherwise made the guard reach the classifier's named tools).
  • Lazy import of the classifier: Evidence Refresh's sparse checkout holds det_sweep_plan.py alone.

Checklist: done [c:acc791c8]

Class / Sibling gaps

Class: det-sweep plan outputs that start Db2 runners. Members: full-by-harness-core (fixed), full-by-oracle Dockerfile (fixed), narrow (already Db2-case only), ports (port diff decides), none (already none), nightly/full label (unchanged by design).
Gap: a harness-core change (equivalence.py) no longer re-proves Db2 on a PR; nightly Evidence Refresh's Db2 job and shepherd:full are the net.

Verification

pr_gates --fast 7/7; tests/tools/test_det_sweep_plan.py (new), test_ground_truth_plan, test_change_classifier, test_ci_shard_plan, test_det_sweep_fast pass. Not run: --ratchets (no golden/engine change).

Lessons for agents

  • pr_gates --fast (gen-docs) leaves ignored docs/language_status/evidence_report/<estate>/ dirs in the worktree; they make change_classifier.py --check / test_the_committed_list_is_fresh report stale. Delete them before regenerating docs_read_by_tests.txt.
  • A new string in tests/cobol_mainframe/* naming a docs / .claude path makes the ground-truth job read it; put planner tests in a test_*_plan.py file (a pattern holder).

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

det_sweep_plan.plan() asks change_classifier.db2_area: on a pull request a plan that went full for a reason outside
the Db2 area (a harness core file, an oracle Dockerfile) keeps the non-Db2 sweep and drops the Db2 half. Nightly,
manual and shepherd:full runs are unchanged; a none plan still lets the required det check report.

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 23, 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 23, 2026 20:56
@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