Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Remote: Fixes an issue when --experimental_remote_cache_async encounter flaky tests. #14241

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

coeuvre
Copy link
Member

@coeuvre coeuvre commented Nov 8, 2021

Original commit: f5cf8b0.

@coeuvre coeuvre requested a review from Wyverald November 8, 2021 07:25
@coeuvre coeuvre requested a review from a team as a code owner November 8, 2021 07:25
@google-cla google-cla bot added the cla: yes label Nov 8, 2021
@coeuvre coeuvre changed the base branch from master to release-5.0.0rc1 November 8, 2021 07:26
…er flaky tests.

When `--experimental_remote_cache_async` is set, the uploads happened in the background -- usually after spawn execution.

When the test is failed and there is another test attempt, the outputs of previous test attempt are moved to other places immediately after spawn execution. This fine when combining `--experimental_remote_cache_async`  because outputs of failed action don't get uploaded.

However, there is an exception that `test.xml` is generated with another spawn before the "move" happens. The result of the spawn used to generate `test.xml` is usually "succeed" which means Bazel will attempt upload `test.xml` even if the test itself is failed.

This PR makes the `test.xml` generation spawn ignores remote cache if the test itself is failed.

Fixes bazelbuild#14008.

Closes bazelbuild#14220.

PiperOrigin-RevId: 408237437
@coeuvre
Copy link
Member Author

coeuvre commented Nov 8, 2021

Sorry for the noise, picked wrong base.

@Wyverald Wyverald merged commit 6a93237 into bazelbuild:release-5.0.0rc1 Nov 8, 2021
@coeuvre coeuvre deleted the 5.0.0rc1 branch November 15, 2021 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants