Skip to content

build: build and release a Debian 14 (forky) package beside trixie - #27

Merged
bketelsen merged 4 commits into
mainfrom
lucilla/bootc-forky
Nov 13, 2026
Merged

bketelsen merged 4 commits into
mainfrom
lucilla/bootc-forky

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

frostyard/core Plan 0009 Phase 6 (docs/plans/0009-debian-publication-through-apt-publisher.md) adds Debian 14 forky beside trixie. This PR builds and releases bootc and libostree-1-1 for forky with ~deb14 versions. ADR-0001 records the decision.

  • Build: a matrix with 1 leg for each codename, Build (Debian Trixie) (the required check, same name) and Build (Debian Forky). A Build stamp job gives both legs 1 BUILD_STAMP.
  • build.sh: it has 1 Depends list pair for each codename. I measured both with real builds in debian:trixie and debian:forky (objdump NEEDED and dpkg -S). Forky differs only in libgpgme45 (gpgme 2, libgpgme.so.45) in place of libgpgme11t64. A new check at the end of the build (lib/check-depends.sh) fails unless each Depends list equals the packages that its binaries' sonames map to. A failed find, od or objdump read fails the check too.
  • Release: exactly 4 packages: bootc and libostree-1-1, once for ~deb13 and once for ~deb14, from 1 stamp, with the same upstream version on both. The check is in lib/check-release.sh, which the Release job runs after a checkout. The tag shape does not change. The request names ["trixie", "forky"], and apt-publisher routes each ~debNN package to its codename (core ADR-0055).
  • ostree floor: forky's own libostree-1-1 is 2026.6-1 today. Our pin is 2026.6, and 2026.6-frostyard<stamp>~deb14 sorts above it.

Trixie does not change. I rendered the trixie control files from HEAD and from this branch: they are byte-for-byte the same. The version and tag shapes are the same too.

Trade-off (ADR-0001): a forky build failure blocks the next release of trixie as well, because the release needs both legs. Every PR builds both legs, so main is green before a person starts a release.

Order

frostyard/apt-publisher#50 registers bootc-debian for forky. It must merge before the next manual release. If it does not, apt-publisher refuses the request as a whole and publishes nothing, also to trixie.

Checks

  • make ci passes locally.
  • Local builds of the pinned pair in debian:trixie and debian:forky passed, and I measured the Depends sets from them. This PR's CI runs both legs with the new check.
  • tests/check-depends-test.sh (18 cases) and tests/check-release-test.sh (15 cases) run in make test. The release cases: 1 valid set writes the exact tag, and each wrong set fails with its message (empty, missing, extra, duplicate, mixed stamps, mismatched upstream, wrong marker, no marker, wrong architecture, wrong file name).
  • The release check was also run on real .deb files: a good set passes, and 8 bad sets fail.
  • CI run 43490760433 at f13b105: Build (Debian Trixie) and Build (Debian Forky) pass, with the Depends check in both.

Risk paths (risk:high)

  • build.sh (L1, boot chain): the trixie output does not change. The forky lists come from measured NEEDED sonames, and the new check fails the build on any difference.
  • .github/workflows/build.yml (L1, publication): the release still runs only on a manual dispatch on main. It checks 4 packages and 1 stamp, it attests every .deb, and the request names both codenames. The permissions do not change. The Release job gets a checkout (the same pinned actions/checkout, persist-credentials: false, the triggering revision) so that it can run lib/check-release.sh. The download gets 2 inputs (pattern and merge-multiple on the same pinned download-artifact).
  • lib/check-depends.sh, lib/check-release.sh (L1): the 2 checks, each with a test that runs it; neither has credentials or network access.
  • .github/workflows/check-dependencies.yml (L1): only 1 sentence of the bot PR body changes.
  • Makefile (L2): make build CODENAME=forky builds locally. The gate targets do not change.

Plan 0009 Phase 6 of frostyard/core adds forky beside trixie. The packages
link the libraries of the release they are built in, and forky ships gpgme 2
(libgpgme45) where trixie has libgpgme11t64, so build.sh holds 1 Depends list
for each codename and checks it against the NEEDED sonames of the built
binaries.

Build runs 1 leg for each codename with 1 shared build stamp, and the
release holds the ~deb13 and the ~deb14 packages and requests both
codenames (core ADR-0055 routes each to its codename). The trixie packages
do not change. ADR-0001 records the decision.
@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json (core ADR-0068) labels Nov 13, 2026
The check now has its own test: small .deb files with stubbed dpkg and
objdump prove that a matching list passes and that a missing, an extra or an
unresolvable package fails, and 1 case reads /bin/true with the real objdump.
make test runs it, and lint runs shellcheck on lib/. lib/** is a boot-chain
risk path (L1), like build.sh.
check_depends ran find and objdump in process substitutions, so a failure
of either was lost and the check could pass on the sonames of the other
files. Both now run in the parent shell, and a failure fails the check.

The release check moves from the Release job into lib/check-release.sh,
which the job runs after a checkout. tests/check-release-test.sh runs it
on fake packages: the 4 packages of 1 release pass and write the tag, and
each wrong set fails with its message (ADR-0001).

Signed-off-by: frostyard-machines <[email protected]>
depends_packages treated a file whose header od could not read as not
ELF and skipped it, so the check could still pass on the sonames of the
other files. The od read now runs in the parent shell, and a failure
fails the check. A new case stubs od to fail on 1 of 2 files.

Signed-off-by: frostyard-machines <[email protected]>
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review: openai/gpt-6.1-sol (coders: DeepSeek and Anthropic Claude).

  • Initial review at 30ee3ef34888e909a96ced590ac21c9a34b4448d (base e2fbd0a41d55b42d86b6de7a8756b23ca1b71304, all 15 files): Not ready. D1 (medium, blocking): find and objdump failures in process substitutions were lost in the Depends check. D2 (medium, blocking): the release check had no committed tests.
  • Re-review 1 at 998578b02705218769f82f1732c5394c24380203: D2 resolved (logic moved unchanged to lib/check-release.sh; the Release checkout is safe). D1 partly resolved: a failed od header read still skipped the file.
  • Re-review 2 at f13b105d40528f8c041657cbb5cb6ca0d9d5500e: D1 resolved. Ready, no findings.
  • Guards: tests/check-depends-test.sh cases 11-13 and the no-root case, tests/check-release-test.sh, and 2 lines in .memory/corrections.jsonl. Each new case fails against the code before its fix.
  • CI at f13b105 is green, including Build (Debian Trixie) and Build (Debian Forky) (run 43490760433).

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 13, 2026
@bketelsen
bketelsen merged commit 6f0df0d into main Nov 13, 2026
10 checks passed
@bketelsen
bketelsen deleted the lucilla/bootc-forky branch November 13, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json (core ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants