Skip to content

HLASM slice 7: storage-byte instructions in the per-instruction differential (Part of #5859) - #6948

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/5859-20261028T2152Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/5859-20261028T2152Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5859.

Checklist: partial [c:e14a97c1] -- a general assembler path for non-zECS programs (no burned program needs it, so it stays frontier); MVI and high/low collation after CLC/CLI are not compared.

What

Slice 7 of the HLASM front end: the per-instruction differential (tests/tools/hlasm_diff.py) now observes storage bytes, not only registers. 97 new snippets (168 in all) run through the independent interpreter and, lowered, through cobc in the pinned oracle image (one container). Result: 0 differences.

Covered: MVC (lengths 1-8, offsets, =C literal), XC, OC X,X (halfword/fullword zero test), CLC/CLI (equal / not equal), STCM (all 15 masks, and at an offset), IC (a byte, and IC R,TBL(R)), TR (1, 3, 8 bytes over a 256-byte table).

Bytes are compared raw for binary data and as characters for text (interpreter EBCDIC, lowering ASCII: design doc assumption 3), so text cases keep to letters. A test pins that the lowering refuses BC high/low after CLC/CLI by name (EBCDIC collates differently).

No lowering or interpreter defect surfaced, so det/hlasm.py and hlasm_interp.py are unchanged; no golden bless.

Files (3 hand-written)

tests/tools/hlasm_diff.py, tests/cobol_mainframe/test_hlasm_diff_5859.py, docs/language_status/hlasm_cics_design.md.

Gates

hlasm diff/interp/lowering tests (150 passed), audit_check.py clean, pr_gates --fast --ratchets (see below). The cobc test is slow-marked (about 12 s locally for one container).

Sibling gaps

  • MVI: outside the interpreter subset; no burned program known to need it.
  • A general (non-zECS) assembler path: no burned program needs it (frontier).

Lessons for agents

  • Labeled DC data in a lowered snippet must come after LTORG; OC is accepted only as a zero test on an H/F field, XC only on non-binary fields.
  • An uninitialised DFHEISTG field is spaces under cobc and zeros in the interpreter: zero what you compare.

🤖 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 28, 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 28, 2026 22:15
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 22:19
@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 22:37
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6948 @ fc4b79d: 2 failed check(s)

== equivalence-e2e (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40778530123/job/123140216797
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: none
PLAN_RESULT: success
SKIP:
SHARDS: failure
DB2: skipped
GH_TOKEN: ***
REPO: squid-protocol/gitgalaxy
RUN_ID: 40778530123
##[endgroup]
plan: run, db2 none (success), shards: failure, db2: skipped
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== shard 3/3 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/40778530123/job/123134118632
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
failing tests: tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[cbsa-updacc]
errors:
fail-on-cache-miss: false
E AssertionError:
E Traceback (most recent call last):
E equivalence_db2.Db2ImagePullError: INFRASTRUCTURE (not a code defect): could not pull the pinned Db2 image icr.io/db2_community/db2@sha256:2de8151713c261843868c5c3411b57be6ae79d99d70a5b3022337836776bfda6 after 4 attempts: docker p
tests/cobol_mainframe/test_porting_loop_tooling.py:227: AssertionError
FAILED tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[cbsa-updacc] - AssertionError:
Traceback (most recent call last):
equivalence_db2.Db2ImagePullError: INFRASTRUCTURE (not a code defect): could not pull the pinned Db2 image icr.io/db2_community/db2@sha256:2de8151713c261843868c5c3411b57be6ae79d99d70a5b3022337836776bfda6 after 4 attempts: docker pull -q i
##[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
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-equivalence-e2e-shard-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 45319
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4eaaee3d6d30a48f0f1d3c6759f53aa310283e34627cf7b6955e4ea23122defc
Finalizing artifact upload
Artifact test-times-equivalence-e2e-shard-3 successfully finalized. Artifact ID 12856108936
Artifact test-times-equivalence-e2e-shard-3 has been successfully uploaded! Final size is 45319 bytes. Artifact ID is 12856108936
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40778530123/artifacts/12856108936
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/c1ea2d16-13b7-415c-a63b-eb9f846d49c6' 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 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 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 22:45
@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 28, 2026
@squid-shepherd
squid-shepherd Bot merged commit 2eb9bea into main Oct 28, 2026
38 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5859-20261028T2152Z branch October 28, 2026 23:26
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