Skip to content

cics_census.py: --no-census still reads $CICS_CENSUS_CORPORA #4598

Closed

Description

@squid-protocol

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)

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-corpora and $CICS_CENSUS_CORPORA. Error out if --census-corpora and --no-census are both given.
  • Test: with the env var set to a temp dir of fake corpora, --no-census reads only the mainframe root (survey / usage / compare).

Acceptance criteria

  • --no-census never reads the census root, whatever the environment holds
  • --no-census together with --census-corpora is 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

Activity

  1. added
    bug
    testing
    legacy-modernization
    on Oct 7, 2026
  2. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglegacy-modernizationscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions