Skip to content

Allow setting timeout for cargo-bazel.#3485

Merged
illicitonion merged 6 commits intobazelbuild:mainfrom
sardok:cargo-bazel-timeout
Aug 2, 2025
Merged

Allow setting timeout for cargo-bazel.#3485
illicitonion merged 6 commits intobazelbuild:mainfrom
sardok:cargo-bazel-timeout

Conversation

@sardok
Copy link
Copy Markdown
Contributor

@sardok sardok commented Jun 27, 2025

This PR introduces CARGO_BAZEL_TIMEOUT env variable to set timeout value for cargo-bazel invocation.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Jun 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sardok sardok force-pushed the cargo-bazel-timeout branch from 3114fa6 to 89e8296 Compare June 27, 2025 13:13
Copy link
Copy Markdown
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Please can you add the env var to

CRATES_REPOSITORY_ENVIRON = GENERATOR_ENV_VARS + REPIN_ENV_VARS + [
as well to make sure we'll invalidate and re-run the repository rules if the env var changes?

Thanks!

@sardok
Copy link
Copy Markdown
Contributor Author

sardok commented Jul 28, 2025

Thanks @illicitonion for the review. I added the change you asked. Also updated the rule & extension docs about it (although i'm not sure if it is right thing to do because CARGO_BAZEL_DEBUG is missing there, maybe some env vars shouldn't be documented?).

Copy link
Copy Markdown
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

@illicitonion illicitonion enabled auto-merge August 2, 2025 20:59
@illicitonion illicitonion added this pull request to the merge queue Aug 2, 2025
Merged via the queue into bazelbuild:main with commit a44ac6e Aug 2, 2025
3 checks passed
wmeddie added a commit to XpressAI/xpressclaw that referenced this pull request Mar 27, 2026
rules_rust 0.61.0 hardcodes the cargo-bazel splice timeout at 600s
with no override. The CARGO_BAZEL_GENERATOR_TIMEOUT env var we were
setting does not exist. rules_rust 0.64.0 added CARGO_BAZEL_TIMEOUT
(PR bazelbuild/rules_rust#3485). Updated MODULE.bazel, build.ps1,
and release.yml.
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.

2 participants