Repository navigation
ci: run the integration and aws_s3 suites against real AWS, daily, via OIDC - #616
Merged
Merged
Conversation
…a OIDC (#570) The last two of #570's tags that never ran. integration holds the only live verification of conditional writes, which every CAS guarantee rests on; aws_s3 exercises the backend against real S3. live-aws.yml: daily plus workflow_dispatch, never on pull_request. Assumes objectfs-ci-live-s3 through GitHub OIDC. Its trust policy accepts only repo:scttfrdmn/objectfs:ref:refs/heads/main and its permissions reach S3 on objectfs-live-* buckets only; both are in deploy/aws/ci-live-s3/, and the live role was read back and matches the files. The ARN is a secret, since it carries the account ID and the logs are public. Fails closed without it. Same discovery as tagged-suite, every tag-only test must PASS, no SKIP. aws_s3 could not run anywhere but one laptop: it forced the shared-config profile 'aws', which does not exist under OIDC, and skipped without a pre-made OBJECTFS_TEST_BUCKET. It now uses a profile only when one is named, and creates and removes its own objectfs-live-awss3-* bucket, uploads included. Measured against real AWS before writing the job: - aws_s3: 12/12, no skips, no bucket left. First run 11/12: TestZSTDCompression asserted a compression-off backend reads the compressed bytes. It decodes by the object's Content-Encoding, which is correct (otherwise disabling compression would make every file written with it unreadable), and the raw-client checks in the same test proved the object is stored compressed. The assertion now requires the decode. - integration: 11/11 in 8s (8 conditional-write and multipart-copy tests, 3 awsrates), no skips, no bucket left. integration and aws_s3 leave executedTagsExempt; only benchmark (#568) remains. Dropping aws_s3 from the matrix fails TestEveryTestTagIsExecuted.
5 tasks
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.
Refs #570. This is the last half. #570 closes once a dispatched run on
mainhas passed, because this workflow can't run from a PR by design.What it runs
integration: the only live verification of conditional writes. Every CAS guarantee rests on four real-service behaviours that substrate can only imitate. Plus the multipart-copy tests andawsrates.aws_s3: the backend against real S3.Access: least privilege, in reviewed files
objectfs-ci-live-s3, created, and read back to confirm it matches the filesrepo:scttfrdmn/objectfs:ref:refs/heads/mainonly. No PR, fork or other branch can assume itobjectfs-live-*buckets and their objects. NoListAllMyBuckets, nothing outside that prefixdeploy/aws/ci-live-s3/{trust,permissions}-policy.json, so the access CI has is a file you can review and recreateAWS_LIVE_ROLE_ARN, not a variable: it carries the account ID, and logs are publiclive-aws.ymlworkflow_dispatch, and never onpull_request.tagged-suite: every tag-only test must PASS, and any SKIP fails the job.aws_s3could only run on one laptopIt forced the shared-config profile
aws, which doesn't exist under OIDC, and it skipped without a pre-madeOBJECTFS_TEST_BUCKET. Now it uses a profile only when one is named, and creates and removes its ownobjectfs-live-awss3-*bucket, aborting any in-progress uploads first.Measured against real AWS first
aws_s3integrationaws_s3was 11/12 on its first run.TestZSTDCompressionasserted that a compression-off backend reads back the compressed bytes. It decodes by the object'sContent-Encoding, which is correct: otherwise turning compression off would make every file written with it unreadable. The raw-client checks later in the same test proved the object really is stored compressed (smallerContentLength,Content-Encoding: zstd). The assertion now requires the decode, which turns a stale test into a guard on a real integrity property.Gate
integrationandaws_s3leaveexecutedTagsExempt. Onlybenchmark(#568) remains. Droppingaws_s3from this workflow's matrix failsTestEveryTestTagIsExecuted.After merge
I'll dispatch the workflow on
main, read both cells' logs, and close #570 if they pass.🤖 Generated with Claude Code