Skip to content

dedupe helpers in buildbarn tests and support restarting - #23583

Open
cburroughs wants to merge 1 commit into
csb/rpc-retriesfrom
csb/bb-docker-skip
Open

dedupe helpers in buildbarn tests and support restarting#23583
cburroughs wants to merge 1 commit into
csb/rpc-retriesfrom
csb/bb-docker-skip

Conversation

@cburroughs

Copy link
Copy Markdown
Contributor

This does a few entangled things:

  • Some minor DRY to the test helpers.
  • Adds the ability to restart the buildbarn service. The intent here is write tests along the lines of "does feature A work correctly if the cache is wiped/expired between operations X and Y".
  • Threads through CACHE_SPECULATION_DELAY_MILLIS a la test: Attempt to de-flake Buildbarn action cache assertions #23573

Notice: This preparatory work is extracted from a larger LLM code generated change.

This does a few entangled things:
 * Some minor DRY to the test helpers.
 * Adds the ability to restart the buildbarn service.  The intent here
 is write tests along the lines of "does feature A work correctly if
 the cache is wiped/expired between operations X and Y".
 * Threads through `CACHE_SPECULATION_DELAY_MILLIS` a la #23573

Notice: This preparatory work is extracted from a larger LLM code
generated change.
@cburroughs cburroughs self-assigned this Jul 29, 2026
@cburroughs cburroughs added the release-notes:not-required [CI] PR doesn't require mention in release notes label Jul 29, 2026
@cburroughs
cburroughs marked this pull request as ready for review July 29, 2026 17:30

# With the default of 0, Pants starts a remote execution before the cache lookup can answer,
# so a cached run still counts an execution request.
_CACHE_SPECULATION_DELAY_MILLIS = 10_000

@tobni tobni Jul 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe this can be rehomed, instead of duplicated?

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

Labels

release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants