Skip to content

Select affected local tests and use nextest for the full Rust suite #724

Closed

Description

@JacobStephens2

From the Oct 11–16 2026 Run retrospective, finding 4. Tracking issue: #721.

The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.

Requested outcome and validation

Provide a documented, conservative affected-test entry point, such as scripts/affected-tests <base>, and make the Factory implement skill follow repository test guidance. Proposed mappings from the report are starting points, not an exhaustive allowlist: site changes need browser tests plus relevant Rust site checks; release scripts need release tests; Rust source, shared test support/fakes, and other broad-impact changes need the full suite. Unknown or mixed paths must not silently skip relevant checks.

Use cargo nextest run for the full suite where available, with a documented setup or fallback. Document this binary-only crate's valid selectors (--bin thirdshift <module>::tests, --test <file>); it has no lib target. Push/open the PR early enough for CI to overlap work, and avoid repeating equivalent full-suite validation on a head already covered by successful CI or a PR already merged/closed.

Validate representative site-only, release-only, Rust/shared-support, mixed, and unknown diffs, preserving relevant checks. Measure full-suite runtime and document local versus CI responsibilities. Changing the blanket local full-suite gate is a policy decision for triage.

Current checkout check: skills/thirdshift-implement/SKILL.md still requires the full suite once at the end, and macOS CI already uses nextest. Correction to the historical report: current CI triggers on both pull requests and pushes to main; the overlap concern concerns unpushed implementation branches.

Original finding, including evidence, proposed fixes, and confidence

4. A 20–23-minute local full suite gates every implement session (Factory skill and Repo)

Activity

  1. added
    enhancement
    needs-triage
    on Oct 17, 2026
  2. JacobStephens2 commented on Oct 21, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: Implement sessions run the tests their change affects; this repository says which those are and runs its full suite with nextest

    Current behavior:
    The thirdshift-implement Factory skill tells every implement session to run "the full test suite once at the end". In this repository that means cargo test over about 40 test binaries one after another. That takes about 20 minutes on the factory host, even for a change that touches only the website or a release script. CI then runs everything again before any merge. CI's macOS jobs already use nextest, configured in this repository, but nothing local does. The crate has no library target, so cargo test --lib fails. The valid selectors are cargo test --bin thirdshift <module>::tests and cargo test --test <file>, and AGENTS.md doesn't say so.

    Desired behavior:

    1. This repository gets an affected-tests entry point, such as a script that takes a base ref. It maps the files changed since that ref to the checks to run, then runs them:

      • website files: the site's browser tests plus the Rust tests that cover the site;
      • release scripts: the release tests;
      • Rust source, shared test support or fakes, Cargo files, CI configuration, and any path it doesn't recognise: the full suite. That uses cargo nextest run when nextest is installed, and cargo test otherwise, saying which;
      • a diff that touches several areas: the union of their checks.

      It never skips a check silently: an unrecognised path means the full suite.

    2. AGENTS.md names that entry point and the valid test selectors for this binary-only crate.

    3. The thirdshift-implement Factory skill says to run the tests the change affects, using the repository's documented selection where it names one, and otherwise the full suite once at the end, as today. It also says not to run the full suite again on a head whose CI has already passed, or after the pull request is merged or closed.

    Key interfaces:

    • The implement skill's testing step. The skill is embedded in the binary and shown on the prompts page, so regenerate with UPDATE_PROMPTS=1 cargo test prompts_page.
    • The repository's nextest configuration, which CI already uses.

    Acceptance criteria:

    • Tests show the entry point's selection for a site-only, a release-only, a Rust-source, a shared-test-support, a mixed and an unrecognised diff. The last three give the full suite.
    • The full suite runs under nextest when it is installed, and falls back to cargo test with a printed note.
    • AGENTS.md and the implement skill are updated, and the generated prompts are regenerated.
    • For a repository with no test guidance, the implement skill's instruction still means the full suite once at the end.

    Out of scope:

  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 21, 2026
  4. removed
    in-progress
    on Oct 21, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions