Repository navigation
feat(publish-to-r2): opt-in identity-level skip for published sysexts - #86
Merged
Merged
Conversation
Add `repogen generate --skip-published-identities` (sysext only, needs --incremental) and the publish-to-r2 input `skip-published-identities`. A rebuilt sysext whose identity name:version:OSVersion:arch is already listed in the signature-verified SHA256SUMS is skipped, whatever its bytes or compression suffix. Any read or signature error fails the run. --skipped-report writes the published payload path of each skip; the action checks with one bucket listing that each such payload object exists before any upload. When nothing is left to publish, repogen writes no output and the action uploads and purges nothing (published=false). An empty packages-dir stays an error. The default stays fail-closed. Known gap: a content change without a version or revision bump keeps its identity and is not republished. ADR-0018. Replaces snosi shared/sysext/publish/drop-published.sh after a release.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
- require --gpg-key (and gpg-private-key in the action): published identities come only from signature-verified manifests - check each skipped payload with an exact head-object request, not a listing compared with '+' read as a space - refuse a ./repo that already holds payloads in the new mode - fail when the scanner drops a sysext candidate in the new mode
The scanner follows symlinks, so a dangling one or one to a file that fails detection was dropped and not caught by the candidate check.
bketelsen
approved these changes
Nov 3, 2026
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.
What
An opt-in, identity-level skip for sysexts that are already published (night shift 2026-11-02, line 16; design: Lucilla's muster proposal, T714).
repogen generate --skip-published-identities(sysext only, requires--incremental). An incoming sysext whose identityname:version:OSVersion:archis already listed in the signature-verifiedSHA256SUMSis skipped, whatever its bytes or compression suffix. The read is the generator's strict read (readCurrentPackages(config, true)): strict parse,SHA256SUMS.gpgverification, transfer and index checks. Any error fails the run. No lenient fallback.--skipped-report FILE: the published payload path (ext/NAME/FILE) of each skip, sorted. Written only on success.publish-to-r2: inputskip-published-identities(defaultfalse), outputpublished. A new step runsscripts/check-published-payloads.shbefore any upload: 1ListObjectsV2call; it fails if a skipped identity's payload object is missing (a rebuild can never repair it; see ADR-0017, run 41384581449). Upload and purge run only whenpublished == 'true'. An emptypackages-dirstays an error.Known gap (documented in ADR-0018, README, action input)
A content change without a version or
SYSEXT_REVISIONbump keeps its identity, so it is skipped and not republished. The old bytes stay live. Same gap as snosi'sdrop-published.shtoday.After merge
v0.7.2(feature on v0.x, no breaking change).skip-published-identities: true, removes theprefiltergate, and deletesshared/sysext/publish/drop-published.sh. Not part of this PR.Checks
make build,make fmt,make lint(0 issues),go test -short -race ./...: pass locally.internal/cli/generate_test.go),SplitPublishedIdentitiestable tests, script tests with a fakeawsand action contract tests (internal/releaseasset/published_payloads_test.go).deepseek/deepseek-flash(subagent); review and fixes by Lucilla.