Skip to content

equivalence: a generated batch input keys a generated Db2 table (Part of #4507) - #5305

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4507-20261017T0446Z
Oct 17, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4507-20261017T0446Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4507. Most of the issue landed in #4577 (generated Db2 rows, compare_sql on batch and Java). This closes the remaining batch gap.

What changed

  • tests/tools/equivalence_inputs.py: a batch dataset's from may name a generated Db2 column (SCHEMA.TABLE.COLUMN), so a batch input can key the table. _order no longer waits on such a name as if it were a dataset.
  • New case carddemo-cobtupdt-generated (burned estate CardDemo): 14 generated TRANSACTION_TYPE rows, 40 generated INPFILE records, 35% of keys missing the table.
  • Unit tests (hit, miss, determinism, no-Db2 ordering) and an EQUIVALENCE_E2E=1 det-port proof test.
  • Wiki limits bullet and status row updated.

Evidence (det port, det_port.py run)

Both sides RC 4; table 11/11 rows equal; SQL 30/30 statements equal; 3 SQL fault runs equal (-803, -913, -913); 9/9 paragraphs, 16/20 branches. Oracle: GnuCOBOL plus our Db2 stub against real Db2. Gates: pr_gates --fast 6/6, --ratchets 8/8.

Plan changes

No evidence record committed and no mutation run: mutation.py needs a committed port and det ports are regenerated.

Sibling gaps

  • Other burned Db2 programs on hand-written rows (GenApp LGACDB01, LGAPDB01; CBSA INQACC, CRECUST; DBB CMORT; CardDemo COPAUA*): case-only, each needs its own Docker proof.
  • Det-port mutation mode (COBTUPDT, the only burned batch Db2 case).
  • cbsa-updacc-generated survivors (97/133 caught) untriaged.
  • COBTUPDT's 4 uncovered branches (line 84 IF never false; EVALUATE no-match at 151, 177, 207).
  • Plain equivalence.py run of carddemo-cobtupdt (generated Java, not det port) does not prove.

Cross-repo: none.

🤖 Generated with Claude Code

…demo-cobtupdt-generated (Part of #4507)

A batch dataset's `from` rule may now name a generated Db2 column, so COBTUPDT's INPFILE
draws its keys from generated TRANSACTION_TYPE rows (hits: -803 on add; misses: +100).
The det port proves on it: 11/11 rows, 30/30 statements, 3 SQL fault runs equal.

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 Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 17, 2026 04:58
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 04:58
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5305 @ ef0716d: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39004538905/job/117316391997
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {a3cdf164-159a-4327-9370-438400b0f843}
Region: eastus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[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 parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
echo "ground-truth parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
# #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.
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
MODE: full
##[endgroup]
ground-truth parts: failure (tested-tree skip: , plan mode: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39004538905/job/117314368255
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
FAIL tests/cobol_mainframe/test_tool_regex_redos.py::test_catches_the_3205_pattern: 15.2s 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:
archive: true
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
PYTHONUTF8: 1
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
##[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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 134329
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is ef3e0d18e66a361c9276f0abc8ca146b8c8a891605807a84099f5079365ec215
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12090667589
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 134329 bytes. Artifact ID is 12090667589
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39004538905/artifacts/12090667589
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/681fbd9e-024d-4849-bf3c-9c39861a73a6' 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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 17, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (b26a6ee) 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).

@squid-protocol squid-protocol 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 Oct 17, 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 Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 06:00
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit d666539 into main Oct 17, 2026
39 checks passed
@squid-protocol
squid-protocol deleted the churn/4507-20261017T0446Z branch October 17, 2026 06:35
@squid-protocol squid-protocol mentioned this pull request Oct 18, 2026
7 tasks done
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