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

Bazel Cache Issue for Build and Test #13

Open
stevenwarejones opened this issue May 20, 2021 · 1 comment
Open

Bazel Cache Issue for Build and Test #13

stevenwarejones opened this issue May 20, 2021 · 1 comment

Comments

@stevenwarejones
Copy link

Issue: Some issue with bazel caching causing tests to fail.

Details:
For this PR (world-federation-of-advertisers/panel-exchange-client#13) (and a couple other branches), the builds inconsistently fail even when just adding comments. See the commit history for plenty of examples when it switches from failing to passing.

Solution:
It appears to have been resolved after removing world-federation-of-advertisers/actions/bazel-build-test@v1 from that repo. See this commit that appears to have resolved the issue:
world-federation-of-advertisers/panel-exchange-client@fc15b7b

It could also be that there is some other transient issue causing the problem.

@SanjayVas
Copy link
Member

SanjayVas commented May 25, 2021

Sample failing run: https://github.com/world-federation-of-advertisers/panel-exchange-client/runs/2623308247

This appears to show a segfault in the Java Runtime Environment. The fact that this seems to be resolved by using a manual workflow with a different cache key construction implies that the issue may have been a poisoned cache. This can occur when there's been an incompatible change to the build environment that's not accounted for by neither the cache key construction nor Bazel's caching mechanisms, such as changing the C++ compiler. See #8.

If that is indeed what's causing the segfault, then the solution is to specify a new cache-version parameter to the action.

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

No branches or pull requests

2 participants