Skip to content

CI: the feature-inventory corpus check (and other det tests needing corpora) runs in no CI job #4834

Closed

Description

@squid-protocol

Found 2026-10-10 while parallelising ground-truth (#4825).

tests/cobol_mainframe/test_feature_inventory.py importorskips tree_sitter_language_pack (the det parser), and its --check test also needs the mainframe corpora:

So the fixture check never runs in CI. Its CardDemo/CBSA fixtures had silently gone non-portable (absolute paths, fixed in the ground-truth PR) without any check noticing. The same probably holds for other det tests that need corpora.

Options:

  1. Install tree-sitter-language-pack==1.20.0 in ground-truth. This runs every det+corpora test there, so measure the added time and fix what surfaces first.
  2. Run only the corpus-needing det tests (a marker) in one of the det-sweep shard jobs, which already have both the translator and the corpora.
  3. Fetch the corpora in one full-suite part.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    ci-cd
    testing
    on Oct 10, 2026
  2. squid-protocol commented on Oct 10, 2026

    @squid-protocol
    OwnerAuthor

    Measured (agy, 2026-10-10, local box; CI ≈3× slower, 4 cores). Installing the det parser (tree-sitter-language-pack==1.20.0) in ground-truth would un-skip 465 tests in tests/cobol_mainframe (435 executed): 434 pass, 1 fails. The failure is test_feature_inventory_cli_check on a checkout from before #4835 made the fixtures portable.

    Time: 393 s in total, and the 10 slowest are all test_feature_inventory.py:

    • the all-estates fixture check alone takes 170 s;
    • each synthetic test takes 18–33 s, because it runs a full engine scan.

    Everything else is small.

    Proposal:

    1. Install the parser in ground-truth, which turns on ~425 cheap det-corpus tests that today guard nothing.
    2. Run the 170 s all-estates --check nightly (main-watch reports it), not per PR.
    3. Share one scan across the synthetic feature-inventory tests (a session fixture) instead of one engine scan per test.

    Expected added cost per PR: ~1–2 min, instead of ~8–9 min.

    🤖 Generated with Claude Code

  3. 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

    bugci-cdpriority: mediumscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions