Skip to content

ci: run the integration and aws_s3 suites against real AWS, daily, via OIDC - #616

Merged
scttfrdmn merged 2 commits into
mainfrom
feat/570-live-aws
Oct 18, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
feat/570-live-aws

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Refs #570. This is the last half. #570 closes once a dispatched run on main has 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 and awsrates.
  • aws_s3: the backend against real S3.

Access: least privilege, in reviewed files

Role objectfs-ci-live-s3, created, and read back to confirm it matches the files
Trust GitHub OIDC tokens for repo:scttfrdmn/objectfs:ref:refs/heads/main only. No PR, fork or other branch can assume it
Permissions S3, and only objectfs-live-* buckets and their objects. No ListAllMyBuckets, nothing outside that prefix
Source deploy/aws/ci-live-s3/{trust,permissions}-policy.json, so the access CI has is a file you can review and recreate
ARN secret AWS_LIVE_ROLE_ARN, not a variable: it carries the account ID, and logs are public
Already there GitHub's OIDC provider existed and is untouched

live-aws.yml

  • Runs daily plus workflow_dispatch, and never on pull_request.
  • Fails closed without the role secret.
  • Same discovery as tagged-suite: every tag-only test must PASS, and any SKIP fails the job.

aws_s3 could only run on one laptop

It forced the shared-config profile aws, which doesn't exist under OIDC, and it skipped without a pre-made OBJECTFS_TEST_BUCKET. Now it uses a profile only when one is named, and creates and removes its own objectfs-live-awss3-* bucket, aborting any in-progress uploads first.

Measured against real AWS first

Suite Result
aws_s3 12/12, no skips, no bucket left
integration 11/11 in 8 s, no skips, no bucket left

aws_s3 was 11/12 on its first run. TestZSTDCompression asserted that a compression-off backend reads back the compressed bytes. It decodes by the object's Content-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 (smaller ContentLength, Content-Encoding: zstd). The assertion now requires the decode, which turns a stale test into a guard on a real integrity property.

Gate

integration and aws_s3 leave executedTagsExempt. Only benchmark (#568) remains. Dropping aws_s3 from this workflow's matrix fails TestEveryTestTagIsExecuted.

After merge

I'll dispatch the workflow on main, read both cells' logs, and close #570 if they pass.

🤖 Generated with Claude Code

…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.
@scttfrdmn
scttfrdmn merged commit 9adaa13 into main Oct 18, 2026
58 checks passed
@scttfrdmn
scttfrdmn deleted the feat/570-live-aws branch October 18, 2026 19:15
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.

Seven build-tagged test suites are compiled and never executed, including the only live AWS conditional-write verification

1 participant