Skip to content

JclFlow: run / bypass evaluator over the job_flow rows, reproduces the 14 FLOW scenarios (Part of #4891) - #7670

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4891-20261104T0731Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4891-20261104T0731Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4891 (slice 2 of 3; slice 1 was #7654).

What

gitgalaxy/core/jcl_flow.py: JclFlow(rows).run(job, given) takes the STEP rows of job_flow.jcl_job_flow and, per step that starts, an RC or abend, and returns run / bypass per step (plus highest RC). It reads EXEC COND (tests, EVEN, ONLY, bypassed/unstarted-step tests false) and the reader's if_cond (relations, NOT, AND / OR, stepname.RC / RUN / ABEND / ABENDCC, highest-RC-so-far, abend flush). The old test_there_is_no_flow_evaluator_yet pin is replaced by a test that reproduces every expect of all 14 FLOW scenarios; test_jcl_flow.py adds operator spellings, abend / ABENDCC, the given contract and the refusals. Core README row and F4 register note updated.

Evidence

  • 14 / 14 FLOW scenarios reproduced; 27 tests in the two files pass; no test over 1 s.
  • pr_gates --fast 9/9; --ratchets 9/9 (cics-spec, ports, port-surface, estate, fact-crosscheck, completeness, ground-truth, det-mutation, time); pre-PR tree-wide guard tests 305 pass.
  • Golden masters not re-blessed: no parsing logic (detector, language_standards, prism) touched; the new module is not imported by the scan pipeline.
  • Assumptions A1-A4 are the ones named in scenarios.json; no answer was loosened. Refused by name (JclFlowRefused): AND/OR mixed without parentheses, more than 8 COND tests (7 with EVEN/ONLY), a COND test on a PROC step, a bare ABEND / RUN keyword, IF RC before any step executed, ordering comparison on ABENDCC.

Class / Sibling gaps

Class: JCL step-flow semantics in IBM's JCL Reference (EXEC COND, IF/THEN/ELSE/ENDIF), members as listed in the level fixture. Handled here: COND tests / EVEN / ONLY, IF relations on RC, stepname.RC, RUN, ABEND, ABENDCC, NOT, AND, OR, nested IFs (the reader joins them with AND), abend flush (A3). Sibling gaps: JOB-statement COND (IBM text not found; refused in the fixture), COND inside THEN/ELSE (nothing in IBM's pages), the job's final completion code (JES matter), RESTART/RD/checkpoint (not fetched, no burned estate uses CHKPT), cancel/time-expiry/scheduling abends (no answer worth comparing), PROC-step qualified references (a.b; refused by name here, needs proc expansion).

Remaining slices

Slice 3: a burned case (CardDemo DEFGDGD / TRANEXTR, COND=(n,op,step) and IF RC=0 in BLDCIDB2.prc) driving JclFlow from real job_flow rows; hand-written files: the case, its test, the register note. Restart/checkpoint last, refused by name.

🤖 Generated with Claude Code

…es the 14 FLOW scenarios (Part of #4891)

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

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 07:55
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 07:55
@github-actions

github-actions Bot commented Nov 4, 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 4, 2026 07:59
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR #7670 @ b278c4c: 1 failed check(s)

== Small audits (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41795463634/job/126458396149
repro: no local equivalent; read the check page
errors:
##[error]Process completed with exit code 1.
log tail:
{
echo "## ⚠️ This PR modifies a golden-crucible fixture"
echo ""
echo "Files changed ($(echo "$CHANGED" | wc -l) golden-master part(s)):"
echo '' echo "$CHANGED" | head -n 100 echo ''
echo ""
echo "These files should only ever change via `tests/tools/update_golden_master.py`,"
echo "and the PR description should explain why GitGalaxy's output was expected to"
echo "change. Reviewers: confirm the description covers this before approving."
echo "For the semantic diff: `python tests/tools/bless_scope.py --from-head tests/golden_master_audit`."
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
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
BASE_REF: main
##[endgroup]
No golden master fixture changes in this PR.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/6c45a63d-109a-4989-b5d9-1a657aef2470' 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 4, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 08:13
@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 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 08:14
@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 4, 2026
@squid-shepherd
squid-shepherd Bot merged commit dc9dbf1 into main Nov 4, 2026
115 of 148 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4891-20261104T0731Z branch November 4, 2026 09:05
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