Skip to content

Rust adapter: selective runs on real repositories #131

Closed

Description

@adityankale190895

Follow-up to #62. Once #92–#95 merge, the Rust (Cargo) adapter is registered and safe, but it cannot narrow a real repository yet: the pinned rust-lang/glob replay stayed FULL on every revision. This issue tracks the work needed for real-repository selectivity.

Scope

  • External dependency inputs. The blockers for non-workspace packages, dependency features or default-features = false, build scripts and proc macros currently run over every resolved package. Apply them only to the crates a change reaches, wherever the dependency graph can show that.
  • Runtime-input tokens. fs, unsafe, exists, metadata, process and similar words in a source file force a repo-wide full run. Narrow this to the owning crate and its dependents.
  • Out-of-workspace Cargo.toml. As agreed in feat(rust): map Cargo packages and test targets #91: treat unmodeled manifests as ownership boundaries and require full validation only when the changed set or its dependents reach them. Keep the repo-wide fallback when metadata can't tell.
  • CI invocation evidence. Accept common toolchain setup and cache steps (for example dtolnay/rust-toolchain, Swatinem/rust-cache) when they don't change how cargo test runs.
  • Non-code paths. Classify README.md, docs/** and similar files the way the other adapters do, instead of forcing a full run.
  • Workspace scope. Handle default-members and a root [package], where plain cargo test covers only some members.

Done when a pinned public Rust replay narrows at least one historical revision, and the selected tests catch the same failures as the full baseline.

Maintainer: @FredApps.

Activity

  1. FredApps commented on Nov 17, 2026

    @FredApps
    Contributor

    Status update: I've split the remaining #131 work into separate PRs.

    Items 2 (runtime-input tokens) and 6 (default-members) were already covered by #92 and #93. Hosted CI is green on all six. #258 stays a draft until the PRs it's stacked on land.

  2. adityankale190895 commented on Nov 18, 2026

    @adityankale190895
    MemberAuthor

    Hi @FredApps, thanks again for the Rust adapter work. It's the biggest outside contribution Core has had.

    I noticed you're opening a lot of PRs across storytold (photocraft, pdfcraft, craft-libs and others), and those repos run very heavy CI. Would you be up for being DiffCI's first design partner on Rust? Concretely:

    1. Run npx @diffci.com/diffci@latest verify --changed (or the MCP server) in your agent loop on storytold checkouts before pushing, for a couple of weeks.
    2. Tell us where selection is wrong or falls back to FULL. Those findings feed straight into this issue.
    3. If it holds up, and only if you think it's welcome, an intro to whoever owns storytold, so they can try the observe-only App.

    In return: priority on Rust fixes, credit in releases and docs, and a say in what the adapter does next. No obligation, and "not now" is a perfectly fine answer.

    — Aditya

  3. FredApps commented on Nov 18, 2026

    @FredApps
    Contributor

    Hi @FredApps, thanks again for the Rust adapter work. It's the biggest outside contribution Core has had.

    I noticed you're opening a lot of PRs across storytold (photocraft, pdfcraft, craft-libs and others), and those repos run very heavy CI. Would you be up for being DiffCI's first design partner on Rust? Concretely:

    1. Run npx @diffci.com/diffci@latest verify --changed (or the MCP server) in your agent loop on storytold checkouts before pushing, for a couple of weeks.
    2. Tell us where selection is wrong or falls back to FULL. Those findings feed straight into this issue.
    3. If it holds up, and only if you think it's welcome, an intro to whoever owns storytold, so they can try the observe-only App.

    In return: priority on Rust fixes, credit in releases and docs, and a say in what the adapter does next. No obligation, and "not now" is a perfectly fine answer.

    — Aditya

    Thank you very much for the invite. I am very interested to see what DiffCI can do for Storytold but haven't gotten around to seriously testing it yet. Did you join the ArtCraft discord? https://discord.gg/artcraft you can find me in there as FredApps.

  4. adityankale190895 commented on Nov 19, 2026

    @adityankale190895
    MemberAuthor

    Thanks @FredApps, glad you're interested! No rush on Storytold. When you get to it, the most useful thing is the plan from verify --changed on a few real changes, especially any that fall back to FULL or pick the wrong crates. Post them here or in a new issue, and Rust fixes from them go to the front of the queue.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions