Skip to content

det CICS: filecontrol/conditions/containers/faults mixins take cics_common (Part of #7153) - #7253

Closed
squid-protocol wants to merge 6 commits into
mainfrom
churn/7153-slice2-mixins
Closed

squid-protocol wants to merge 6 commits into
mainfrom
churn/7153-slice2-mixins

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7153. Slice 2 of 4, the same fix as #7249 for the remaining det CICS mixins.

Cross-repo / stacking: this branch has #7249's branch merged in (cics_common.py is not on main yet). Merge #7249 first; this PR then reduces to the 5 files below. Nothing re-runs elsewhere.

File-cap exception: stacked on #7249, whose 4 files (cics.py, cics_common.py, cics_taskcontrol.py, gen.py) show in the diff against main until it merges; this PR's own diff is 5 hand-written files.

Class / Sibling gaps

Class: py/cyclic-import. A det CICS mixin imports shared helpers (CicsError, _arg, _msg, G_jstr, ...) back from det/cics.py inside its methods; CodeQL counts function-level imports, and G_jstr reaches det/gen.py, which imports cics.py.

member status
cics_filecontrol.py (13 method imports) fixed here
cics_containers.py (4 method + 2 function imports) fixed here
cics_conditions.py (3 imports; TERMINAL_OPTIONS, AID_KEYS, DFHRESP now straight from gitgalaxy.standards) fixed here; joins the spec-importer list
cics_faults.py (3 imports) fixed here
cics_taskcontrol.py, cics_common.py #7249

Sibling gaps (different mechanism, not here): dli.py, dyncall.py, gen.py <-> cics.py cycles (need Untranslatable in a leaf); tests/tools/equivalence* and doom_speedrun cycles.

Remaining slices

  1. Untranslatable leaf for dli/dyncall/gen. 3. tests/tools cycles.

Change

  • Each mixin imports its helpers at module level from det/cics_common.py (G_jstr is jstr); cics.py is untouched and still re-exports them.
  • test_cics_spec.py: the no-back-import AST test now covers all four mixins; cics_conditions is listed as a spec importer.
  • Golden-neutral: import paths only.

Facts checked: test_cics_spec, test_det_translate, test_cics_family_split, tests/cics_crucible (-k det/cics) pass. CodeQL itself not run locally.

🤖 Generated with Claude Code

@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 04:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 04:53
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Comment on lines +28 to +40
from gitgalaxy.tools.cobol_to_java.det.cics_common import ( # noqa: F401 -- re-exported for the mixins' old importers
_SEND_CONTROL,
REGION_PAGE,
CicsError,
KeylengthInvreq,
_arg,
_msg,
_one_of,
_option,
_requires,
jstr,
region_page,
)
from gitgalaxy.standards.cics.commands.terminal import SEND_CONTROL_OPTIONS
from gitgalaxy.standards.cics.model import GroupKind

_SEND_CONTROL = frozenset(SEND_CONTROL_OPTIONS) # #4413: its device controls
try:
if " ".encode(declared) == b"\x40":
page = declared
except (LookupError, UnicodeError):
# Conflicts:
#	tests/core_engine/test_cics_spec.py
@squid-shepherd
squid-shepherd Bot disabled auto-merge October 31, 2026 05:07
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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

CI shepherd: the head of this PR (fdacba4) 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 05:10
@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 squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. 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 05:33
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 05:34
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge October 31, 2026 05:41
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #7253 @ fdacba4: 6 failed check(s)

== crucible (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512046/job/124454881405
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
errors:
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/_temp/shards/cics-crucible-shard-*/results.json'
##[error]Process completed with exit code 1.
log tail:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
No files were found with the provided path: /home/runner/work/_temp/cics_crucible. No artifacts will be uploaded.
##[group]Run echo "measure: cancelled, runner-tests: success"
echo "measure: cancelled, runner-tests: success"
[ "cancelled" = "success" ] && [ "success" = "success" ]
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
measure: cancelled, runner-tests: success
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/5c2470b8-4633-4b5c-aea4-a58279447dbb' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== db2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512045/job/124451163503
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
##[error]The operation was canceled.
log tail:
GITGALAXY_ORACLE_PREBUILT: 1
EQUIVALENCE_E2E: 1
GITGALAXY_ORACLE_STRICT: 1
GITGALAXY_TEST_TIMES: /home/runner/work/_temp/times-db2.json
##[endgroup]
bringing up nodes...
bringing up nodes...
##[error]The operation was canceled.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/7495ffcb-ea91-4708-b1c5-d0e17b9b2ed1' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
Terminate orphan process: pid (2829) (pytest)
Terminate orphan process: pid (2853) (java)
Terminate orphan process: pid (2888) (python)
Terminate orphan process: pid (2891) (python)
Terminate orphan process: pid (2894) (python)
Terminate orphan process: pid (2898) (java)
Terminate orphan process: pid (2914) (java)
Terminate orphan process: pid (2930) (java)
Terminate orphan process: pid (39000) (python)
Terminate orphan process: pid (39192) (python)
Terminate orphan process: pid (39284) (python)
Terminate orphan process: pid (39340) (python)
Terminate orphan process: pid (40907) (python)
Terminate orphan process: pid (41087) (python)
Terminate orphan process: pid (41191) (java)

== equivalence-e2e (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512045/job/124454937342
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: equivalence-e2e
##[group]Run echo "plan: $PLAN, db2 $DB2_PLAN ($PLAN_RESULT), shards: $SHARDS, db2: $DB2"
echo "plan: $PLAN, db2 $DB2_PLAN ($PLAN_RESULT), shards: $SHARDS, db2: $DB2"
# runner-minutes of this run so far (every finished job but this one), for the PR body / the nightly trend
gh api --paginate "repos/$REPO/actions/runs/$RUN_ID/jobs?per_page=100" --jq '.jobs[] | select(.name != "equivalence-e2e" and .completed_at != null) | [.name, ((.completed_at | fromdateiso8601) - (.started_at | fromdateiso8601))] | @TSV' > j
python3 - <<'PY' >> "$GITHUB_STEP_SUMMARY"
rows = [ln.rstrip("\n").split("\t") for ln in open("jobs.tsv", encoding="utf-8") if ln.strip()]
total = sum(float(s) for _, s in rows)
print("## Equivalence E2E runner time")
print("| job | seconds |\n|---|---|")
print("".join(f"| {n} | {float(s):.0f} |\n" for n, s in rows), end="")
print(f"\n**{total / 60:.1f} runner-minutes** across {len(rows)} job(s)")
PY
# #4935: a tree the PR run of this workflow proved green: the gate skipped the plan and every job after it
if [ "$SKIP" = "true" ]; then test "$PLAN_RESULT" = "skipped" && test "$SHARDS" = "skipped" && test "$DB2" = "skipped"; exit; fi
test "$PLAN_RESULT" = "success"
if [ "$PLAN" = "none" ]; then test "$SHARDS" = "skipped" && test "$DB2" = "skipped"; exit; fi
test "$SHARDS" = "success"
# #6664: a skipped db2 is green only when the plan said none (no input of the Db2 files changed)
if [ "$DB2_PLAN" = "none" ]; then test "$DB2" = "skipped"; else test "$DB2" = "success"; fi
shell: /usr/bin/bash -e {0}
env:
PLAN: run
DB2_PLAN: run
PLAN_RESULT: success
SKIP:
SHARDS: cancelled
DB2: cancelled
GH_TOKEN: ***
REPO: squid-protocol/gitgalaxy
RUN_ID: 41171512045
##[endgroup]
plan: run, db2 run (success), shards: cancelled, db2: cancelled
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512046/job/124454882278
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard 1/2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512045/job/124451163653
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
##[error]The operation was canceled.
log tail:
........................................................................ [ 31%]
........................................................................ [ 34%]
........................................................................ [ 37%]
........................................................................ [ 41%]
........................................................................ [ 44%]
........................................................................ [ 48%]
.s...................................................................... [ 51%]
........................................................................ [ 55%]
........................................................................ [ 58%]
........................................................................ [ 62%]
..................s..................................................... [ 65%]
........................................................................ [ 68%]
........................................................................ [ 72%]
##[error]The operation was canceled.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/2b751f48-9d73-4554-aedc-793f9d61223b' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
Terminate orphan process: pid (3293) (pytest)
Terminate orphan process: pid (3317) (java)
Terminate orphan process: pid (3352) (python)
Terminate orphan process: pid (3355) (python)
Terminate orphan process: pid (3359) (java)
Terminate orphan process: pid (3375) (java)
Terminate orphan process: pid (40365) (python)
Terminate orphan process: pid (48373) (python)
Terminate orphan process: pid (48407) (java)

== shard 2/2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41171512045/job/124451163506
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
##[error]The operation was canceled.
log tail:
........................................................................ [ 47%]
........................................................................ [ 51%]
........................................................................ [ 55%]
........................................................................ [ 59%]
........................................................................ [ 63%]
........................................................................ [ 67%]
........................................................................ [ 71%]
........................................................................ [ 75%]
........................................................................ [ 79%]
........................................................................ [ 83%]
........................................................................ [ 87%]
........................................................................ [ 91%]
........................................................................ [ 95%]
##[error]The operation was canceled.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/36d10d14-c339-478e-81b8-f43eed8fb12f' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
Terminate orphan process: pid (3044) (pytest)
Terminate orphan process: pid (3068) (java)
Terminate orphan process: pid (3103) (python)
Terminate orphan process: pid (3106) (python)
Terminate orphan process: pid (3110) (java)
Terminate orphan process: pid (3126) (java)
Terminate orphan process: pid (26118) (python)
Terminate orphan process: pid (32329) (python)
Terminate orphan process: pid (53911) (python)

@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-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 enabled auto-merge (squash) October 31, 2026 06:04
@squid-shepherd squid-shepherd Bot removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 31, 2026 06:28
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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
# Conflicts:
#	tests/core_engine/test_cics_spec.py
@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 (1dfd774) 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 06:33
@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: #7257 already landed this slice (four cics mixins on cics_common); this branch now equals main. Slices 3-4 of #7153 remain.

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.

2 participants