Skip to content

cics_crucible: HCUNLK ported and facade cells pass: INTO-LENGTH READ and REWRITE FROM record their events (Part of #6876) - #7569

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6876-20261102T1940Z
Nov 3, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6876-20261102T1940Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6876

Checklist: done [c:7a93f471]

What

HCUNLK (EXEC CICS UNLOCK with no key) already translated whole (#7484, #7498), but all four scenarios still failed on both Java sides: the port's READ ... INTO LENGTH ... UPDATE and REWRITE FROM used the event-free CicsTask.readForUpdate / rewrite, so the log had no READ or REWRITE event. Now:

  • det/cics_filecontrol.py: a program with a tokenless UNLOCK (_records_file_events) emits task.readInto (READ event with length) for its INTO-LENGTH READ and task.rewriteFrom for REWRITE FROM. Every other program keeps the event-free calls.
  • tests/tools/cics_crucible.py: the facade's byte-carrying second pass seeds the file again (the first pass's REWRITE showed in the second READ: data byte 14: '20' expected, got '99').
  • HCUNLK det port regenerated; baseline and report regenerated (only the 8 hc-file-unlock ported/facade cells leave the ledger); test reworked.

Evidence

  • hc-file-unlock: 8/8 java-ported + java-facade cells pass (was 0/8). Full crucible run: 416 pass, 394 fail (the java side's known RECEIVE gap), baseline diff is exactly the 8 cells.
  • det_port.py check: 258/258 ports unchanged.
  • pytest tests/cics_crucible + entity-key test: 1692 passed, 101 skipped. audit_check.py: all clear.

Class sweep

Class: INTO-form file-control commands translated to event-free CicsTask calls (the SET forms were fixed in #7434).
Sibling gaps (no burned program needs them today; each is gated off so no other port moves): READ INTO without LENGTH, READ UPDATE/REWRITE in programs without a tokenless UNLOCK, READNEXT/READPREV INTO, GTEQ/GENERIC and TOKEN READ events. The gate (_records_file_events) is the narrow part to widen when a burned program needs it.

Lessons for agents

  • A det port rebuilt with cics_crucible_det.py build must use a project whose service stubs are pristine (<work>/forge-ported/generated_before_overlay, with java_h2/src copied beside it), not java_h2: that holds the committed det port after the overlay and the rebuilt file loses its store switch.

Facts checked: pin v0.12.0 checkout matches; golden masters not run (no scanner/parsing file touched).

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 2, 2026 14:47
…EAD and REWRITE FROM events; HCUNLK port regenerated; facade byte pass reseeds files (Part of #6876)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d report regenerated; test reworked (Part of #6876)

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

squid-shepherd Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 2, 2026 20:11
@squid-shepherd

squid-shepherd Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 2, 2026 20:11
@github-actions

github-actions Bot commented Nov 2, 2026

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 November 2, 2026 20:21
@squid-shepherd

squid-shepherd Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

PR #7569 @ 270218c: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41516892911/job/125527413725
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261025.353.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261025.353/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261025.353
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: skipped
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: false
LAYOUT: calm
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: calm, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 2/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41516892911/job/125522855123
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_api.py::test_no_committed_port_or_generator_string_uses_an_internal_member
failing tests: tests/cobol_mainframe/test_cobolrt_api.py::test_no_committed_port_or_generator_string_uses_an_internal_member
errors:
fail-on-cache-miss: false
E AssertionError: assert ['cics.CicsTa...code uses it'] == []
tests/cobol_mainframe/test_cobolrt_api.py:118: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_api.py::test_no_committed_port_or_generator_string_uses_an_internal_member - AssertionError: assert ['cics.CicsTa...code uses it'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: d1931466e5f26de30f552c279a354120b682b107875703f837ab959c884a14c2
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]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 88516
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is cebd9c61e4afa9bd160238423f3de8f784642cdde0be8bcd446b74646bef28f0
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 13174924377
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 88516 bytes. Artifact ID is 13174924377
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41516892911/artifacts/13174924377
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/e73d8de6-1f52-4ec5-b5ff-b27e32b25358' 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

@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 Nov 2, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (af29561) 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 November 3, 2026 08:07
@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 Nov 3, 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 Nov 3, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 3, 2026 08:09
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 08:11
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd
squid-shepherd Bot merged commit 179f7db into main Nov 3, 2026
107 of 142 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6876-20261102T1940Z branch November 3, 2026 09:05
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