Skip to content

det/CICS: cics_filecontrol imports Untranslatable at module top (Fixes #7269) - #7271

Closed
squid-protocol wants to merge 3 commits into
mainfrom
churn/7269-20261031T0813Z
Closed

squid-protocol wants to merge 3 commits into
mainfrom
churn/7269-20261031T0813Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Main's red GitGalaxy Smoke Tests (#7269): test_a_leaf_det_module_imports_nothing_back_from_cics_or_gen[cics_filecontrol] failed since #7260 added function-local imports of det.cics and det.gen in FileControlCommands.set_target.

origin/main has since taken a fix of its own (the function-local import now comes from det.cics_common). This PR merged it and goes one step further: Untranslatable is imported at module top beside CicsError, with no local import left. No behaviour change. Merge it, or close it if main's form is preferred; either way the next main run turns the issue green.

Class

Item Status
Function-local import of det.cics / det.gen in a leaf det module (#7153 rule, CodeQL py/cyclic-import) fixed in cics_filecontrol.py; the other 8 listed leaf modules checked clean; the AST test covers all 9

Sibling gaps: none.

Facts checked: the only failure in run 41178636578 was that test (1 failed, 11001 passed); reproduced locally; test_cics_spec.py 46 passed after the merge; ruff audit no new findings. Golden masters untouched.

Cross-repo: none. #7266 touched cics_filecontrol.py in another hunk; rebased by merge.

Lessons for agents

A new det leaf-module method takes shared names from det.cics_common at module top, never from a local from ...det.cics/gen import.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 31, 2026 04:16
…af cics_common, no function-local det.cics/det.gen import (Fixes #7269)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 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:34
@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
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 08:37
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 31, 2026 08:58
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #7271 @ b94c219: 1 failed check(s)

== db2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41185182990/job/124491578929
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (1c64347) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft October 31, 2026 11:14
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 31, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Closing: this branch now adds nothing over main (three-dot diff is empty; main took the same fix) and #7269 is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant