Skip to content

Report failed tests that DiffCI skipped #69

Closed

Description

@adityankale190895

DiffCI skips tests it believes a change doesn't affect. The way to check that belief is to run the full suite anyway and see whether any test that failed is one DiffCI would have skipped. Today there's no command for that comparison, so "no missed failures" can only be claimed, not shown.

Proposal: a local, stateless check that takes one plan and one full-suite result and reports any failed test the plan had skipped.

diffci check-plan --plan plan.json --results junit.xml

(Name and flags are open for discussion.)

Behaviour

  • Input: a DiffCI plan (its skippedTests) and JUnit XML from a full run of the same revision.
  • Output: failed tests grouped as
    • missed: the failure maps to a file in skippedTests;
    • selected: the failure maps to a file DiffCI selected;
    • unattributed: the failure can't be mapped to a file.
  • Exit non-zero if anything is missed or unattributed. Unattributed must never be reported as "fine".
  • If the plan was a full fallback, say so and report nothing as missed.

Mapping failures to files is the main work. Use the file attribute where the reporter writes one (Vitest, jest-junit, pytest), then each runner's own conventions. Anything ambiguous is unattributed.

Out of scope: storing results across runs, history or dashboards. This issue is one comparison of one run.

Done when

  • The command works for Vitest and Jest JUnit output, with fixtures for missed, selected, unattributed and full-fallback cases
  • Using DiffCI shows how to run it in a scheduled full-suite CI job
  • Go and Maven (Surefire) mapping, as follow-up steps or in the same PR

Questions about the output format or the name belong here before a PR.

Activity

  1. added
    enhancement
    help wanted
    on Oct 31, 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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions