Skip to content

ci: affected-tests selection misses 28 files read by 6 suites (selection audit shard 4) #8410

Closed

Description

@kyle-sexton

No related issue: new finding from the scheduled selection audit.

Summary

The scheduled maintenance-audit-test-selection run 39240292374 (shard 4/7, commit bfd13a35a) found 28 selector gaps in 6 suites. A gap is a file that a suite reads where a one-file diff to that file does not select that suite in scripts/affected-tests.sh. The workflow only reports (.github/workflows/maintenance-audit-test-selection.yml:4-6), so this issue is where the findings get acted on. Full rows: artifact selection-audit-39240292374 (gaps.tsv), retained 30 days.

This kind of gap hid a real break on main on 2026-10-19: a test-node failure in pr-unblock (ajv missing) went unnoticed because affected-only selection skipped the suite on main.

Gaps

Suite Unselected files Count Likely source
plugins/planning/shared/tests/test_session.py plugins/planning/shared/schema/{event,question-shape}.schema.json, plugins/planning/surface/schema/{event,ops,responses,visual}.schema.json, 14 plugins/planning/shared/tests/fixtures/*.json 20 #8409
plugins/work-items/tests/set-dimensions.test.sh plugins/work-items/tools/work-item-tracker/adapters/github/{capabilities.json,common.sh,set-fields.sh}, .../lib/{id,lease}.sh 5 older; set-fields.sh just changed in #8381
plugins/ruff-format/hooks/ruff-format.test.sh plugins/ruff-format/lib/git-hooks/install.mjs, plugins/ruff-format/lib/prerequisites.mjs 2 older
plugins/biome-format/hooks/biome-format-end-of-turn.test.sh plugins/biome-format/hooks/exec-bash.mjs 1 older
plugins/code-metrics/skills/audit-complexity/scripts/audit-complexity.test.sh plugins/code-metrics/scripts/yaml_subset.py 1 older
plugins/instruction-placement/git-hooks/index-check.test.sh plugins/instruction-placement/.claude-plugin/plugin.json 1 older

The planning and work-items rows carry the most risk: they cover code that changed in the last day.

Fix

Teach scripts/affected-tests.sh (or the suites' selection metadata) that each suite depends on the files it reads, then re-run the audit for shard 4 (gh workflow run maintenance-audit-test-selection.yml) and confirm 0 gaps. The other six shards have not been traced since these changes; their daily runs will report more.

Related

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Thanks for the report. I understand that the shard 4 selection audit found 28 files across 6 suites that those suites read, but a one-file diff to them doesn't select the suite in scripts/affected-tests.sh. The planning and work-items suites carry the most risk. The proposed fix is to teach the selector (or the suites' selection metadata) about these dependencies, then re-run the audit and confirm 0 gaps. The other six shards are still untraced, so more gaps may follow. I found no open duplicate. #5656 is a closed, related selector fix. A maintainer will confirm the priority and scope.

    Automated triage. A maintainer reviews it.

  3. added and removed
    needs-triage
    on Oct 19, 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

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions