Skip to content

Standalone Sysout honours gitgalaxy.sysout: DISPLAY in CICS-only estates reaches the compared file (#8243) - #8246

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8243-20261110T2329Z
Nov 11, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8243-20261110T2329Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #8243. Prerequisite of #8121 (the parked cases in handoffs/8121-parked-cases/ resume after this merges).

What changed

The det runtime's cobolrt/standalone/Sysout.java (the DISPLAY a project gets when it has no batch package, i.e. a CICS-only estate) always wrote to stdout. The batch Sysout honours -Dgitgalaxy.sysout, and the CICS harness sets that property per task and compares that file (equivalence_cics.py, <task>.sysout), so a CICS-only port's DISPLAY output never reached the compared file. The standalone write() now appends to the named file when the property is set (under a lock, same charset and LF rules as before) and writes to stdout otherwise.

Class / Sibling gaps

Class: DISPLAY/sysout routing in det-port runs without a batch package (a standalone Sysout that ignores gitgalaxy.sysout). display and displayNoAdvancing share the one write(), so both are fixed here and tested in every record charset (ISO-8859-1, IBM037, IBM1047, windows-1252, UTF-8), for both the batch and the standalone class. Sibling gaps: the two checked-in overlay copies tests/cics_crucible/ports/pc-return-immediate/PCIMMA/overlay/cobolrt/standalone/Sysout.java and .../pc-wizard/PCCONF/overlay/... are frozen copies of the old runtime; neither program DISPLAYs and no burned estate needs them, so they are left as they are (cics-crucible case PRs only).

Re-proof

det_port.py check (base origin/main): 174 of 288 ports changed, all by the 24-line Sysout.java diff alone, but only 4 call Sysout.display through the standalone class: mortgage-cmort, mortgage-csmrt, mortgage-mlist, mortgage-mpmt. All four re-proved PROVED with det_port.py run (204/204, 40/40, 91/91, 27/27 statements translated); their sysout comparison is now live (compared: true, 33 tasks) and showed 0 differing lines, because none of those scenarios executes a DISPLAY. No other changed port calls DISPLAY, so no other proof can move. The remaining 170 changed ports import the class but never call it.

Facts checked

  • pytest tests/cobol_mainframe/test_det_sysout_bytes_4702.py test_cobolrt_api.py: 86 passed, none skipped (JDK 17).
  • test_evidence.py + test_det_programs.py: 194 passed; the stale-record warning there lists harness/oracle/generator staleness for model ports, none caused by this change.
  • pr_gates.py --fast: 9/9 pass. Golden masters: the change is a runtime Java template, not parsing logic; not re-blessed.

Checklist: none.

Lessons for agents

  • det_port.py check with no GITGALAXY_LICENSE_KEY in the environment fails the base translation with a bare "non-zero exit status 1": export GITGALAXY_LICENSE_KEY=COMMUNITY_FREE_TIER first.
  • A runtime-file change marks every CICS-only port CHANGED; narrow the re-proof list with grep -rlE "Sysout\.display" over <work>/new before running det_port.py run.

🤖 Generated with Claude Code

…LAY lands in the compared file (#8243)

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 10, 2026 23:50
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 23:52
@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 November 11, 2026 00:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8246 @ 78c3db9: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42926675461/job/130237275382
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:
warning: coverage ledger: cruc-hc-eoc-error: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cruc-hc-ignore-error: stale (harness, oracle changed); refresh when convenient
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
With the provided path, there will be 289 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 240197
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is a4e224c75cad8d521b51c3f326af16ce2fb1c9bfbe479df7e9914885ab3ebc15
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 13817217847
Artifact det-sweep-ledger has been successfully uploaded! Final size is 240197 bytes. Artifact ID is 13817217847
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42926675461/artifacts/13817217847
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/0cc4d68d-c53a-497a-b5c2-9b929f0e6a71' 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

@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 11, 2026
squid-protocol and others added 2 commits November 10, 2026 19:48
…y.sysout: drop its det-sweep baseline entry, refresh its coverage ledger (#8243)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (4b8e45a) 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 11, 2026 00:53
@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 11, 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 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 11, 2026 00:58
@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 11, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 11, 2026 00:59
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 11, 2026
@squid-shepherd
squid-shepherd Bot merged commit a6726f5 into main Nov 11, 2026
113 of 150 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8243-20261110T2329Z branch November 11, 2026 03:12
squid-shepherd Bot pushed a commit that referenced this pull request Nov 11, 2026
…, HCT1BI01 (Part of #8121) (#8254)

* Equivalence cases for example-health-apis threshold inquire: HCITDB01, HCT1BI01; P128 fixed_by #8246 (Part of #8121)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Record det sweep durations for HCITDB01, HCT1BI01 (Part of #8121)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

Java DISPLAY output in a CICS-only estate goes to stdout, not the sysout file the harness compares

1 participant