Repository navigation
ci(s3): nightly canary that proves the cache bucket is reachable - #3867
Merged
Merged
Conversation
The S3 remote cache is configured on every setup-soldr callsite but every one runs build-cache: false, so nothing exercises the bucket and nobody can answer 'is S3 being used?' from CI. This adds a scheduled probe: write a canary, read it back, report object count and bytes against the 50G watermark. continue-on-error: the probe reports, it never blocks the nightly. Missing credentials print a warning and exit 0 with 'credentials missing'.
scheduled.yaml failed the workflow policy: ci/test_workflow_duplicate_keys.py rejects a multi-line run block in that file. The probe now lives in ci/s3_cache_canary.sh and the step is one line. Behaviour is unchanged: write, read back, summarise, delete, report; missing credentials warn and exit 0.
ci/test_workflow_schedule_guard.py requires every root job of a scheduled workflow to skip outside obs-rust/obs-studio (#1258), or a fork gets a failure email every night. Added the standard guard.
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.
Requirement: "make sure the S3 cache is used". Today it cannot even be observed.
The problem this addresses
build-project.yamlpassess3-bucket: forge-ci,s3-endpoint: nyc3.digitaloceanspaces.com,s3-region: nyc3,s3-cache-limit: 50Gand bothSOLDR_S3_CACHE_*secrets intozackees/setup-soldrat 11 callsites - and every one of them setsbuild-cache: false..github/actions/cache/action.ymlis anactions/cachewrapper with no S3 code. So the bucket is configured, credentialed, and never touched by a compile, and no workflow step reports a single byte about it.What this adds
A nightly (and dispatchable)
s3-cache-canaryjob inscheduled.yaml:s3://forge-ci/ci-canary/<timestamp>.txtcmpit - proving write and read, not just credentialsaws s3 ls --recursive --summarize: object count, bytes, GiB against the 50 GiB watermarkcontinue-on-error: trueand explicit "credentials missing" handling: this probe reports, it never blocks the nightly.Why a canary before flipping
build-cacheFlipping
build-cache: trueenables the compiler store transport, which can serve a stale artifact as a hit - thezccache#1943class of false green. The canary proves endpoint + credentials + bucket state first, cheaply and reversibly, so the later flip is a smaller change against a known-good store.Verified
yaml.safe_loadparses the modified workflowci/test_ci_toml.py-> 47 tests OK (workflow policy: no new permissions needed, job inheritscontents: read)Not done here
build-cache: trueon any lane. That is the next step, one lane at a time, measured by the ledger in ci: per-job cache ledger and baseline rollup #3831.SOLDR_S3_CACHE_*are write-only GitHub secrets anddoctlhas no Spaces listing, which is exactly why the answer has to come from a CI job.Expected output after merge (next nightly)