Repository navigation
test: det translator reads compile options only through the one resolver (Part of #4704) - #6195
Merged
Merged
Conversation
…the one resolver (Part of #4704) DECIMAL-POINT IS COMMA is a SPECIAL-NAMES clause and the code page is the scan's recorded decode, so neither has an option reader to move; the class that could drift (TRUNC / NUMPROC / ARITH reads) is now pinned by an AST check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 23, 2026 08:41
Owner
Author
|
No description provided. |
6 tasks done
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.
What
Verification of the det translator's option reads, with a test covering the class. No engine code changed (golden-neutral).
Findings:
DECIMAL-POINT IS COMMAis a SPECIAL-NAMES clause the program states (det/source.py:decimal_comma); no compile option carries it, so there is no option reader to move ontoeffective_options.EngineCopies.pages/region_page), not from an option. The CODEPAGE option is judged only by the resolver (unhonoured(code_page)).trunc_mode,numproc_pfd,arith_extendall callcompiler_options.effective_with_defaultsover the case'seffective_options(...).layers; no other det module reads an option name.tests/cobol_mainframe/test_det_option_reads_4704.pypins this: AST scan of everydet/*.py(an option-name read outside a resolver-calling function fails; no private card reader), each reader calls the resolver, layer order (PARM then program cards), and that DECIMAL-POINT is not an option.Not touched: #4707 rows.
Checklist: done [c:5a2b9b99]
Cross-repo: none.
Lessons for agents
/home/joe/gitgalaxy/venv/bin/pythonruns these tests;pythonis not on PATH in a worktree.🤖 Generated with Claude Code