Skip to content

sql_statement_data: an EXEC SQL CALL row carries the routine name (Part of #5736) - #6332

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5736-20261024T0236Z
Oct 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5736-20261024T0236Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5736. Checklist: done [c:6a180fa3]

What

The required half of #4304 is already merged (COBOL #4374, PL/I #6310). This lands its optional half: the routine an EXEC SQL CALL names is now a structured field. extract_sql_statements adds routine (schema.proc, quoted names kept) on CALL rows only; sql_statement_data.routine_name stores it; the rehydrator restores it (a pre-change DB restores none). CALL :HV names no routine and carries no key.

Facts checked

  • No COBOL/PL/I file in the mainframe corpora (1,757 files) holds EXEC SQL CALL: no burned program consumes the column yet (pinned in a test).
  • No golden mentions statement_text/the table columns, so no re-bless was needed.
  • Tests: test_sql_statement_data.py, the two *_exec_sql_call_4304 tests, test_db2_repositories.py, test_galaxy_ir.py: 105 passed, 1 skipped. audit_check.py: all clear.

Sibling gaps

Lessons for agents

  • extract_sql_statements blanks quoted text in body; read a quoted name from statement.

🤖 Generated with Claude Code

…rt of #5736)

The optional half of #4304: `CALL [schema.]proc` is stored as routine_name (schema.proc),
NULL for other verbs and for `CALL :HV`. Restored through the delta scan; a pre-change DB restores none.

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 24, 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 24, 2026 02:50
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:53
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6332 @ 103a186: 1 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40055857092/job/120760958803
repro: python -m pytest -q tests/test_source_reads.py::test_no_source_read_loses_a_byte
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:146: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 200915
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2674b5b57490affed53a91b70ecee83262a831b049e18b52c3d6c3cb99a28852
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12545908816
Artifact test-times-part-2 has been successfully uploaded! Final size is 200915 bytes. Artifact ID is 12545908816
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40055857092/artifacts/12545908816
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/48093a93-49aa-40f9-aabb-da9a92082274' 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-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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 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 Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 3c73dec into main Oct 24, 2026
57 checks passed
@squid-protocol
squid-protocol deleted the churn/5736-20261024T0236Z branch October 24, 2026 04: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