Skip to content

Conversation

@prestwich
Copy link
Member

@prestwich prestwich commented Dec 12, 2025

Add a feature to invoke/not-invoke all-features during tests. This allows (e.g.) binaries to disable all-feature testing, which is a common desire in integration tests

claude wrote this

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@prestwich prestwich marked this pull request as ready for review December 12, 2025 19:53
@prestwich prestwich requested a review from rswanson as a code owner December 12, 2025 19:53
Copilot AI review requested due to automatic review settings December 12, 2025 19:53
@prestwich prestwich changed the title fix: rust should not invoke all-features by default fix: rust all not invoking all-features Dec 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a configurable all-features input parameter to control whether Rust compilation commands should use the --all-features flag. The intent is to provide flexibility in disabling all-features for binaries unless explicitly enabled.

  • Adds all-features boolean input parameter to rust-base.yml with conditional flag insertion
  • Updates all cargo commands (nextest, clippy, doc, test) to conditionally include --all-features
  • Configures rust-library-base.yml to explicitly enable all-features: true when calling rust-base.yml

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/rust-library-base.yml Adds all-features: true parameter when calling rust-base workflow
.github/workflows/rust-base.yml Defines new all-features input parameter and conditionally applies --all-features flag to all cargo commands; includes trailing whitespace cleanup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@prestwich prestwich changed the title fix: rust all not invoking all-features fix: rust allow not invoking all-features Dec 12, 2025
@prestwich prestwich changed the title fix: rust allow not invoking all-features fix: rust allow not invoking all-features in tests Dec 12, 2025
@prestwich
Copy link
Member Author

behavior is unchanged unless you specifically set it to false

CARGO_BUILD_JOBS: ${{ inputs.cargo-build-jobs }}
run: |
cargo nextest run --all-features --workspace --locked --cargo-profile ${{ inputs.rust-profile }} --no-tests=warn
cargo nextest run ${{ inputs.test-all-features && '--all-features' || '' }} --workspace --locked --cargo-profile ${{ inputs.rust-profile }} --no-tests=warn
Copy link
Member

Choose a reason for hiding this comment

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

this is a cute way to do this

@prestwich prestwich merged commit d91ac3d into main Dec 14, 2025
1 check passed
@prestwich prestwich deleted the prestwich/not-all-features branch December 14, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants