Skip to content

ci: build and publish a Debian 14 (forky) package beside trixie - #17

Merged
bketelsen merged 5 commits into
stablefrom
lucilla/incus-forky
Nov 13, 2026
Merged

bketelsen merged 5 commits into
stablefrom
lucilla/incus-forky

Conversation

@frostyard-machines

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

Copy link
Copy Markdown

Summary

frostyard/core Plan 0009 Phase 6 (docs/plans/0009-debian-publication-through-apt-publisher.md) adds Debian 14 forky beside trixie. incus links distribution libraries, so it needs a separate Debian 14 build whose version carries ~deb14 (core ADR-0055).

  • sync-docker-build.py generates a second build job, Build Incus (Debian Forky), in debian:forky, from the same upstream steps as the trixie job.
  • Forky has the same library generation as Ubuntu 26.04 (libgpgme45, libnet9, libfuse3-4, the t64 names, the virglrenderer build). So the forky job pins OS_NAME/PKGOS to debian-14 and points the ubuntu-26.04 operands of the if conditionals at debian-14. The CODENAME=resolute line does not change; CODENAME=forky is added.
  • The forky version is 1:<incus>-debian14-<UTC minute>~deb14. Its release tag drops the epoch and ~deb14 (git tags cannot hold ~), for example 7.6-debian14-202611131200.
  • release-forky and request-publication-forky are separate from the trixie jobs, so a forky failure never blocks the trixie release. The forky release uses --latest=false, so the trixie release stays the latest. The request names ["forky"].
  • The generator exits non-zero with a message when an upstream pattern that a forky rewrite needs disappears (the CODENAME=trixie line, the dch date stamp, PKGOS: ${{ matrix.os }}, the artifact name, the ubuntu-26.04 operands).

Trixie does not change. Against stable, builds-docker.yml only adds lines, except 4 comment lines in the trixie release job that said it is registered for trixie only. The trixie build job (a required check), its version, its release and its request are byte-for-byte the same.

Order

frostyard/apt-publisher must register incus for forky before the first forky request after this merges (frostyard/apt-publisher#50). Until then, request-publication-forky fails and publishes nothing; the trixie jobs are not affected.

Checks

  • Forky's libc6-dev no longer depends on rpcsvc-proto, so the first forky build failed in libnvidia-container with rpcgen: not found. The forky job now installs rpcsvc-proto.
  • tests/test_sync_docker_build.py (17 tests, standard library only) runs in the new Generator workflow on every PR and every push to stable. It covers:
    • the drift between the committed file and the generator output;
    • the trixie and forky job contents;
    • 6 negative generator cases, 1 for each required upstream pattern;
    • the Check the packages scripts of release-forky (1 valid set with its tag, 9 wrong sets) and of release (1 valid set, 1 wrong set), with fake packages.
  • I ran python3 sync-docker-build.py twice. The output is the same both times, and it matches the committed builds-docker.yml.
  • I ran negative tests: removing each pattern makes the generator exit 1 with its message.
  • I checked in debian:forky with apt-cache show that every build dependency and every runtime Depends name exists there.
  • actionlint reports no actionlint errors. The shellcheck notes are the same kind that the trixie job already has: the steps repeat, so there are more of them.
  • CI run 43489559597 at 4740865: Build Incus (Debian Trixie) and Build Incus (Debian Forky) pass.

Risk paths (risk:high)

  • .github/workflows/builds-docker.yml (L1, publication): adds the forky build, release and publication jobs. The trixie jobs do not change, so trixie publication is safe. The forky jobs write only a new release with its own tag and request forky only. apt-publisher refuses a ~deb14 package for trixie.
  • sync-docker-build.py (L1, publication): it generates the file above. The trixie output is the same, and every forky rewrite fails closed. The only other change is a docstring line that names the tests.
  • The new Generator workflow, the tests and .memory/ are outside the risk list. The workflow has read-only permissions and a pinned checkout with persist-credentials: false.

Generate a second build job in debian:forky from the same upstream steps.
Forky shares Ubuntu 26.04's library generation (libgpgme45, libnet9,
libfuse3-4, the t64 names), so the forky job runs the ubuntu-26.04 branches
of builds.yml with OS_NAME and PKGOS pinned to debian-14, adds
CODENAME=forky, and appends ~deb14 to the version. apt-publisher publishes a
~deb14 version to forky only (frostyard/core ADR-0055).

The forky build has its own release and publication request, so a forky
failure never blocks the trixie release. The trixie build job, its release
and its request do not change; only 1 comment in the trixie release job
changes. The generator fails loudly when an upstream pattern that a forky
rewrite needs disappears.

Refs frostyard/core Plan 0009 Phase 6
(docs/plans/0009-debian-publication-through-apt-publisher.md).

Signed-off-by: frostyard-machines <[email protected]>
libnvidia-container runs rpcgen. In trixie, libc6-dev depends on
rpcsvc-proto, which ships it; in forky it no longer does, so the forky
build stopped at 'rpcgen: not found'. The trixie job does not change.

Signed-off-by: frostyard-machines <[email protected]>
tests/test_sync_docker_build.py runs the generator on a temporary copy and
checks that the committed builds-docker.yml matches it, that the trixie jobs
keep their trixie values, and that the forky job gets each rewrite. Each
missing upstream pattern must stop the generator. The Check the packages
scripts of release and release-forky run against fake .deb files: a correct
set passes with the right tag, and each wrong set fails. The Generator
workflow runs the tests on pull requests and on pushes to stable.

Signed-off-by: frostyard-machines <[email protected]>
The review of the forky generator found that its fail-closed rewrites and
release checks had no committed negative tests; .memory/corrections.jsonl
records that lesson, with tests/test_sync_docker_build.py as its guard.
The bytecode that a local test run wrote is removed and ignored.

Signed-off-by: frostyard-machines <[email protected]>
frostyard/core ADR-0081 stores each correction in a file of its own under
.memory/corrections/; this repository had no corrections.jsonl, so the
record starts in the new layout.

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

Copy link
Copy Markdown
Author

Cross-review: openai/gpt-6.1-sol (coder: DeepSeek; parent review: Anthropic Claude). Base 66e44c85a24157a195eb2d7e0a3c08c08ed4dcd0.

  • Initial review at 515f53a342fbcd03658c3ef91ddae7d224f5889a: Not ready. B1 (medium, blocking): the forky generator rewrites and the release package checks had no targeted negative tests.
  • Re-review 1 at c4df5a02d48c170fe23a3fc6ff110907168cc0d9: B1 resolved (17 tests, which can fail for the right reasons). B2 (medium, blocking): no correction record. B3 (low): tracked .pyc.
  • Re-review 2 at 7901f3280091a347379f60b83fb9c3efac2cc9b3: B2 and B3 resolved.
  • Re-review 3 at 4740865672b82583af00f3ae669b532661f39d33: the record moves to .memory/corrections/ (core ADR-0081). Ready, no findings.
  • CI at 4740865 is green: both Docker builds (run 43489559597) and Generator tests.

@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 e7df84c into stable Nov 13, 2026
10 checks passed
@bketelsen
bketelsen deleted the lucilla/incus-forky branch November 13, 2026 19:38
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 high-risk path (ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants