Skip to content

HCCWRP: counter at its limit is a flag; scenarios W and L, 4/8 to 8/8 branches (Part of #7589) - #7593

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/7589-20261103T1134Z
Nov 3, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/7589-20261103T1134Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

HCCWRP (item c:29f78375 of #7589): the counter-at-limit condition is now a flag, not MAXIMUM + 1, which overflows for the default X'FF..FF' DCOUNTER maximum (owner ruling). Done in the C stub (ggcics_counters.c, ggcics_inquire.c) and in Java CicsTask (cobol_to_java_transaction_forge.py).

  • A GET that assigns the maximum sets the flag. Without WRAP at the limit it is SUPPRESSED (RESP 72 / RESP2 101) and the counter is unchanged, whatever its INCREMENT. With WRAP it returns the minimum, the counter becomes minimum + increment, and the flag clears.
  • The flag is persisted as an optional 6th counters.cfg field. A legacy seed with value > MAXIMUM is normalised to value = MAXIMUM plus the flag, so older seeded tests keep working.
  • Still refused by name: an INCREMENT carrying a not-yet-at-limit counter past 2^64-1 ("GET COUNTER past a doubleword"), and QUERY of a counter at its limit when MAXIMUM is the doubleword maximum.
  • cruc-hc-counter-increment-wrap/case.json: scenarios wrap (HC73 W) and limit (HC73 L) added, notes updated.
  • test_cics_runtimes.py X45 table: cases G and H (which pinned the old refusal) updated; a default-max W/L walk and the past-a-doubleword refusal added, on both the stub and the Java twin.

Evidence (levels, with counts)

  • HCCWRP net branches: 4/8 before, 8/8 after; paragraphs 7/10 before, 10/10 after (ladder_refresh.py, det port proved on 4 scenarios; det_sweep_coverage file regenerated).
  • Executed-equivalent: 4 scenarios, det port vs GnuCOBOL plus stub, 0 diffs. The oracle is GnuCOBOL plus our stub, not z/OS.
  • test_cics_runtimes.py + counter-ops + shared-namespace test files: 288 passed.
  • det_port.py check: 236 ports marked changed because the shared CicsTask.java moved (78 lines). Re-proved the ports that reach counters: cruc-hc-counter-increment-wrap, cruc-hc-counter-shared-namespace, cruc-hc-dcounters, cruc-hc-named-counters, zecs-zecsnc, zecs-zecs001: all PROVED.
  • pr_gates.py --fast 9/9, --ratchets 9/9, audit_check.py all clear.

Class / Sibling gaps

Class: every counter operation that compared against max + 1 or v > max to mean "at limit" (GET, GET WRAP, REWIND, UPDATE, DEFINE COUNTER/DCOUNTER, QUERY, DELETE, fullword LENGERR) in both the stub and CicsTask. All of them now use the flag. Sibling gaps: (1) tests/cics_crucible/test_counter_ops_runtimes_5039.py has no REWIND-at-default-maximum rows and its Java generator prints signed values for the D-form get (kept out for the 5-file cap; diff saved by the worker). (2) The harness seeds counters.cfg with 3-token rows (tests/tools/equivalence_cics.py:2110), so a scenario cannot start a counter at its limit; unneeded here. (3) Counter-using ports not re-proved individually (GenApp lgastat1/lgtestc1/lgacdb01/lgacus01/lgwebst5, cbsa-dbcrfun) rely on the unchanged non-limit path.

Remaining slices

  • Add the REWIND-at-default-maximum rows and the unsigned-print fix to test_counter_ops_runtimes_5039.py (sibling gap 1).
  • Optional harness slice: let a scenario seed the at-limit flag (another worker owns the harness files).

Checklist: done [c:29f78375]

🤖 Generated with Claude Code

…W and L, 4/8 to 8/8 branches (Part of #7589)

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 3, 2026
@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 12:04
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 12:05
@github-actions

github-actions Bot commented Nov 3, 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 3, 2026 12:18
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

PR #7593 @ 8a4dce7: 1 failed check(s)

== measure (shard 2/2) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41632722284/job/125906803144
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
cobol-stub:fail 1, cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:fail 2, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:fail 1, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 2, java-ported:pass 2, java:fail 2
cobol-stub:pass 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 4, java-ported:pass 4, java:fail 4
cobol-stub:fail 2, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-facade:pass 1, java-ported:fail 2, java-ported:pass 1, java:fail 3
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 1, java-ported:pass 1, java:fail 1
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 6, java-ported:pass 6, java:fail 6
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 2, java-ported:pass 2, java:fail 2
cobol-stub:pass 9, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 9, java-ported:fail 9, java:fail 9
cobol-stub:pass 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 6, java-ported:fail 6, java:fail 6
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 3, java-ported:pass 3, java:fail 3
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:pass 3, java:fail 3
CICS crucible: 199 pass, 179 fail, 0 unsupported (378 cells)
##[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 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cics-crucible-shard-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 16036
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is c393781387231676a35cc419c8ac08f723f4a53a348f56d4970abc917bb68653
Finalizing artifact upload
Artifact cics-crucible-shard-2 successfully finalized. Artifact ID 13229532292
Artifact cics-crucible-shard-2 has been successfully uploaded! Final size is 16036 bytes. Artifact ID is 13229532292
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41632722284/artifacts/13229532292
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/be60d333-bd34-4a83-be21-2759f096c87f' 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

…ow-passing ledger cells (Part of #7589)

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

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (97e210e) 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 14:00
@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.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 3, 2026 15:59
@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 16:16
@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 disabled auto-merge November 3, 2026 18:30
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

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 Nov 3, 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 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 19:09
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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 disabled auto-merge November 3, 2026 19:51
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

PR #7593 @ 2ca03f0: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41699845563/job/126164311023
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 54898b74c23fde5556c9b3c3a2290865feef0dfe
Build Date: 2026-10-28T21:51:42Z
Worker ID: {33b39e32-c87b-4f0f-8604-c53b1c4912db}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261101.360.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261101.360/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261101.360
##[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 3/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/41699845563/job/126154717705
repro: fails on main too: fix main (then merge origin/main here)
errors:
fail-on-cache-miss: false
FAIL tests/tools/test_evidence_report.py::test_check_fails_on_an_edited_report: 25.1s is over 15s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 944402
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7aac2119359241e7338f2cb55df83ca21743856c027129996543d4c6f136d681
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 13264154793
Artifact test-times-part-3 has been successfully uploaded! Final size is 944402 bytes. Artifact ID is 13264154793
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41699845563/artifacts/13264154793
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/5054b4e7-7076-43e3-8caa-89adf0fa9dab' 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 3, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 19:57
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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 removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd
squid-shepherd Bot merged commit eea5a5f into main Nov 3, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7589-20261103T1134Z branch November 3, 2026 21:14
squid-protocol added a commit that referenced this pull request Nov 3, 2026
 ported into cics_task_counters.py)

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.

1 participant