Repository navigation
Closed
Labels
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:infraCI, tooling, churn/factory, docs infrastructuretestingUnit, integration, and E2E pipeline verification
Description
Problem
tests/tools/cics_census.py --no-census does not exclude the census corpora. It only makes them optional: when $CICS_CENSUS_CORPORA is set, the census clones are read anyway.
Evidence (origin/main)
tests/tools/cics_census.py:216-217:census_root()takesarg or $CICS_CENSUS_CORPORAbefore it looks atrequired.required=False(from--no-census) only skips the error when neither is set.:237(roots_from, used byusage/compare) and:296(cmd_survey) both callcensus_root(args.census_corpora, required=not args.no_census).- Found by the COBOL translator: CICS command breadth (START/RETRIEVE, channels/containers, GETMAIN, LOAD, CONVERSE, INQUIRE, ASSIGN, counters, HANDLE ABEND PROGRAM) #4270 proof-ranking work (tooling: proof-level blocker ranking, spec status page, blocker-slice workflow (#4270) #4594): a survey run with
--no-censusstill surveyed the census clones from the environment.
Impact
- A "burned corpora only" run silently includes the non-burned census repos. That changes the counts (whole N / total), and it reads repos through the translator that the caller asked to leave out.
- It matters for the nightly burned-only baseline-survey CI job (the owner chose burned-only) and for any local run in a shell where the variable is still exported.
Fix
- With
--no-census,census_root()returns None and ignores both--census-corporaand$CICS_CENSUS_CORPORA. Error out if--census-corporaand--no-censusare both given. - Test: with the env var set to a temp dir of fake corpora,
--no-censusreads only the mainframe root (survey / usage / compare).
Acceptance criteria
-
--no-censusnever reads the census root, whatever the environment holds -
--no-censustogether with--census-corporais an error - A regression test covers survey, usage and compare
Being fixed in the blocker-tools PR (branch tooling/4270-blocker-tools); this issue tracks it.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:infraCI, tooling, churn/factory, docs infrastructuretestingUnit, integration, and E2E pipeline verification
Activity
cics_census: --no-census with --census-corpora is an error; regressio…
tooling: blocker-initiative tools -- baseline cache, history, provisi…