Skip to content

rust-project: allow rust-project to define test runners invocations; less adhoc unit-test mappings - #1398

Open
davidbarsky wants to merge 7 commits into
facebook:mainfrom
davidbarsky:push-zpnqkourvnln
Open

rust-project: allow rust-project to define test runners invocations; less adhoc unit-test mappings#1398
davidbarsky wants to merge 7 commits into
facebook:mainfrom
davidbarsky:push-zpnqkourvnln

Conversation

@davidbarsky

@davidbarsky davidbarsky commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This PR does three things:

  1. Unit and integration tests are now modeled through explicit rule relationships, such as testsof and unit_test_of.
  2. rust-project now allows overriding the test runnable invocation.
  3. Modify with_rust_workspace to accept arbitrary globs, not just rooted crates. It also grew exclusions for when paired with globs.

Each commit should work independently to account for dotslash rollouts.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 23, 2026
@meta-codesync

meta-codesync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D113418263. (Because this pull request was imported automatically, there will not be any future comments.)

@Wilfred Wilfred left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a concern about compatibility, and could you also split these into three PRs? The seem fairly orthogonal.

/// This is generic metadata about the target.
pub(crate) labels: Vec<String>,

#[serde(flatten)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be both backwards and forwards compatible: we want rust-project to accept both old and new bxl formats. I can't guarantee exactly what commit a user's bxl will be (and the bxl changes land immediately, whereas the rust-project binary takes a little longer on dotslash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants