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

Caching issues on rules_haskell CI #1361

Closed
aherrmann opened this issue Jun 10, 2020 · 2 comments
Closed

Caching issues on rules_haskell CI #1361

aherrmann opened this issue Jun 10, 2020 · 2 comments

Comments

@aherrmann
Copy link
Member

Describe the bug
Builds and tests on rules_haskell CI seem to be mostly missing the cache even when a near 100% cache hit rate would be expected.

To Reproduce
Not a reproduction as such, but two examples:

Expected behavior
I would have expected CI runs on both examples above to mostly fetch from cache.

Environment

  • OS name + version: See respective CI pipeline
  • Bazel version: 2.1.0
  • Version of the rules: See respective PR

Additional context
I have seen cache misses like these on rules_haskell CI for a while now, while not experiencing such cache misses on projects using rules_haskell.

Something that stands out on the buildkite CI runs is that the log is filled with error messages of the form

WARNING: Writing to Remote Cache:
403 Forbidden
<?xml version='1.0' encoding='UTF-8'?><Error><Code>RetentionPolicyNotMet</Code><Message>Object overwrite or deletion is not allowed due to retention policy</Message><Details>Object 'tweag-bazel-cache-buildkite/cas/a4f5b8cffb3889f90cb7fe44ed954eb9e62772a44c2430cafa28d3cd853df3b4' is subject to bucket's retention policy and cannot be deleted, overwritten or archived until 2020-06-20T19:44:29.358643482-07:00</Details></Error>
@Xophmeister
Copy link
Member

Is this still relevant? AIUI, CI has moved to GitHub Actions approx. 1 year ago; there's been no activity on BuildKite or CircleCI in the meantime. Have cache misses been observed in Bazel's upstream BuildKite? The scheduled builds complete very quickly, so presumably not...

@aherrmann
Copy link
Member Author

Agreed, this seems no longer relevant. I believe rules_haskell's own CI encounters cache misses with BuildBuddy, but, to my understanding (and corroborated by the discussion here) this is likely caused by cached artifacts being GC'ed on BuildBuddy's side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants