Repository navigation
inventory: fallback_parse reads program text only, not sequence/identification areas (Part of #5106) - #5323
Merged
Conversation
…dentification areas (Part of #5106) fallback_parse ran its EXEC CICS / SQL / FUNCTION / verb regexes over raw fixed-form source, so a multi-line EXEC block read sequence numbers as words (`RETRIEVE 01327507`) and a verb in columns 73-80 or a comment was counted. program_text() blanks columns 1-6 and 73+ and empties comment lines; free-form source is left whole. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 17, 2026 10:02
squid-protocol
enabled auto-merge (squash)
October 17, 2026 10:06
Contributor
4 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5106 (first scanner-input gap).
What
fallback_parse(gitgalaxy/tools/readiness/inventory.py) ran itsEXEC CICS/EXEC SQL/FUNCTION/ verb regexes over raw fixed-form source. A multi-lineEXECblock therefore read sequence numbers (columns 1-6, 73-80) as words (RETRIEVE 01327507), and a verb in the identification area or in a comment line was counted. Newprogram_text()blanks columns 1-6 and 73+ and empties comment lines (column 7*//); free-form source (>>SOURCE FORMAT FREE) is returned whole. Line count is kept.Class table
fallback_parseEvidence
tests/cobol_mainframe/test_feature_inventory.py: sequence numbers in cols 1-6 / 73-80 over a multi-lineEXEC CICS, comment verb, identification-area verb, free-form.pr_gates --fast6/6,--ratchets8 pass / 0 fail / 0 skipped. test_feature_inventory, test_support_matrix, test_readiness_report, test_assess: 84 passed, 6 nightly skips.Finding (not fixed here)
The committed CardDemo
feature_inventoryfixture is already stale on main: it still has theRETRIEVE 01327507-style keys, but with the MQ stand-in copybooks (#5236) those programs no longer reachfallback_parse, so a rescan drops them (plus statement/data-type count shifts,COPY CMQGMOV/CMQODVgaps gone). Reproduced with this fix disabled, so it is not caused by this PR.--checkis nightly-only (GITGALAXY_NIGHTLY=1), andtest_assess.test_carddemo_sequence_numbers_never_reach_the_reportasserts the stale keys exist, so refreshing the fixture needs that test's premise dropped. Left for a follow-up.🤖 Generated with Claude Code