Skip to content

Db2 harness: ddl_text ends an in-stream block at any // card and filters a JCL-shaped .txt; log P124 (Part of #8121) - #8170

Merged
squid-shepherd[bot] merged 16 commits into
mainfrom
churn/8121-20261108T1837Z
Nov 10, 2026
Merged

squid-shepherd[bot] merged 16 commits into
mainfrom
churn/8121-20261108T1837Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8073, #8121 (does not close it). This PR carries slice 1 (P124 logged in port_blockers.json, data only), slice 2 (the ddl_text harness fix) and slice 3 (EXEC SQL INCLUDE expands like COPY in _expanded_lines).

What changed

  • tests/tools/equivalence_db2.py ddl_text: an in-stream SQL block now ends at any // card (not only /*), and the in-stream filter also runs on a JCL-shaped member whatever its suffix (_jcl_shaped: a line starting //), so HCMobile_DB2.txt is filtered like DB2CRE.jcl.

  • tests/tools/test_equivalence_db2_ddl_text.py (new): block ended by // with no /*, block ended by /*, a .txt shaped like HCMobile (plain SQL prefix then the job), a pure-SQL .txt unchanged, symbols on both sources.

  • port_blockers.json / generated page: P124 summary updated (no new entry: the ledger allows one per issue).

  • Slice 3, tests/tools/equivalence_common.py _expanded_lines: EXEC SQL INCLUDE member END-EXEC (one line or several, CRLF, lowercase or other-directory member, nested, unresolved raises LayoutError inside the record) is expanded exactly like COPY; INCLUDE SQLCA / SQLDA are left as written, never unresolved. tests/tools/test_equivalence_sql_include.py (new, 9 tests). Real check: layout_fields on example-health-apis HCAVDB01 DFHCOMMAREA (copy_dirs = COBOL + COPYLIB) now returns 4 fields (CA-REQUEST-ID at 0 ... CA-REQUEST-SPECIFIC at 18, 32482 bytes).

Class / Sibling gaps

Slice 3 class: an embedded-SQL include of a copybook member inside a record, in every form the layout reader meets (one-line, multi-line, CRLF, lowercase or other-directory member, nested, unresolved, SQLCA/SQLDA); all handled and tested. Other EXEC SQL statements are untouched by design. Sibling gap: the Visit case data (below); proof_sweep not run here (box cics-crucible checkout is off the runner pin).

Slice 1-2 class:
Class: ddl_text passes JCL residue (DSN/RUN cards, // and /* lines) to Db2, when a SYSIN block ends at the next // card or when the JCL job is kept under a non-.jcl suffix. Members handled here: DB2CRE.jcl (blocks ending at //), HCMobile_DB2.txt (JCL-shaped .txt); the other callers of ddl_text (split_sql at L674, parse_tables at L915) inherit it. Checked on the real corpus: both files give 9 CREATE TABLE, zero //, /*, DSN, RUN lines, and create() builds all tables on the real Db2 container for both.
Slice 2 sibling gap (now fixed by slice 3): HCAVDB01 proof_sweep (det-only, scratch case, not committed) is still NOT PROVEN, earlier than the DDL: its COMMAREA is 01 DFHCOMMAREA. EXEC SQL INCLUDE HCCMAREA END-EXEC., layout_fields expands COPY only, so commarea_fields raises ValueError: max() iterable argument is empty. Different mechanism, own slice (below); recorded in P124's summary.

Remaining slices

  1. The Visit family case data (HCAVDB01, then HCIVDB01, HCV1BA01, HCV1BI01, HCV1PL01), then the proof_sweep re-check and evidence levels as counts.

Checklist: partial [c:54bc7fde] -- Visit family harness blocker (ddl_text) fixed; case data is left (INCLUDE layout fixed in slice 3)
Checklist: partial [c:581bd365] -- no scenarios yet; the INCLUDE fix has landed, the case data is next

Gates

pytest new tests + test_equivalence_db2_seed.py + test_port_blockers.py pass; audit_check.py all clear; pinned ruff format clean; pr_gates --fast 9/9; --ratchets 8/9 (ports fails only on the box's cics-crucible pin mismatch, no port touched). No engine change: no golden bless.

Cross-repo: none.

🤖 Generated with Claude Code

Lessons for agents

ddl_text assumed every in-stream block ends with /* and that only .jcl holds JCL. A harness fix can uncover the next blocker behind it: HCAVDB01 now stops at EXEC SQL INCLUDE in layout_fields, which COPY-only expansion does not see.

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 9, 2026 14:22
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 9, 2026 14:22
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (3eafa17) 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 9, 2026 14:40
auto-merge was automatically disabled November 9, 2026 14:40

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 9, 2026
@squid-protocol squid-protocol changed the title Log the example-health-apis Db2 DDL blocker; Visit family cases wait on a harness fix (Part of #8121) Db2 harness: ddl_text ends an in-stream block at any // card and filters a JCL-shaped .txt; log P124 (Part of #8121) Nov 9, 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 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 9, 2026 14:43
@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 9, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 9, 2026 14:44
@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 9, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (5a4f39a) 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 9, 2026 17:53
auto-merge was automatically disabled November 9, 2026 17:53

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 9, 2026
squid-protocol and others added 2 commits November 9, 2026 18:25
…Part of #8121)

Record the estate in RUNTIME_USED_BY (and register C18), state the Gap-1 keys it
does not record, and record its translator option and LOCALCCSID, so the two
ground-truth option audits pass on the merge of main.

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

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (ad2d9d3) 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 9, 2026 23:31
@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 shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 9, 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 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 9, 2026 23:46
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 9, 2026 23:47
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 10, 2026 00:37
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8170 @ b02aee2: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42723136915/job/129543007957
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cruc-hc-file-unlock,cruc-hc-file-unlock: --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cruc-hc-file-unlock,cruc-hc-file-unlock:
errors:
det cruc-hc-file-unlock NOT PROVEN not proven; 6 scenarios cover 9/9 paragraphs and 9/9 branches
warning: coverage ledger: cruc-hc-eoc-error: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cruc-hc-ignore-error: stale (harness, oracle changed); refresh when convenient
det cruc-hc-file-unlock: NOT PROVEN (not proven; 6 scenarios cover 9/9 paragraphs and 9/9 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
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
##[endgroup]
With the provided path, there will be 272 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 224502
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 72c175aece1f64e123521e30396c780585d512ec6c5784b12b1908086d1a439f
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 13724146252
Artifact det-sweep-ledger has been successfully uploaded! Final size is 224502 bytes. Artifact ID is 13724146252
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42723136915/artifacts/13724146252
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/d97cb69b-6b9f-4b83-a14e-78dfa0693ef3' 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 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 11:00
@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 10, 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 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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