Skip to content

test: guard against a driver import in the always-used det closure (Part of #7274) - #7275

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7274-guard
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7274-guard

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Main's Mainframe Ground Truth (#7274) failed on 34120ac2e in test_a_det_module_change_stales_the_cases_that_import_it_or_translate_with_it: a gen.py edit staled every case. A merge race between #7264 and #7255 left a lazy det.gen import in cics_filecontrol.py inside the always-used closure; #7266 already fixed it (test passes at HEAD, 22 passed). This PR adds a direct guard, test_no_always_used_det_module_imports_a_driver_back, that names the offending importer.

Class

Class: a function-level import in an always-used det module (cics*, source, cvda closure) pulls a driver (gen/program/sql/refine) into every case's fingerprint. Siblings swept: every det/*.py (only program.py imports gen/sql, correctly, driver-only). Negative control: the guard fails on the old cics_filecontrol.py.

Closes #7274 once main's run 41184216843 (HEAD) succeeds; it was queued when checked.

Cross-repo: none.

Lessons for agents

Two PRs that are each green can break an import-closure test together; guard the closure directly.

🤖 Generated with Claude Code

…t of #7274)

The red run was a merge race (#7264 + #7255): cics_filecontrol.py's lazy
import of det.gen pulled the driver into every case's fingerprint. #7266
fixed it; this names the importer if it recurs.

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 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 08:58
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 09:06
@squid-shepherd
squid-shepherd Bot merged commit 825971a into main Oct 31, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7274-guard branch October 31, 2026 09:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

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.

main is red: Mainframe Ground Truth

1 participant