Repository navigation
Description
#500 fixed the tag half of the gate — release.yml now calls ci.yml, so a tag runs what a PR runs. This is the other half: of the 16 jobs in ci.yml, eight are not required status checks, so they report and are then ignored. A red one does not block a merge.
The eight
deploy-manifests · docs-site · fuzz-smoke · install-script · labels · repo-install · sdk-metrics · systemd-unit
(build-tags, cross-build and modulefiles look absent from required_status_checks too, but only because their required contexts are the expanded matrix names — build-tags (aws_s3) and so on. Those are genuinely enforced.)
Reproduce:
comm -13 \
<(gh api repos/scttfrdmn/objectfs/branches/main/protection/required_status_checks -q '.contexts[]' | sort) \
<(grep -E '^ [a-zA-Z0-9_-]*:$' .github/workflows/ci.yml | sed 's/.*: //;s/:$//' | sort)
Why sdk-metrics is the one that matters
It is a single job carrying the build-and-test for all four SDKs: Python (pytest tests/), TypeScript (install, build — i.e. tsc — tests, lint), Java (mvn -B test), and C (make test, which links a real C program against the shared library).
Every one of those steps exists because that SDK had silently never been built. The comments in the job say so:
- the JavaScript SDK:
tschad never run - the Java SDK:
mvn compilefailed with four errors, so 17 tests had never run, one asserting a wire format okhttp does not produce - the C SDK:
objectfs_info_t.keywaschar[1024]against a 1024-byte S3 key limit — one byte short — andobjectfs_last_errorreturned amallocunder a header promising the caller must not free it - both SDKs' metrics extractors parsed for metric names no version of ObjectFS ever exported, and returned empty dicts to every caller in a release
So the steps were added specifically to stop that class of defect recurring — and then nothing was configured to make them stop it. ci.yml:436 even argues the case for a hard gate:
continue-on-erroris deliberately absent. These suites need no credentials, no network, and no mount: they read one committed file. There is nothing here for a flake to come from.
The file argues for enforcement it does not have.
Concrete evidence, from today
#507 changes exactly one file, sdks/python/requirements.txt. The only job that exercises it is sdk-metrics. That PR can merge with the Python SDK's tests red. The regenerated tree was verified locally (73 passed, 31 subtests) precisely because the gate would not have caught it.
One correction to the comment above, before anyone quotes it
"need no credentials, no network" is true of the test payloads and not of the jobs. pip install -r requirements.txt reaches PyPI, npm install reaches the npm registry, and mvn -B test reaches Maven Central. So sdk-metrics does have a flake source — registry availability — just not the one the comment rules out. repo-install is the proof that this is not theoretical: it went red on #501 because Docker Hub returned 502 Bad Gateway pulling ubuntu:24.04.
That is an argument about which of the eight to require, not about whether the current state is intended.
Suggested split
| job | require? | why |
|---|---|---|
sdk-metrics |
yes | guards a documented, already-shipped class of defect; registry flake is the cost |
fuzz-smoke |
yes | deterministic seed corpus, no network |
labels |
yes | cheap, deterministic |
systemd-unit, deploy-manifests, install-script |
probably | static validation of shipped artifacts |
docs-site |
judgement | build-only, but touches the site toolchain |
repo-install |
no | pulls from Docker Hub; measured to flake on registry 502s |
Requiring a job also means adding a context that must report on every PR, so check the interaction with [[a-job-name-reports-a-check-name-may-not]]: a SARIF-derived check name skips push: main, which is why only a job name can be required. All eight of these are job names, so that trap does not apply here.
Not done in this issue, deliberately
Changing main's required-status-checks list is a persistent repository setting. It needs explicit authorization and is not something to apply while filing the finding. This issue is the finding and the recommendation; the settings change is a separate, authorized step.
Related: #500 (the tag half), #503 (SHA-pin actions), #438 (internal/fuse coverage floor flakes — a required context that is flaky, the mirror-image problem).
Activity
scttfrdmn commentedon Sep 17, 2026
Moved off the v0.15.0 milestone (renamed from v0.16.0) because 0.15.0 has been cut and this is not in it. Not deprioritized — it stays
priority: high, and it is unmilestoned rather than filed under Future Work so it does not get buried.It is still blocked on the same thing this issue says it is blocked on: changing
main's required-status-checks is a persistent repository setting and needs explicit authorization. The recommendation table in the body is unchanged and ready to apply.One thing that has changed since filing: #503 landed (via #510), so every action is now SHA-pinned, and #500's shared-gate arrangement means a tag runs the same gate a PR runs. The eight job names in the table still exist under those changes.
scttfrdmn commentedon Sep 18, 2026
Done. Branch protection on
mainnow requires a pull request, applies to admins, and requires 39 contexts (was 20).Two corrections to this issue
repo-installno longer exists. #520 deleted the apt/yum repository machinery and the job with it. Adding it as a required context — as this issue’s list says to — would have made every PR block forever on a check that can never report. So seven of the eight were promoted, not eight.build-tags (s3compat)was also unrequired, and this issue missed it. The other sixbuild-tagscells were required and that one was not, so as3compatbuild break could merge. Added.What was added (19 contexts)
The matrix jobs were expanded to their reported names, taken from a real PR run (#524) rather than from the job keys in
ci.yml— a barefuzz-smokeorinstall-scriptcontext is never satisfied by anything, because the reported name carries the matrix values:deploy-manifests,docs-site,labels,sdk-metrics,systemd-unitfuzz-smoke (...)× 10install-script (...)× 3build-tags (s3compat)Both directions were checked before and after: all 20 pre-existing contexts retained, and no required context is unsatisfiable by a real PR run.
Deliberately still not required
gosec— it goes red today (gosec findings do not block a merge, and the job that runs gosec cannot fail #415, and see Twelve gosec G115 alerts have accumulated unwatched, and two of them are wrong beyond the overflow #525: twelve open G115 alerts). Requiring it would block every PR immediately.Trivy— SARIF-derived, and those checks do not report on every event, so requiring it risks the orphan failure mode above.dependabot— reportsskippingon non-Dependabot PRs; not a quality gate.Also changed, per the same authorization
enforce_adminsis now true, so the PR requirement applies to the repository owner too. With one committer, an admin-exempt rule would have been advisory. The escape hatch is toggling the setting, notgh pr merge --admin.required_approving_review_countis 0: GitHub forbids self-approval, so requiring 1 on a single-maintainer repo would make every PR unmergeable.Not verified empirically, on purpose
I did not test enforcement by attempting a direct push to
main. If protection failed to hold, the test would itself be an unreviewed push tomain— the exact thing this change exists to prevent. The API state above is authoritative for these settings, and the next PR exercises all 39 contexts for real.Worth a follow-up
Nothing couples
ci.yml’s job list to the required-context set, which is whyrepo-installwent stale ands3compatwas never added.internal/config/labels_test.goalready does exactly this shape of both-directions check for labels; the same treatment for required contexts would have caught both.