Repository navigation
publish-to-r2: refuse the stable suite and drop the implicit stable default - #66
Merged
Merged
Conversation
…efault repogen's publish-to-r2 Action fails closed, before credentials or any R2 access, when codename or suite resolves to 'stable', and no longer defaults codename to 'stable'. Work-item: w-request-r-20261002-a43afc Reviewed-by: github-copilot/gpt-6-sol
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
14 tasks
bketelsen
added a commit
that referenced
this pull request
Oct 2, 2026
… map Plan 0007 R1–R5 (#67) Finish core Plan 0007's R1–R5 in repogen. Most of it already landed in #62/#64/#66. This closes the remaining gaps: the generic `--codename stable` default, the Debian incremental restore fallbacks, and a README map from each R item to its code and tests. Work-item: w-request-r-20261002-ac50b8 Reviewed-by: github-copilot/gpt-6-sol
Merged
11 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.
repogen's publish-to-r2 Action fails closed, before credentials or any R2 access, when codename or suite resolves to 'stable', and no longer defaults codename to 'stable'.
Reviewed by github-copilot/gpt-6-sol.
Review
approve after 1 round: The previous validation-order and path-name findings remain resolved. The previous symlink blocker is now resolved: validation checks symlink entries and reads their targets, and the targeted tests pass. The action has no stable codename default, rejects stable targets before installation or R2 access, and requires an explicit codename for deb while allowing sysext callers to omit it. The supplied change description names bootc-debian and updex as unaffected, but the PR description itself was unavailable, so that acceptance criterion cannot be independently verified.
Approved plan
Context
At c978986,
.github/actions/publish-to-r2/action.ymldefaultscodename: 'stable'(lines 65-68) and passes it torepogen generate(481-487). Package typedebis already rejected in "Validate inputs" (165-170), the first step, which runs before installing repogen, configuring credentials or syncing R2.Assumptions (please correct)
stablefor codename and suite, case-insensitive and whitespace-trimmed, for every package type. A sysext/rpm caller never needs that value.default: ''). An omitted codename fails with a clear message only forpackage-type: deb(checked before the existing deb refusal, so the caller sees why). Snosi's sysext callers omit codename, and the deb generator does not use it for them, so making it required for every type would break them for no benefit. If Odrade wants it required for all types, it is a one-line change.repogen generate --codenamekeeps its CLI default ofstable(internal/cli/generate.go:66). The CLI writes locally, and the production writer already refuses mutable names (production.go:193). Changing the CLI is out of scope; I will mention it in the PR as a possible follow-up.Tasks
scripts/validate-publish-target.shcases to a new Go test,internal/releaseasset/publish_target_test.go, that runs the script with envPACKAGE_TYPE,CODENAME,SUITE. Table: sysext with empty codename → ok; sysext codenamestable/Stable/stable→ fail; suitestable→ fail; deb with empty codename → fail, message contains "codename is required";trixie→ ok. Also assert that action.yml has nodefault: 'stable', calls the script in the "Validate inputs" step throughenv:(no direct${{ inputs.codename }}interpolation in that shell), and that the step comes before "Install repogen". Watch it fail.scripts/validate-publish-target.sh(POSIX sh,set -eu): normalize; exit 1 with::error::messages naming ADR-0048/ADR-0054 (signed stable frozen; publish to an immutable codename such as trixie).default: '', descriptions updated; call the script from "Validate inputs" withenv: PACKAGE_TYPE/CODENAME/SUITE, before the deb refusal.docs/design/ci-cd.mdaction section, and the closing paragraph ofdocs/specs/generators.md.Verification
make build,make fmt,make lint,make test-unit,shellcheck scripts/validate-publish-target.sh,actionlintif available,node scripts/check-docs.mjs,git diff --check, gofmt check.PR notes
State that bootc-debian (pinned 5a799b4) and updex (pinned 6648671) are unaffected until they move to trixie. That move needs repogen-version/repogen-commit inputs, an explicit codename, and Brian's approval for the first production write.
Plan approved by owner:odrade (standing grant approve-plans in lucilla).
Work item: w-request-r-20261002-a43afc