Skip to content

Pin translator layouts of shipped system members: DFHEIBLK, SQLCA, SQLDA, DFHAID, DFHBMSCA (Part of #5694) - #6309

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5694-20261024T0041Z
Oct 24, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5694-20261024T0041Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:10702107] -- the five members' arithmetic is pinned; the engine still has no entry for a system-member record, so engine mode keeps the translator's layout (by design, nothing to consume).

Part of #5694. Test-only slice: tests/cobol_mainframe/test_det_system_member_layout.py.

What it pins

  • IBM's documented layouts of the translator's shipped members: DFHEIBLK 85 bytes (every EIB offset), SQLCA 136 (SQLCODE @12 and SQLWARN0 @120, where the SQL lowering reads them), SQLDA header 16 + SQLVAR stride (44 at z/OS's 4-byte POINTER, 52 at the translator's 8), DFHAID / DFHBMSCA one byte each, back to back.
  • The shipped text, scanned as an estate copybook under another name, gets the engine's layout and agrees with the translator's in check mode (all five consumed, none own). So the translator's arithmetic for these members is the engine's.

Class / Sibling gaps

Class: record layouts the translator computes alone because the engine skips the system member. Members DFHAID, DFHBMSCA, DFHEIBLK, SQLCA, SQLDA: all pinned (sizes, offsets, engine agreement on the same text).
Sibling gaps: none inside this class for the burned programs (CardDemo COCRDUPC, COUSR01C, COTRN02C; CBSA UPDACC use these members). Not covered: system members the translator does not ship (CMQ* stand-ins are separate; MQ copybooks stay refused, mainframe-evidence-policy section 6). SQLDA at z/OS's POINTER width is arithmetic only here: the translator's layout is at 8.

Remaining slices

Making the engine itself lay out system members from its own stand-ins (engine change, golden-neutral decision needed) is not done; no burned program needs it today.

Facts checked: SQLCODE @12 / SQLWARN0 @120 match det/sql.py constants; test_det_engine_layout.py toy estate pattern reused; pr_gates --fast 7/7 pass; tree-wide guards 200 passed; time ratchet 0 over limit. Not run: --ratchets (test-only, no engine/golden/port input changed); the translator extra is present so the det test ran (not skipped).

🤖 Generated with Claude Code

#5694)

DFHAID, DFHBMSCA, DFHEIBLK, SQLCA and SQLDA are skipped by the engine, so the translator lays
them out alone. Pin IBM's documented sizes and offsets (DFHEIBLK 85, SQLCA 136, SQLVAR stride
at the POINTER width, one-byte constants), and check the shipped text as an estate copybook
agrees with the engine's layout in check mode.

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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 00:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 00:46
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6309 @ 268a6cb: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40046588474/job/120731675911
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {ae307d2f-9d40-415e-ae1f-0ba13619cf51}
Region: westus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[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: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/40046588474/job/120730091702
repro: stale base (main changed these tests since this branch): git merge origin/main
failing tests: tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
tests/tools/test_change_classifier.py:88: AssertionError
FAILED tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh - AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 195918
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 8e8ddb74db8dc0e8e79ea11d872cf42c598352653a7dac61c0ac3331a0f71592
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12542225269
Artifact test-times-part-1 has been successfully uploaded! Final size is 195918 bytes. Artifact ID is 12542225269
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40046588474/artifacts/12542225269
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8afcc3ae-7ae5-4f32-99c7-5e9cb38e9025' 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-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6309 @ 265b7c5: 1 failed check(s)

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40047605861/job/120733254591
repro: python -m pytest -q tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
failing tests: tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
tests/tools/test_change_classifier.py:88: AssertionError
FAILED tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh - AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 195218
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 401030406559f653cfe6bad306e828e9a9dd03a5be799584b91c4b80b1b9a793
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12542146205
Artifact test-times-part-1 has been successfully uploaded! Final size is 195218 bytes. Artifact ID is 12542146205
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40047605861/artifacts/12542146205
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/99536152-c886-4185-8bf8-db6005a5b043' 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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 24, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (2019ccf) 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).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 01:19
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit eefc4c1 into main Oct 24, 2026
35 checks passed
@squid-protocol
squid-protocol deleted the churn/5694-20261024T0041Z branch October 24, 2026 01:28
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