Skip to content

IDCAMS step in Java: cobolrt/job/Idcams.java agrees with the model (Part of #8881) - #8966

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8881-20261122T0140Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8881-20261122T0140Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Part of #8881. Java runtime for the IDCAMS step: cobolrt/job/Idcams.java is a second implementation of det/idcams_model.py (REPRO, DELETE, DEFINE CLUSTER / ALTERNATEINDEX / PATH, BLDINDEX, SET MAXCC, IF; same refusals by name, citing SC23-6846-60). #8880's Java item was a prerequisite and did not exist, so this ports the whole model.

  • job/ is skipped by program.runtime_files, so no generated port gains a file.
  • tests/cobol_mainframe/test_idcams_java_8881.py runs 53 scenarios (the 8880/8881 decks, a job of three steps on KSDS and ESDS bases, IF/ELSE/DO, ~35 refusals) through the model and the javac'd Java in one JVM and compares return codes, log, catalog, datasets, path records and refusal text byte for byte. A reversed sort in the Java made 5 scenarios fail, so the comparison can fail.
  • F6.md updated; cobolrt_api.json regenerated; cobolrt_rules.json gains family IDC (six rules, markers, the idcams document SC23-6846-60).
  • Hand-written files: Idcams.java, program.py, the test, F6.md, cobolrt_rules.json (5). Gates: pr_gates --fast 9/9.

Class: IDCAMS commands in a job case. Checklist: partial [c:7865474a] -- job harness wiring (#8880 item 3)

Sibling gaps

Remaining slices

Job harness wiring (#8880 item 3); an end-to-end TRANIDX job case.

Lessons for agents

  • A new .java under cobolrt/ ships in every generated port (runtime_files does rglob) and moves the cobolrt API manifest: put a harness-only file in a skipped directory and run tests/tools/cobolrt_api.py generate.
  • The Write tool turned a Java ¬ escape into a literal non-ASCII character: grep new Java for non-ASCII before committing.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 21, 2026 20:51
… authored decks (Part of #8881)

Java port of det/idcams_model.py (REPRO, DELETE, DEFINE CLUSTER / ALTERNATEINDEX / PATH, BLDINDEX,
SET MAXCC, IF, same refusal text), kept out of generated ports (runtime_files skips job/).
test_idcams_java_8881.py runs 53 scenarios through both and compares byte for byte.

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8966 @ 7757667: 1 failed check(s)

== full-suite part 1/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44974874588/job/137064948954
repro: python -m pytest -q tests
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
FAIL tests/tools/test_gate_controls.py::test_a_named_job_exists_and_the_trigger_matches_the_workflow: 17.9s 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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 1027026
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 51d3349fc240e6c1ac1eabcbb9c71e17743a28f1827c53c310b0edb1aeb22d99
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 14736091372
Artifact test-times-part-1 has been successfully uploaded! Final size is 1027026 bytes. Artifact ID is 14736091372
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44974874588/artifacts/14736091372
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/8f3434ac-22bb-4aba-90bb-75d19455117e' 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 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 02:43
@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 22, 2026
@squid-shepherd
squid-shepherd Bot merged commit 996db92 into main Nov 22, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8881-20261122T0140Z branch November 22, 2026 03:34
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