Skip to content

Add tests for documentation and release build for cargo targets#1665

Merged
flowzone-app[bot] merged 1 commit intomasterfrom
cargo-build-test
Mar 5, 2026
Merged

Add tests for documentation and release build for cargo targets#1665
flowzone-app[bot] merged 1 commit intomasterfrom
cargo-build-test

Conversation

@pipex
Copy link
Contributor

@pipex pipex commented Jan 15, 2026

Modifies the cargo test command removing --all-targets that skips docs tests
and adds two more steps to the cargo_test job.

  • Test examples and benches if any to make up for the removal of --all-targets.
  • Checks that cargo build --release works if cargo_publish is false.
    The cargo_publish job already builds the binary so no need to test
    this twice.

Change-type: patch

@flowzone-app
Copy link
Contributor

flowzone-app bot commented Jan 16, 2026

Website deployed to CF Pages, 👀 preview link https://9b1f4ee5.flowzone.pages.dev

@flowzone-app flowzone-app bot enabled auto-merge January 16, 2026 15:38
@pipex pipex changed the title Add tests for documentation and release build Add tests for documentation and release build for cargo targets Jan 16, 2026
@floion
Copy link
Contributor

floion commented Feb 17, 2026

/rebase

@git-basejump
Copy link

git-basejump bot commented Feb 17, 2026

Failed to rebase: Conflict detected when applying commit ec02442.

Please resolve the conflict and push again.

@floion
Copy link
Contributor

floion commented Feb 17, 2026

/rebase

@git-basejump
Copy link

git-basejump bot commented Feb 17, 2026

Failed to rebase: Conflict detected when applying commit dd17a63.

Please resolve the conflict and push again.

Copy link

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

Updates the Rust cargo_test job in Flowzone CI to ensure doctests are exercised (by removing --all-targets) while still covering examples/benches and validating --release builds when the publish job won’t run.

Changes:

  • Remove --all-targets from cross test to allow doctests to run.
  • Add an explicit cross test --examples --benches step.
  • Add a conditional cross build --release step when inputs.rust_binaries is not true.

Reviewed changes

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

File Description
flowzone.yml Adjusts Rust test/build steps in the Flowzone pipeline template.
.github/workflows/flowzone.yml Mirrors the same Rust test/build step changes in the GitHub Actions workflow.

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

Modifies the test command removing `--all-targets` that skips docs tests
and adds two more steps to the `cargo_test` job.
- Test examples and benches if any to make up for the removal of `--all-targets`.
- Checks that `cargo build --release` works if `cargo_publish` is false.
  The `cargo_publish` job already builds the binary so no need to test
  this twice.

Change-type: patch
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.

4 participants