Skip to content

Support Debian suites and harden Repogen publishing - #62

Merged
bketelsen merged 24 commits into
mainfrom
adc/repogen-multi-suite
Sep 13, 2026
Merged

bketelsen merged 24 commits into
mainfrom
adc/repogen-multi-suite

Conversation

@bketelsen

Copy link
Copy Markdown

Repogen currently lacks the multi-suite publication and recovery behavior needed for the Trixie/Forky migration. This brings together the reviewed Repogen implementation, including:

  • Deterministic Debian suite metadata, shared-pool collision handling, signed restore, atomic publication, and durable intake recovery.
  • Sysext identity and publication reconciliation across OS versions.
  • One release workflow, a consistent binary/checksum contract, a digest-verifying installer, and release acceptance tests and runbooks. Addresses [repogen] Two parallel release pipelines with incompatible artifact naming #34.

Validation passed on this exact candidate: build, formatting, lint, race tests, Docker package tests, integration tests, and documentation checks. Independent Claude review repeated the full gate, exercised signed two-suite publication with real apt/gpgv, and reproduced the GoReleaser snapshot byte-for-byte.

Reviewed head: 00fdfc94152d19b16854c14389b39718eba0c234. This is the accumulated Repogen portion of the multi-repository plan; related changes in other repositories remain separate. Publishing a release is a subsequent step.

bketelsen and others added 24 commits September 12, 2026 14:09
Add a write-free production preflight that requires explicit immutable suite identity, fixed component and architecture policy, non-overlapping paths, strict Debian-only package parsing, and control-field safety while preserving generic generation behavior.

Co-authored-by: Copilot <[email protected]>
Implement the read-only R3 initialize and reconcile boundary with fail-closed signature, identity, checksum, and package-index verification.

Co-authored-by: Copilot <[email protected]>
Combine the independently reviewed strict restore and shared immutable pool candidates as the base for deterministic generation work.

Co-authored-by: Copilot <[email protected]>
Canonicalize Debian and sysext metadata, inject one publication clock, and preserve cryptographically verified signed Debian metadata on no-op generation.

Co-authored-by: Copilot <[email protected]>
Compose strict restore and collision-safe pool handling into a staged, serialized, read-back-verified Debian publication transaction with InRelease last. Consolidate release assets onto pinned GoReleaser and enforce checksum plus embedded identity verification.

Co-authored-by: Copilot <[email protected]>
Pin production installs to the GitHub release origin, isolate fixture loading behind an explicit test mode, quote action inputs, centralize production architectures, and document the release trust and platform boundaries.

Co-authored-by: Copilot <[email protected]>
Keep GoReleaser's generated dist directory out of repository state so snapshot and release builds remain bound to a clean candidate.

Co-authored-by: Copilot <[email protected]>
Preflight every selected pool destination using source bytes when available, allow identical-content reuse, and fail before output mutation when inputs collide. Clarify that deterministic package ordering compares version strings lexicographically.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>

# Conflicts:
#	README.md
Stage complete signed production trees beside the target and commit them
with a single Linux renameat2 operation. Preserve prior output through
all injected pre-commit failures while retaining generic unsigned mode.

Co-authored-by: Copilot <[email protected]>
Restore complete file and directory modes after copying so umask and special bits cannot alter retained repository state. Record full modes in drift snapshots and document R7 metadata, cost, and durability boundaries.

Co-authored-by: Copilot <[email protected]>
Add crash-durable local generation journals, retained immutable intake receipts, ordered reconciliation, and exact prior/candidate publication replay with public read-back completion.

Co-authored-by: Copilot <[email protected]>
@bketelsen
bketelsen marked this pull request as ready for review September 13, 2026 02:25
@bketelsen
bketelsen merged commit 6780ff5 into main Sep 13, 2026
3 checks passed
@bketelsen
bketelsen deleted the adc/repogen-multi-suite branch September 13, 2026 02:26
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
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.

2 participants