Skip to content

det SORT/MERGE/RELEASE/RETURN: pin the parse of the whole accepted and refused phrase class (Part of #4268) - #7236

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4268-20261031T0152Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4268-20261031T0152Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

SORT (USING/GIVING, INPUT/OUTPUT PROCEDURE), MERGE, RELEASE and RETURN are already parsed (det/stmt.py _sort_merge, _release, _return) and translated (cobolrt/Sort.java) on main; the issue's "no parser" evidence is stale. This PR adds tests/cobol_mainframe/test_sort_verbs_parsed_4268.py, which pins the parse of the whole class: every accepted phrase combination (SORT/MERGE x USING/GIVING/PROCEDURE/mixed, THRU, KEY/DUPLICATES/COLLATING, format-2 table SORT, RELEASE FROM, RETURN INTO with AT END / NOT AT END), the named-hole refusals for malformed statements, and a guard that no burned program uses these verbs.

Checklist: done [c:336a82a2]

Facts checked

  • Run against GnuCOBOL in test_det_programs.py (INPUT/OUTPUT PROCEDURE, USING/GIVING, MERGE USING/GIVING and USING/OUTPUT PROCEDURE) and test_cobol_sort_vectors.py.
  • No burned program uses SORT/MERGE/RELEASE (grep of .mainframe_corpora: comments and CICS RETURN only), so the SORT equivalence case is not a burned-estate item.
  • 15 tests pass (plain pytest from an unrelated cwd too); audit_check.py all clear. Test-only: no golden bless.

Class sweep / Sibling gaps

Class: SORT-family statement parsing. All siblings covered above. Remaining checklist items are other criteria: running utility steps in a job (c:ac8b71e6), multi-step job case (c:5944f8ad), register F4 text (c:9e003ccd). No burned program needs any of them for SORT verbs.

Cross-repo: none.

🤖 Generated with Claude Code

…d refused phrase class (Part of #4268)

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 01:59
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 02:07
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 31, 2026 02:32
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #7236 @ 7d1e3c6: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41157924466/job/124416154985
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {587ebcee-56da-4ca8-a7d3-9dbd83985ddf}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261025.353.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261025.353/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261025.353
##[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: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: select
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: select)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41157924466/job/124415323979
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
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
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:
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
##[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 618547
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 6e50261fd17ea0d0cdc25a3ce3529813b13a143ac5e5109a464b061aebc2a5e6
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 13026368655
Artifact test-times-part-1 has been successfully uploaded! Final size is 618547 bytes. Artifact ID is 13026368655
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41157924466/artifacts/13026368655
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/59c5aec6-ec76-4826-a32e-f6e21823da94' 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 Oct 31, 2026
@squid-shepherd squid-shepherd Bot added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 31, 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 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 02:39
@squid-shepherd squid-shepherd Bot 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 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 35d92f1 into main Oct 31, 2026
38 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4268-20261031T0152Z branch October 31, 2026 03:28
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