Skip to content

Keep River Pro modules out of shared CI caches - #748

Merged
bgentry merged 1 commit into
masterfrom
bg/ci-private-module-cache
Nov 24, 2026
Merged

bgentry merged 1 commit into
masterfrom
bg/ci-private-module-cache

Conversation

@bgentry

@bgentry bgentry commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🤖 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:

  • The open source test and lint jobs no longer use the River Pro credential and skip River Pro UI. Their tests only need River's own tables, so they migrate the test database with the open source river CLI.
  • A new job, "River Pro UI build, test, and lint", has the credential, runs River Pro UI's tests and lint, and only restores caches. It never saves one.

The cache key prefixes also move to v2 so no job restores a cache saved before this change.

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.
@bgentry
bgentry requested a review from brandur November 24, 2026 00:44
@bgentry
bgentry merged commit d461c4b into master Nov 24, 2026
23 checks passed
@bgentry
bgentry deleted the bg/ci-private-module-cache branch November 24, 2026 00:44
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

Successfully merging this pull request may close these issues.

1 participant