Repository navigation
Keep River Pro modules out of shared CI caches - #748
Merged
Merged
Conversation
The Go test and lint jobs download `riverqueue.com/riverpro` modules with the River Pro credential and then save their module and build caches, so River Pro modules can end up in caches shared with other workflow runs. Move River Pro UI's download, River Pro CLI install, tests, and lint into a new River Pro UI job that has the credential and only restores caches: `setup-go-ci` gains a `save-build-cache` input, and golangci-lint-action runs with `skip-save-cache`. The open source test and lint jobs no longer reference the credential and skip River Pro UI with a new `SKIP_SUBMODULES` Makefile variable. Their tests only need River's own tables, so they migrate with the open source `river` CLI at the version in `go.mod`. Bump the module and build cache key prefixes so no job restores a cache saved before this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 The Go test and lint jobs download River Pro modules and then save their Go module and build caches, so River Pro modules can end up in caches that are shared with other workflow runs.
This separates the two kinds of work:
riverCLI.The cache key prefixes also move to
v2so no job restores a cache saved before this change.