Skip to content

chore(ci): keep the per-test times and skip reasons of CI #4673

Closed

Description

@dan-petty

Problem or Motivation

CI shards print only their 10 slowest tests and write no junit XML, so each CI saving outside those rows is an estimate. The logs show 10 skips with no reason (no -rs). This blocks the shard balance (#4250) and a tighter per-test bound in CI. PYTEST_ADDOPTS cannot carry the options, because build_subprocess_env removes it (measured).

Saving: None directly. It gives measured CI data to the shard balance (#4250) and to the row timeouts.

Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.

Proposed Solution & Architectural Design

  • In _resolve_pytest_cmd (src/devops_cli/commands/ci.py:640-653), add --junitxml=<path> and -rs to a shard run.
  • Upload the XML with the coverage artifact (.github/workflows/ci.yml:178).

Risk: Low.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/commands/ci.py, .github/workflows/ci.yml, tests/commands/test_ci.py).

Existing Tool Considered

The built-in --junitxml and -rs options of pytest. No new tool. Cost: about 15,000 tokens and 1 hour.

Acceptance Criteria

  • Each shard artifact holds one junit XML that has each test id of the shard.
  • Each shard log gives a reason for each skip.

Dependencies

None. #4250 waits for this item.

Activity

  1. added
    source/agent
    type/chore
    scope/ci
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/chore. The chore prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. It unblocks #4250 and tighter per-test bounds but does not fix a current failure.
    • Value: Medium. It gives measured per-test times and skip reasons that enable shard balancing and timeout tuning.
    • Effort: Low. The body states about 1 hour of work: add two pytest flags and upload one artifact.
    • Related: fix(ci): test shards take up to 11 minutes, over the budget #4250, which asks for a different change. Both target CI shard performance, but this item adds measurement data (junit XML, skip reasons) while #4250 uses that data to rebalance shards.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 12, 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

    effort/lowpriority/p2-mediumscope/cisource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions