Repository navigation
Split the det CICS translator's command dispatch into a family registry (Part of #5274) - #7439
Conversation
…ry (Part of #5274) Cics._command was a 570-line chain, so a new command edited det/cics.py and plan-held any other CICS slice. It is now a loop over COMMAND_FAMILIES, and each family answers through its own `dispatch`. New mixins, moved verbatim: counters, terminal, program, queues, storage, web, system. ENQ / DEQ join task control so they stay ahead of the counter family's catch-all refusal. det/cics.py drops from 2,341 to about 950 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| def receive_map(self, opts: dict, ind: str) -> list[str]: | ||
| # #4737 (X28): ASIS -- IBM: "lowercase characters in the 3270 input data stream are not translated to uppercase". | ||
| # The operator's input reaches the program as typed (CicsTask.receive), which is what ASIS asks for | ||
| as_is = "ASIS" in opts # noqa: F841 (the option is honoured by doing nothing: no translation exists to switch off) |
|
No description provided. |
|
PR #7439 @ 3383671: 3 failed check(s) == Analyze (python) (failure) -- real == CodeQL (failure) -- real == Pre-gate (Vault Sentinel, X-Ray, Supply Chain) (failure) -- real |
…gs (Part of #5274) Every mixin defined `dispatch`, so Cics inherited conflicting attributes and relied on class-qualified calls. Each family now has its own method and the registry holds those. Also initialises the LINK locals CodeQL flagged, drops stale test imports and repeated inner imports, and gives the type-checking stub a docstring body. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The inline format string scored 4.84 on the pre-gate's entropy check, over its 4.8 limit, now that the small module brings it inside the scanned first 8 KB. Nothing about the generated Java changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
CI shepherd: the head of this PR (c26f971) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
…ixes #7456) (#7458) The pin looked for addressCwa/Twa/Tctua in det/cics.py; #7439 moved ADDRESS to det/cics_storage.py. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #5274. This is step 2 of the plan in the issue comment. It is independent of #7436, which splits the harness side.
Why
Cics._commandwas the most-edited method indet/cics.py: 10 of the file's 25 commits since 10-24. It was a 570-line chain, so any new command edited this file, and plan holds work per file.What changes
_commandis now a loop overCOMMAND_FAMILIES. A new command goes in its family'sdispatchand leavesdet/cics.pyalone.counters,terminal,program,queues,storage,web,system.containers,taskcontrol,filecontrolandconditionsmixins each gain adispatch.det/cics.pydrops from 2,341 to about 950 lines._literalmoves to the leafcics_common.py, so the mixins do not import back fromcics.py.Behaviour is unchanged
det_survey.py --no-compileon old and new code gave 513 generated Java ports, all byte-identical.command()on 240,470 real and generated bodies, against a template program with real data items, gave 0 differences in the Java lines or the refusal's type and message.countersto the end of the registry gave 6,266 differences, so the check can fail. The order rules are pinned intest_cics_det_families.py. This check also caught a real mistake during the work, a dropped import that crashed FORMATTIME, before anything was pushed.hc-abend-linkcase on thecobol-stubside under GnuCOBOL in Docker: 5 of 5 pass.Tests
SEND TEXTline is now parenthesized.🤖 Generated with Claude Code