Skip to content

JCL oracle tier 1: 28 more IF/THEN/ELSE answers, bare ABEND / RUN evaluated (Part of #8413) - #8451

Merged
squid-shepherd[bot] merged 6 commits into
mainfrom
churn/8413-20261113T1956Z
Nov 14, 2026
Merged

squid-shepherd[bot] merged 6 commits into
mainfrom
churn/8413-20261113T1956Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #8418 (Part of #8413, IF / THEN / ELSE / ENDIF). Does not close it.

Checklist: partial [c:c0e6aa54] -- #8418 landed the 18-scenario IF/THEN/ELSE level; this adds 28 more and the evaluator fix they exposed. PROC-step IF scenarios stay pinned as known gaps until slice 2.
Checklist: partial [c:e2b88820] -- only pins the reader's PROC-step gap (7 scenarios); PROC resolution itself is not done.

What this adds

  • tests/equivalence/jcl/fixture/IFFLOW.jcl + ifflow_scenarios.json: 28 IBM-written IF/THEN/ELSE answers (z/OS MVS JCL Reference SA23-1385, IF/THEN/ELSE/ENDIF relational expressions), written before the evaluator ran, including the literal NOT sign (stored as UTF-8). Evaluator reproduces 20; 8 are pinned in IF_KNOWN_GAPS (7 need the reader to expand EXEC PROC; abn-a2-s0c4 needs IF-construct ids, IBM Example 9 re-evaluation).
  • gitgalaxy/core/jcl_flow.py: a bare ABEND / stepname.RUN in an IF (IBM: means = TRUE) was refused; now evaluated. Header refusal list updated.
  • tests/cobol_mainframe/test_jcl_flow.py, test_jcl_flow_level_fixture.py: expectations updated, tests pinning the gaps.

Class / Sibling gaps

Class: IF/THEN/ELSE/ENDIF relational-expression forms the evaluator must accept or refuse by name (RC, ABEND, ABENDCC, RUN, NOT and the glyph, bare keyword forms, nested, PROC-step). Covered here: bare ABEND and bare RUN forms, the NOT glyph. Sibling gaps: (1) stepname.procstepname.RC/RUN/ABEND inside a PROC: reader does not expand EXEC PROC (7 scenarios pinned), slice 2. (2) IF-construct ids / Example 9 re-evaluation after an abend in a THEN clause: not modelled, needs a reader change. (3) bare RUN with no stepname is still refused. (4) Slices 3-5 (GDG, restart, data flow) untouched.

Remaining slices

Slices 2-5 of #8413, one PR each (PROC resolution first: needs jcl_flow to carry inner step rows).

Gates

audit_check all clear; test_source_reads, test_generated_branch, test_change_classifier pass; 39 jcl_flow tests pass. No golden / ratchet run: no parser or golden input changed. Branch merged with main (clean). pr_gates --fast: lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet pass; affected ran 79 files, 2140 passed, 1 failed: test_container_datatype_change_reach_5005.py::test_no_burned_put_names_a_data_type_but_char (CICS corpus census, no JCL link), which fails identically on a clean origin/main worktree with this box's corpora (pre-existing, not caused by this branch).

Lessons for agents

  • churn selfcheck crashes with UnicodeDecodeError when a committed file holds a non-UTF-8 byte (a raw 0xAC NOT sign): store fixtures as UTF-8.

Hand-written files: 5 (jcl_flow.py, test_jcl_flow.py, test_jcl_flow_level_fixture.py, IFFLOW.jcl, ifflow_scenarios.json).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 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 14, 2026 00:53
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 00:53
@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 14, 2026 01:06
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8451 @ 6856ab4: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43537163705/job/132272996779
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
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261111.196.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261111.196/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261111.196
##[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: busy
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: busy, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43537163705/job/132268990008
repro: python -m pytest -q tests/cobol_mainframe/test_docker_build_retry.py::test_every_dockerfile_fetch_retries_and_nothing_is_swallowed
failing tests: tests/cobol_mainframe/test_docker_build_retry.py::test_every_dockerfile_fetch_retries_and_nothing_is_swallowed
errors:
fail-on-cache-miss: false
assert not any("|| true" in ln for ln in body), f"{path.name}: a failed step must fail the build"
E AssertionError: Dockerfile: RUN apt-get update && apt-get install -y --no-install-recommends
tests/cobol_mainframe/test_docker_build_retry.py:134: AssertionError
FAILED tests/cobol_mainframe/test_docker_build_retry.py::test_every_dockerfile_fetch_retries_and_nothing_is_swallowed - AssertionError: Dockerfile: RUN apt-get update && apt-get install -y --no-install-recommends
##[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: 0b905c6b6205213244499b7c6bbe858d9168c9b23e007e943955a221668abd29
PYTHONUTF8: 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
##[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 172368
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b552479a88d44a5822fe800a8fd826f8fa54510e03aa81214e01dc30d3fe78cd
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 14089938425
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 172368 bytes. Artifact ID is 14089938425
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/43537163705/artifacts/14089938425
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/7382b7ab-9cec-4972-8b3c-890631b494a4' 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 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 14, 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 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 14, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (c0a699c) 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 14, 2026 02:28
@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 14, 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 14, 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 14, 2026 02:31
@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 14, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 02:31
@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 14, 2026
@squid-shepherd
squid-shepherd Bot merged commit ad131d6 into main Nov 14, 2026
119 of 155 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8413-20261113T1956Z branch November 14, 2026 03:40
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