Skip to content

ci: run the s3compat suite against MinIO on every PR - #599

Merged
scttfrdmn merged 3 commits into
mainfrom
fix/570-s3compat-minio
Oct 9, 2026
Merged

scttfrdmn merged 3 commits into
mainfrom
fix/570-s3compat-minio

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Refs #570 (second part: s3compat). integration and aws_s3 still need a real-AWS role, pending a decision on #570.

Measured first

Run locally against a real MinIO before writing the job: 4/4 tag-only tests pass in 2 s, no skips. MinIO answers If-None-Match: * over an existing key with 412, If-Match on an absent key with 404, and enforces the precondition on CompleteMultipartUpload. That matches the MinIO row of docs/design/conditional-write-compatibility.md. The suite also logs MinIO ignoring If-Match on DeleteObject, which is documented and not relied on: ObjectFS never issues a conditional delete.

This suite exists because that matrix can't be kept accurate by reading docs. Two of its rows were wrong, in a direction that mattered, back when they were based on documentation.

Change

  • s3compat joins tagged-suite's matrix, so it reports as tagged-suite (s3compat).
  • Its cell starts MinIO pinned by digest, so the verified store only changes in a reviewed commit. It runs as a step rather than under services:, because a service container takes no command and MinIO needs server /data. The step waits on MinIO's health endpoint and fails with MinIO's logs if it never becomes ready.
  • OBJECTFS_COMPAT_ENDPOINT is set only in that cell. Without an endpoint the suite skips, and tagged-suite fails on any skip, so a broken MinIO step can't pass as green.
  • s3compat leaves executedTagsExempt. The gate fails a stale exemption, so the two have to change together.

The keys (objectfs / objectfs123) are throwaway, for a container that lives as long as the job and listens on localhost.

🤖 Generated with Claude Code

The s3compat suite verifies conditional-write semantics against a real
S3-compatible store, which is how docs/design/conditional-write-
compatibility.md's matrix is kept honest; two of its rows were wrong when
they were documentation reads. It was vetted and never run.

Measured locally against MinIO before writing the job: 4/4 tag-only tests
pass in 2s with no skips, enforcing If-None-Match: * as 412, If-Match on an
absent key as 404, and the CompleteMultipartUpload precondition, which
matches the matrix's MinIO row.

s3compat joins tagged-suite's matrix. Its cell starts MinIO pinned by
digest, in a step rather than services: (a service container takes no
command, and MinIO needs server /data), waits on the health endpoint, and
points OBJECTFS_COMPAT_* at it. Without an endpoint the suite skips, and
tagged-suite fails on any skip. Its exemption leaves executedTagsExempt,
which the gate requires once the tag is executed.
…longer exists

The first run of tagged-suite (s3compat) never reached the suite: pulling
minio/minio by digest failed with 'pull access denied ... repository does
not exist'. The repository is gone from Docker Hub (404) and Quay's copy
needs authentication; MinIO's community edition is now source-only. The
pinned digest came from an image podman had cached locally since
2025-09-07, so the local measurement had used something CI could not get.

Build github.com/minio/minio at v0.0.0-20260212201848-7aac2a2c5b7c (its go
line is 1.24.0, below the runner's 1.26.9) and run the binary on
localhost. Re-measured against that exact build, from source, with a fresh
data directory: 4/4 pass, no skips, 48s to build cold on a laptop.
… is gone

The suite's header told people to podman run minio/minio, which works only
where an old copy is cached: the repository no longer exists on Docker Hub.
It now gives the same pinned go install the CI cell uses.
@scttfrdmn
scttfrdmn merged commit 86b23c2 into main Oct 9, 2026
58 checks passed
@scttfrdmn
scttfrdmn deleted the fix/570-s3compat-minio branch October 9, 2026 19:43
scttfrdmn added a commit that referenced this pull request Oct 20, 2026
…ified daily (#634)

The compatibility-matrix sentence said AWS was 'the only one CI keeps
verified'. Two things have changed since: live-aws.yml runs the
conditional-write suite against real S3 daily (#570), and s3compat
re-checks MinIO on every PR (#599). The sentence now says AWS is the only
row that matters and the one verified against the real service, and names
the job that keeps it so. MinIO gets a clause as a best-effort row that
informs a fallback and never constrains what ObjectFS does on AWS, which is
the maintainer's stated priority.
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