Skip to content

fix(ci): the changed-test shuffle runs only on pull requests into a release branch, not on the release pull request into main #1723

Closed

Description

@dan-petty

Friction

The v0.2.37 release pull request (#1720, release/v0.2.37 → main) spends more than 20 minutes in the CI Quality Gate's Changed-Test Independence job, in its "Run Changed Tests in Shuffled Order" step (run 39430481325, job 118653930463).

The job reruns a pull request's changed test files, each in a shuffled order, to catch order dependence. That is a guard for item pull requests. On a release pull request into main, the "changed" test files are every test file the whole release touched, so the job reruns most of the suite in shuffled order, while every item already passed the same job against the release branch.

Evidence

  • .github/workflows/ci.yml, job changed-tests (Changed-Test Independence), runs on if: github.event_name == 'pull_request', so pull requests into main run it too. Its timeout is 30 minutes.
  • Run 39430481325 on feat(release): v0.2.37 #1720's head 4e61562: the step started at 13:27:14 UTC and was still running 20 minutes later.

Remedy

Don't run the job where it doesn't apply: if: github.event_name == 'pull_request' && github.base_ref != 'main'. Item pull requests into release/** keep it. This is the same change #1721 made for the fail-to-pass check.

Acceptance criteria

  • Tests first: a workflow contract in tests/test_workflow_contracts.py pins the changed-tests job's condition, which excludes pull requests into main.
  • feat(release): v0.2.37 #1720's next head shows Changed-Test Independence as skipped.
  • uv run devops ci passes.

regression of #1721, shipped in v0.2.37

Activity

  1. added
    source/agent
    type/infra
    on Oct 20, 2026
  2. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/infra. This is a CI workflow fix that modifies infrastructure configuration.
    • Priority: P1-High. The issue causes release pull requests to timeout and fail, blocking releases. The failed run 39430481325 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 on the board.
    • Value: High. Fixes a critical CI problem affecting all release workflows.
    • Effort: Low. Only requires adding a condition to an existing workflow file.
  3. added this to the v0.2.37 milestone on Oct 20, 2026
  4. added
    status/in-progress
    on Oct 20, 2026
  5. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1724, merged into release/v0.2.37 as 502c2fb.

    The release pull request (#1720) spent more than 20 minutes in the CI Quality Gate's Changed-Test Independence job (run 39430481325). This stops the job running there.

    Why. The job reruns a pull request's changed test files in shuffled order to catch order dependence. On the release pull request into main, every test file the release touched counts as changed, so it reruns most of the suite. Each item in the release already passed the same job against the release branch.

    The change.

    4 file(s) changed.

    How it was verified

    Check runs at 148b929:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Changed-Test Independence: pass
    • Fail-to-Pass Check: pass
    • Static Analysis: pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Analyze (actions): pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1723-changed-test-shuffle-skips-the-release-pull-request.md:

    • Tests first: tests/test_ci_repeat.py::test_the_changed_test_job_reruns_added_or_modified_test_files pins the job's condition; it failed on the base, whose condition had no base_ref term.
    • uv run devops ci passes (pre-push hook).
    • Pending a person: feat(release): v0.2.37 #1720's next head shows Changed-Test Independence as skipped.
  6. removed
    status/in-progress
    on Oct 30, 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

    source/agenttype/infra

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions