Repository navigation
test: guard against a driver import in the always-used det closure (Part of #7274) - #7275
Merged
Merged
Conversation
…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]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Main's Mainframe Ground Truth (#7274) failed on
34120ac2eintest_a_det_module_change_stales_the_cases_that_import_it_or_translate_with_it: agen.pyedit staled every case. A merge race between #7264 and #7255 left a lazydet.genimport incics_filecontrol.pyinside 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.pyimports gen/sql, correctly, driver-only). Negative control: the guard fails on the oldcics_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