Skip to content

COBOL: PERFORM x(i) TIMES with a subscripted or qualified count is no paragraph call (Fixes #5637) - #5661

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5637-20261019T1608Z
Oct 19, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5637-20261019T1608Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #5637.

Change

calls_out (cobol.py) already skipped PERFORM name TIMES (#4305) but only when TIMES followed the name directly. The negative lookahead now also accepts an optional subscript / reference modification (WS-COUNT(WS-SLOT), (1:2), one nested paren level, whitespace or a line break before it) and OF/IN qualification (WS-N OF WS-REC(2) TIMES).

Class table

Member Status
PERFORM id TIMES, PERFORM lit TIMES already handled (#4305), now tested fixed+free
PERFORM id(sub) TIMES (incl. spaced, multi-line, nested, ref-mod) fixed here
PERFORM id OF rec[(sub)] TIMES fixed here (same lookahead)
PERFORM VARYING / UNTIL / WITH TEST / TEST / FOREVER already handled, now tested fixed+free
PERFORM PARA id(sub) TIMES still calls PARA (asserted)

Test: tests/extraction/languages/test_cobol_perform_times_subscript_5637.py (fails without the fix, passes with it).

Gates

pr_gates --fast 6/6, --ratchets 8/8 pass, crucible_check.py both legs PASS (golden masters unchanged, no re-bless).

Cross-repo

None.

🤖 Generated with Claude Code

… paragraph call (Fixes #5637)

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 19, 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 19, 2026 16:23
@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 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 16:25
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Copy link
Copy Markdown
Owner Author

PR #5661 @ d769988: 3 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39285089947/job/118172652059
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {8cb8ec3a-5725-4661-9e84-8bd1bdb9a7f2}
Region: eastus2
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: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39285089947/job/118168714666
repro: python -m pytest -q tests/core_engine/test_national_names.py::test_every_cobol_word_class_takes_the_full_width_digits_and_hyphens
failing tests: tests/core_engine/test_national_names.py::test_every_cobol_word_class_takes_the_full_width_digits_and_hyphens
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: [A-Za-z0-9_-]
tests/core_engine/test_national_names.py:172: AssertionError
FAILED tests/core_engine/test_national_names.py::test_every_cobol_word_class_takes_the_full_width_digits_and_hyphens - AssertionError: [A-Za-z0-9_-]
##[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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 182108
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 3e0639defb193a11477885ca8083ae51899da45893029d8f8be33ab9fe54184a
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12203840200
Artifact test-times-part-1 has been successfully uploaded! Final size is 182108 bytes. Artifact ID is 12203840200
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39285089947/artifacts/12203840200
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/44fdac4c-c284-4e93-90d4-d60d9ada9e76' 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

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39285089947/job/118168714837
repro: python -m pytest -q tests/core_engine/test_national_names.py::test_every_mainframe_letter_class_accepts_the_national_letters
failing tests: tests/core_engine/test_national_names.py::test_every_mainframe_letter_class_accepts_the_national_letters
errors:
fail-on-cache-miss: false
E AssertionError: gitgalaxy/standards/language_standards/languages/cobol.py: [A-Za-z0-9_-]
tests/core_engine/test_national_names.py:42: AssertionError
FAILED tests/core_engine/test_national_names.py::test_every_mainframe_letter_class_accepts_the_national_letters - AssertionError: gitgalaxy/standards/language_standards/languages/cobol.py: [A-Za-z0-9_-]
##[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 182071
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 191fab1f4b63e157cad355b7a4566dd0fd2474971eb5f4bfe3ff0b55a71a0c37
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12202574112
Artifact test-times-part-2 has been successfully uploaded! Final size is 182071 bytes. Artifact ID is 12202574112
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39285089947/artifacts/12202574112
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/12a312d1-22fe-468e-b670-693de0a13c4a' 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 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 and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (48c2efa) 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 shepherd:merge Maintainer: merge when green (auto-merge, squash). 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:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 18:44
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 7c8725a into main Oct 19, 2026
66 checks passed
@squid-protocol
squid-protocol deleted the churn/5637-20261019T1608Z branch October 19, 2026 19:17
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.

COBOL: PERFORM x(i) TIMES with a subscripted count is recorded as a call to paragraph x

1 participant