Skip to content

Conversation

@coeuvre
Copy link
Member

@coeuvre coeuvre commented Jun 6, 2023

Invocation id (BUILD_ID in code) is expected to be different for each command. When retrying the build, we rely on Bazel generating a new invocation id for a new attempt. However, if flag --invocation_id is set, Bazel just uses the provided value instead of generating a new one. In this case, invocation id stays the same among multiple attempts which could cause issues like #18547.

This PR fixes that by not retrying the build if the invocation id is same to previous attempt. Also updated the doc to point this requirement out.

@coeuvre coeuvre requested a review from a team as a code owner June 6, 2023 13:03
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Jun 6, 2023
@coeuvre coeuvre requested a review from tjgq June 6, 2023 13:05
@coeuvre
Copy link
Member Author

coeuvre commented Jun 13, 2023

@bazel-io fork 6.3.0

@iancha1992
Copy link
Member

iancha1992 commented Jun 13, 2023

@coeuvre looks like we'll need another commit before we cherry-pick this to 6.3.0 because function test_download_toplevel_symlinks_runfiles() and function test_download_toplevel_root_symlinks_runfiles() should have been in the release-6.3.0 before we cherry-pick this commit.

@coeuvre coeuvre deleted the fix18547 branch June 14, 2023 08:30
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jun 14, 2023
Invocation id (`BUILD_ID` in code) is expected to be different for each command. When retrying the build, we rely on Bazel generating a new invocation id for a new attempt. However, if flag `--invocation_id` is set, Bazel just uses the provided value instead of generating a new one. In this case, invocation id stays the same among multiple attempts which could cause issues like bazelbuild#18547.

This PR fixes that by not retrying the build if the invocation id is same to previous attempt. Also updated the doc to point this requirement out.

Closes bazelbuild#18591.

PiperOrigin-RevId: 539946840
Change-Id: I6ae85ea923b0fdbff97fe2e44e36995f0205f8a1
@coeuvre
Copy link
Member Author

coeuvre commented Jun 14, 2023

It's fine to ignore (remove) them because they are irrelevant to this change. I have created #18670.

iancha1992 pushed a commit that referenced this pull request Jun 14, 2023
Invocation id (`BUILD_ID` in code) is expected to be different for each command. When retrying the build, we rely on Bazel generating a new invocation id for a new attempt. However, if flag `--invocation_id` is set, Bazel just uses the provided value instead of generating a new one. In this case, invocation id stays the same among multiple attempts which could cause issues like #18547.

This PR fixes that by not retrying the build if the invocation id is same to previous attempt. Also updated the doc to point this requirement out.

Closes #18591.

PiperOrigin-RevId: 539946840
Change-Id: I6ae85ea923b0fdbff97fe2e44e36995f0205f8a1
@iancha1992 iancha1992 removed the awaiting-review PR is awaiting review from an assigned reviewer label Jun 14, 2023
traversaro pushed a commit to traversaro/bazel that referenced this pull request Jun 24, 2023
Invocation id (`BUILD_ID` in code) is expected to be different for each command. When retrying the build, we rely on Bazel generating a new invocation id for a new attempt. However, if flag `--invocation_id` is set, Bazel just uses the provided value instead of generating a new one. In this case, invocation id stays the same among multiple attempts which could cause issues like bazelbuild#18547.

This PR fixes that by not retrying the build if the invocation id is same to previous attempt. Also updated the doc to point this requirement out.

Closes bazelbuild#18591.

PiperOrigin-RevId: 539946840
Change-Id: I6ae85ea923b0fdbff97fe2e44e36995f0205f8a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants