Skip to content

ci: enable setup-soldr S3 remote build cache - #3061

Merged
zackees merged 1 commit into
masterfrom
feat/s3-remote-cache
Oct 30, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/s3-remote-cache

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

What changed

  • All 12 zackees/setup-soldr pins move from 71e6b56 (v0.9.88) to 9337570 (the S3 remote cache merge; v0 points at it). That is 11 in .github/workflows/build-project.yaml and 1 in .github/workflows/release-rust.yaml.
  • Each of those steps gets these new with: inputs: s3-bucket: forge-ci, s3-endpoint: nyc3.digitaloceanspaces.com, s3-region: nyc3, s3-cache-limit: 50G.
  • Each one also gets a new env: with SOLDR_S3_CACHE_ACCESS_KEY / SOLDR_S3_CACHE_SECRET_KEY from repository secrets. None of these steps had an env: before.
  • Nothing else changes. No C/C++, CMake, packaging or version files are touched.

Secret plumbing (checked)

build-project.yaml is a workflow_call workflow and declares no secrets: block. All four of its callers pass secrets: inherit: ci.yml, push.yaml, scheduled.yaml and release-rust.yaml. So the called jobs can see the secrets and no plumbing change was needed. release-rust.yaml's own soldr step reads the secrets directly. Fork PRs get no secrets, so they run without the remote cache, which is the intended behavior.

Cache policy

  • 50G watermark, merge queue only. Eviction down to the 50G high watermark runs only on a merge_group run, which is the merge-queue singleton. PR runs only read and write their own keys and never evict.
  • wipe -> seed for PR runs. A PR run starts from its own (possibly empty) keys, seeds them from the build, and leaves shared state to the merge-queue run.
  • Off without secrets. The feature is enabled only when the bucket, the endpoint and both credentials are present. Otherwise setup-soldr restores exactly as before.

Rollout status

soldr (0e6caac), setup-soldr (9337570) and clud have already shipped. This PR is the last consumer.

Validation

  • grep -rn "setup-soldr@" .github | grep -v 9337570: no output.
  • actionlint (actionlint-py 1.7.12) on both files: same findings as master (pre-existing ubuntu-26.04 label warnings); the only difference is shifted line numbers.
  • The ci/test_*.py workflow tests that read these files give identical pass/fail sets before and after. This was in a sparse checkout, so some tests fail on missing files in both runs.

🤖 Generated with Claude Code

Bump all 12 zackees/setup-soldr pins (11 in build-project.yaml, 1 in
release-rust.yaml) to 9337570 (S3 remote cache) and point them at the
forge-ci bucket on DigitalOcean Spaces nyc3 with a 50G high watermark.
Credentials come from the SOLDR_S3_CACHE_* repository secrets; every
caller of build-project.yaml already uses `secrets: inherit`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review. The plumbing is right: all 12 pins moved, the secrets reach the called workflow through secrets: inherit, the feature switches off without credentials (fork PRs), and only the merge_group run evicts. Both secrets exist on the repo (set 2026-10-30 08:35).

One security point, and I'm holding the queue for it:

  • The release lane reads a cache that PR runs write to. release-rust.yaml now restores from the same forge-ci bucket that same-repo PR runs write to with the same credentials. Per-PR keys keep PRs from overwriting each other, but the credentials have write access to the whole bucket, so any branch whose workflow runs with secrets could plant objects that a release build later restores. For artifacts we sign and ship, I'd keep the remote cache out of release-rust.yaml (or make it read-only there, restoring only keys written by merge_group/master), and keep it for the CI lanes, where a poisoned object costs a red run, not a shipped binary.

Two smaller points:

  • Pin a tagged setup-soldr release rather than a merge commit labelled # s3 remote cache, once one exists, so the pin is traceable like the old # v0.9.88.
  • No ci/ test pins the new inputs, so a later edit could drop the merge_group-only eviction or the secrets without anything failing. A small test that every setup-soldr step carries the same four S3 inputs and the env: pair (and that release-rust.yaml has none, if you take the first point) would hold it.

If you'd rather accept the release-lane risk, say so here and I'll queue it as is. CI is green apart from one running check.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit cfcc6ae Oct 30, 2026
36 checks passed
@zackees
zackees deleted the feat/s3-remote-cache branch October 30, 2026 12:06
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 31, 2026
…sion) (obs-rust#3116)

* test(ci): fail while the S3 cache secrets are missing from [allow].secrets (obs-rust#3115)

* infra(ci): allowlist the S3 build-cache secrets (obs-rust#3115)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant