Skip to content

Consolidate test and test_bazel CI jobs in rust.yml. - #1957

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_976528842
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_976528842

Conversation

@copybara-service

Copy link
Copy Markdown

Consolidate test and test_bazel CI jobs in rust.yml.

Merge the test_bazel steps (Bazel setup, remote cache, Bazel build
and environment configuration) into the test job.

Deduplication & cleanups:

  • Reused the Bazel environment setup across both Cargo test and Cargo
    build steps instead of launching a separate GitHub Actions runner.
  • Removed the standalone protoc download/caching step from test, as
    setup_bazel_env.py already resolves and provisions protoc from
    Bazel (@protobuf//:protoc).
  • Unified the separate cargo build commands into a single
    cargo build --verbose --locked --workspace step, and added a TODO
    to expand cargo test coverage once remaining crate test harnesses
    are supported in standalone Cargo builds.

Merge the `test_bazel` steps (Bazel setup, remote cache, Bazel build
and environment configuration) into the `test` job.

Deduplication & cleanups:
- Reused the Bazel environment setup across both Cargo test and Cargo
  build steps instead of launching a separate GitHub Actions runner.
- Removed the standalone `protoc` download/caching step from `test`, as
  `setup_bazel_env.py` already resolves and provisions `protoc` from
  Bazel (`@protobuf//:protoc`).
- Unified the separate `cargo build` commands into a single
  `cargo build --verbose --locked --workspace` step, and added a TODO
  to expand `cargo test` coverage once remaining crate test harnesses
  are supported in standalone Cargo builds.

PiperOrigin-RevId: 976528842

This branch has not been deployed

No deployments
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.

1 participant