Skip to content

ci: build the container-runtime rootfs natively, upload compressed artifacts unzipped, ship the Pi image gzipped - #4795

Merged
dr-bonez merged 17 commits into
masterfrom
ci/native-container-runtime-rootfs
Nov 19, 2026
Merged

dr-bonez merged 17 commits into
masterfrom
ci/native-container-runtime-rootfs

Conversation

@helix-red

@helix-red helix-red commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR now includes #4796 (upload already-compressed artifacts without zipping), which touched the same workflows. #4796 is closed in favor of this one.

Rollout: a clean cut (approved by @dr-bonez). Merging renames every StartOS image, StartWRT image, product deb and package s9pk artifact at once, with no fallback to the old names. Tooling that looks artifacts up by their old fixed names stops finding runs built before the merge, and those runs expire within 14 days. Until then:

  • make start-os-update-from-gha without RUN_ID uses only runs built after the merge. Given an older RUN_ID, it fails, and the image has to be fetched by hand with gh run download <run> -n <platform>.squashfs.
  • apt-publish-alpha cannot see the old-named debs. Each product keeps the alpha apt version it already has, with the existing "no complete master build left" warning, until that product next builds on master.
  • Ops: the migration payload is now the artifact startos-<version>-<hash>_<platform>.migration.squashfs. gh run download cannot fetch it. Download it from the run page or with scripts/gha-artifact-download.sh <repo> <run> 'startos-*_<platform>.migration.squashfs' <dir>.
  • manage-release.sh pull-gha needs no transition handling, provided it always runs from the commit being released. For StartWRT this includes the built images, now downloaded as startwrt-*.img.gz.

Summary

  • The container-runtime rootfs is built once per architecture, on a native runner.

    • Why: each architecture's build job compiles the Rust binaries with cargo zigbuild, a cross-compile on any host. It then packaged the container-runtime rootfs (the Debian image every service container boots from), which runs deb-install.sh (apt) in a chroot of the target architecture. riscv64's build job runs on an x86 runner, so that step ran under QEMU; on x86_64 and aarch64 it ran natively in about 2.5 minutes.
    • Now: the build job's handoff holds only cross-compiled outputs: the binaries and the container-runtime's built JS with its production dependencies (dist/). A new rootfs job in build-products.yaml builds rootfs.<arch>.squashfs once per architecture on a runner of that architecture (ubuntu-latest, ubuntu-24.04-arm, ubuntu-24.04-riscv) and uploads it unzipped. Every image job, and a publish run's image jobs, download it from the build run alongside the compiled tarball, so x86_64 and aarch64 no longer build it three and four times (requested by @dr-bonez).
    • Ordering: the image jobs and the publish dispatch now wait for every architecture's rootfs. If one architecture's rootfs build fails, no image is built in that run. GitHub cannot make one platform's image depend on a single entry of the rootfs matrix.
    • Shared steps: the RISC-V action-runtime bootstrap (fix(ci): run the RISC-V action host without V8 background threads #4737's --single-threaded action Node) and the steps that unpack the compiled tarball are now local composite actions (.github/actions/riscv-action-runtime, .github/actions/use-compiled-artifacts), used by both the image and rootfs jobs. A local action can only run after checkout, so the bootstrap now runs right after checkout instead of first. It still precedes every other JavaScript action. fix(ci): run the RISC-V action host without V8 background threads #4737's crashes all happened during large artifact transfers, which checkout doesn't do: it fetches through git.
  • The rootfs build unpacks the Debian base instead of mounting it. The RISC-V runner's kernel cannot mount squashfs, so update-image.sh extracts the base with unsquashfs into a tmpfs and builds in that tree, with no loop mount or overlay. This applies to every build, local ones included; the repacked rootfs has the same contents. Separately, update-image-local.sh now stops when its container fails. Before, make carried on and failed later on the missing rootfs.

  • PRs touching the rootfs scripts build images. OS_IMAGE_PATHS now includes projects/start-os/container-runtime/*.sh and *.service, since CI now runs those scripts only in builds that make images.

  • Already-compressed artifacts are no longer zipped. These uploads use actions/upload-artifact@v7's archive: false, so each artifact is the file itself:

    • startos-image.yaml: .squashfs, .iso, .img.gz and .migration.squashfs.
    • build-products.yaml: the compiled-artifacts handoff, the per-architecture rootfs.<arch>.squashfs, and the start-cli/start-registry/start-tunnel .debs.
    • Package CI's build.yml/release.yml: s9pks.
    • start-wrt.yaml: the sdcard and sysupgrade .img.gz images, one artifact each, uploaded through the repo's upload-each action. Its deploy downloads them by pattern and checks that both are present before uploading anything.

    The image uploads were already at compression-level: 0, so for them this removes only the zip wrapper. The .migration.squashfs and the debs were previously compressed at the default level.

  • The compiled-artifacts handoff is compiled-<arch>.tar.gz (requested by @dr-bonez). The tar stays because a zipped artifact resets every file to mode 644 and would drop the binaries' execute bits. It is gzipped and uploaded as-is, and startos-image.yaml downloads it by file name.

  • The Pi image is published gzipped only (requested by @dr-bonez). No raw .img is uploaded or indexed any more.

    • CI: the image job gzips the .img and uploads only the .img.gz. The deploy uploads that file to S3 and indexes it in the registry's img slot, so the registry's signed blake3 commitment covers the gzipped bytes, as StartWRT's images already do. start-cli registry os asset add picks the slot from the file extension, so the deploy indexes the .img.gz through a hardlink named .img, with the URL of the .img.gz. This is the same trick StartWRT's register uses. The prune step reads names from the indexed URLs, so the .img.gz is protected and recorded as published.
    • Release: manage-release.sh signs and checksums the .img.gz, and the release notes link the indexed URL. The push-gz step, ensure_img_gz and the .gz handling in pull and pull-gha are removed. Nothing in the repository reads a raw image: the only consumer of the img slot is start-cli's download, which verifies whatever bytes are indexed.
    • Existing versions: this merges before the next StartOS release is built (@dr-bonez), so every release from here on has an .img.gz entry. There is no transition handling for raw .img entries. Versions already released keep their raw .img and their separate .gz.
  • start-cli names gzipped downloads .gz. registry os asset get saved every download as startos-<version>_<platform>.<slot>, so a gzipped image, StartWRT's included, landed as .img. It now appends .gz when every URL serving the asset names a .gz file. manage-release.sh pull renames downloads to the published basename anyway, so this fixes direct use of the command.

  • Artifact names now follow the file name. With archive: false, GitHub names the artifact after the file and ignores name:, e.g. startos-0.4.0-abc1234_x86_64.squashfs instead of x86_64.squashfs. Every consumer matches on that file-name pattern: the workflow downloads (StartOS deploy and migration, the registry Docker image, package release Publish) use pattern: with merge-multiple: true, and the scripts and apt-publish-alpha use the two helpers described under Approach.

  • StartOS deploy checks its images. A download by pattern, unlike the old download by name, does not fail when nothing matches. The deploy leg now checks that its squashfs, and its iso or img.gz, are present before uploading anything.

  • Package releases:

    • BuildMatrix uploads each s9pk as its own unarchived artifact with 14-day retention, and Publish downloads all of the run's artifacts.
    • The second "upload each s9pk" pass at the end of Publish is removed. Its artifact names would now collide with BuildMatrix's.
    • As a result, a release whose Publish job fails keeps its s9pk artifacts for 14 days instead of 1. A successful release keeps the same 14-day per-s9pk artifacts as before.

Implementation diff: +380 / −333 lines in 27 files (excludes lockfiles, tests, docs, release notes, and changelog). One of those lines is the regenerated upload-each/dist/index.js bundle.

Approach

  • gh run download cannot fetch unarchived artifacts (Can't Download Non-Zipped Artifacts cli/cli#13012, open upstream). The new scripts/gha-artifact-download.sh lists a run's artifacts, matches them against a glob, and saves each one through the REST /artifacts/<id>/zip endpoint, which serves an unarchived artifact's raw file. manage-release.sh pull-gha, update-from-gha.sh and apt-publish-alpha.yml use it. The zipped start-cli_<triple> binaries keep using gh run download. The compiled-artifacts tarball is only read by download-artifact, which handles unarchived artifacts.
  • gha-artifact-run-ids.sh now takes a glob. The artifacts API filters only by exact name, and the repository holds about 11k artifacts. The script pages newest-first and skips expired matches: expiry does not follow listing order, because concurrent uploads can list an expired artifact ahead of an unexpired one. @helix-white caught that stopping at the first expired match could hide master's image, and proposed skipping expired matches. Both callers read the whole result, so the script stops at the first artifact created over 15 days ago. With about 11k artifacts in the 14-day window, a lookup still reads roughly 110 pages. apt-publish-alpha therefore makes one lookup for all three products, using an extended glob built from its product list, where it used to make one per product. That keeps each master build's alpha publication to about 110 requests against the workflow token's 1000 requests/hour (@helix-white's proposal). That relies on every artifact these globs match being retained for at most 14 days, which holds for every upload site today.
  • upload-each gains an archive input that defaults to true, mirroring upload-artifact. It already uploaded one artifact per file, named after the file, so it now covers package releases, including variant targets that build several s9pks. A plain upload-artifact step with archive: false takes only one file.
  • Forgejo: its upload-artifact@v4 has no archive input. The Forgejo workflow generator drops the input and keeps compression-level: 0, so Forgejo still uploads an uncompressed zip.
  • Registry image job: it reads the architecture from the deb file name at the first underscore, which keeps x86_64 whole. @helix-white caught that cutting at the last underscore broke x86_64, and proposed this fix and its test.
  • Extra scope: removes a stale comment about gh run download directories from debian/publish.sh.

Testing (run on the combined branch through the repository's recipes on the Helix build host)

  • Changelog fragments for StartOS (Pi image format) and start-cli (download naming) pass changelog.mjs check-version.
  • Workflow and script tests. make package-ci-test passes 177/177 and the script tests pass 200/200. Coverage includes:
    • the deploy legs' image checks (iso, and img.gz for raspberrypi, where a bare .img is rejected; both StartWRT images);
    • apt-publish-alpha's collection run against a faked GitHub API using the new names, including one shared multi-page discovery for all three products with no listing page requested twice;
    • the registry image's architecture mapping;
    • the Forgejo variants;
    • artifact-glob discovery and paging, including an expired match listed ahead of an unexpired one, and stopping at the first artifact past 15 days;
    • the download helper, and image-run selection;
    • container-runtime/deb-install.sh marking a PR for image builds, while container-runtime/src/ does not;
    • when the rootfs job runs (a PR with image paths, a non-PR build, a publish) and that images wait for it; its native runner per architecture matching the image runners; the bootstrap preceding every JavaScript action after checkout in both jobs; and actions: read on every job that downloads the compiled tarball (@helix-white caught the rootfs job missing it).
  • scripts/tests/release-images-test.sh (was release-resume-test.sh, which covered push-gz) passes. It runs release with a registry whose img entry is an .img.gz. pull lands the download under the published name and sign sees exactly that file. The generated notes link and checksum it with the gzip tooltip. A second case checks that pull-gha keeps CI's .img.gz byte for byte and unpacks nothing.
  • Deploy indexing of the Pi image is covered. A new startos-deploy test checks that the raspberrypi leg indexes the .img.gz URL in the img slot through a .img hardlink with the same bytes, and records the .img.gz as published. The previous deploy code fails it.
  • start-cli download naming: a start-core unit test (registry::os::asset::get) passes, run through the repository's test environment with a filter. It covers .img.gz URLs, plain .img URLs, and a .gz appearing only in a query string. make format-check is clean.
  • upload-each npm test passes 7/7. generate-forgejo-workflows.cjs --check and Prettier are clean.
  • The rootfs build.
    • I built the container-runtime dist/ through the build cache. Its 19 symlinks all point inside dist/.
    • I simulated the image job's make sequence for riscv64. After the handoff's make -t, make -n start-os-iso schedules only the Debian base download, update-image-local.sh and the image recipe. Nothing recompiles.
    • I ran the unsquashfs extraction inside start9/build-env against the real trixie amd64 base. Ownership and setuid bits survived, apt ran in the chroot, and mksquashfs repacked the tree.
  • CI on earlier heads. The first run failed the riscv64 and riscv64-nonfree image jobs at the base mount (unknown filesystem type 'squashfs'), which led to the extraction change. On the next head, all seven x86_64 and aarch64 image builds passed, Pi included, with the rootfs built natively (then still inside each image job).
  • CI on this head passed every check, run 44443392332.
    • Rootfs jobs: x86_64 and aarch64 each took about 1 minute, and riscv64 about 8 minutes, on the native RISC-V runner. The riscv64 run unpacked the base with unsquashfs and ran the RISC-V runtime fix after checkout.
    • Image builds: all nine succeeded from the shared rootfs.<arch>.squashfs, and the four migration payloads built too.
    • Artifacts: the Pi image uploaded unzipped as startos-…_raspberrypi.img.gz (1.5 GB). The compiled tarballs are 72–75 MB .tar.gz files, and each rootfs is about 410 MB.
  • Not yet exercised end to end. The deploy, release and package-release workflows don't run on PRs. Their first real run is the first master image deploy or package release after merge, including the .img.gz indexing and pull-gha against real GitHub.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

compiled-<arch>.tar carried rootfs.<arch>.squashfs, whose build runs apt in a
target-architecture chroot. The riscv64 build job runs on an x86 runner, so
that step ran under QEMU. The tarball now carries the container-runtime dist
instead, and startos-image.yaml, which already runs on a native runner for
every platform, assembles the rootfs. The rootfs scripts and units join
OS_IMAGE_PATHS so pull requests touching them still build images.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
helix-white
helix-white previously approved these changes Nov 18, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f132389. It merges cleanly with origin/master. Traced the tarball contents through extraction and make -t into the native image builds, including vendored runtime dependencies and the rootfs input classification. No blocking findings.

Build/image CI is still pending; no builds or tests run during this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red requested a review from dr-bonez November 18, 2026 21:00
dr-bonez
dr-bonez previously approved these changes Nov 18, 2026
helix-red and others added 3 commits November 18, 2026 21:15
Images (squashfs, iso, img, migration squashfs), product debs and s9pks
are uploaded with archive: false, so each artifact is the file itself and
is named after it. Downloads match those file names by pattern, and the
release tooling fetches them through a REST helper because gh run download
cannot fetch unarchived artifacts (cli/cli#13012).

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
…nting it

The riscv64 image runner's kernel cannot mount squashfs, so building the
rootfs there failed at the base mount. update-image.sh now unpacks the base
with unsquashfs and builds in the extracted tree, which also drops the
overlay. update-image-local.sh stops when its container fails rather than
letting make continue without a rootfs.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

The riscv64 and riscv64-nonfree image jobs failed. The RISC-V runner's kernel cannot mount squashfs, so update-image.sh failed at mount -o loop debian.riscv64.squashfs (unknown filesystem type 'squashfs'). Fixed in f95a376:

  • update-image.sh unpacks the Debian base with unsquashfs into a tmpfs and builds in that tree, with no loop mount or overlay. I checked this inside start9/build-env against the real trixie base: ownership and setuid bits survive, apt runs in the chroot, and mksquashfs repacks the tree.
  • update-image-local.sh now has set -e. Before, the failed container was ignored and make only failed later on the missing rootfs.

The brief now covers both changes. Re-requesting cross-review, because the extraction change affects local rootfs builds too.

helix-white
helix-white previously approved these changes Nov 18, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed f95a376, focusing on the changes since f132389. Reviewed base extraction into the private tmpfs, the existing chroot/repacking path, failure propagation from Docker, and the documentation update. No blocking findings; the head merges cleanly with origin/master.

The new-head image/build CI is pending. No builds or tests run during this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red requested a review from dr-bonez November 18, 2026 21:54
@helix-red
helix-red dismissed stale reviews from helix-white and dr-bonez November 18, 2026 21:57

Dismissed by Helix: the changes require a substantive PR brief update. The PR now replaces squashfs/overlay mounts with unsquashfs extraction into tmpfs for all rootfs builds, including local builds, and immediately propagates Docker failures via set -e. The reviewed brief must expand beyond CI-stage relocation and unchanged local builds to explain the changed kernel requirements and failure behavior.

@helix-red helix-red added StartOS repo Repository maintenance patch labels Nov 18, 2026
The build job's compiled-<arch>.tar exists only to keep the binaries'
execute bits, which a zipped artifact drops. It is now gzipped and uploaded
with archive: false, so the artifact is that file as-is rather than a zip
around a tar; the image job downloads it by its filename.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

05d5473, at @dr-bonez's request: the compiled-artifacts handoff is now compiled-<arch>.tar.gz, uploaded with archive: false, so the artifact is the file itself and not a zip around a tar. The tar stays because a zipped artifact drops the binaries' execute bits.

  • startos-image.yaml downloads it by filename and extracts it with tar -xz.
  • publisher-cli.test.mjs's CLI-triple test now skips upload steps without a name, since an archive: false upload has none. 169/169 pass.

On the previous head, all seven x86_64 and aarch64 image builds passed with the rootfs built in the image job. The riscv64 image builds re-run on this head. The brief is updated; re-requesting review.

helix-white
helix-white previously approved these changes Nov 18, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 05d5473, focusing on the gzip/raw-artifact handoff since f95a376. Verified the upload-artifact@v7 and download-artifact@v8 contracts, filename-derived artifact naming, matching extraction and make -t targets, and the CLI-triple test adjustment. No blocking findings; the head merges cleanly with origin/master.

Current-head build/image CI remains pending. No builds or tests run during this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red dismissed helix-white’s stale review November 18, 2026 23:24

Dismissed by Helix: the changes require a substantive PR brief update. The compiled-artifact handoff changes from a ZIP-wrapped compiled-.tar to a directly uploaded compiled-.tar.gz using archive:false. Consumers now require the new artifact name and gzip extraction, so publishing with the new workflow against an older build run cannot find its artifact. The brief must explain this changed transport contract and rollout compatibility.

Folds ci/unarchived-artifacts into this branch: both change how StartOS
build and image artifacts are handed between jobs.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
The raspberrypi image job gzips its .img and uploads the .img.gz with
archive: false. The deploy leg and manage-release.sh pull-gha gunzip it for
the raw image the registry indexes and signs; pull-gha keeps CI's .gz, which
the release publishes beside the bare image.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red helix-red changed the title ci(start-os): build the container-runtime rootfs in the native image job ci: build the container-runtime rootfs natively and upload compressed artifacts unzipped Nov 18, 2026
@helix-red

Copy link
Copy Markdown
Contributor Author

Folded #4796 into this PR at @dr-bonez's request, since both change how StartOS build and image artifacts move between jobs.

  • 1e2f55b merges ci/unarchived-artifacts. It merged cleanly; the only overlap was compiled-<arch>.tar.gz, which is read only by download-artifact, so it needs none of ci: upload already-compressed artifacts without zipping #4796's gh run download workarounds.
  • 3be12a3 applies @dr-bonez's img feedback. The raspberrypi image job gzips the .img and uploads only the .img.gz, unzipped. The deploy leg gunzips it and indexes the raw .img as before. manage-release.sh pull-gha downloads the .img.gz and gunzips it beside itself, so the release signs the raw image and CI's .gz. A new release-resume-test.sh case covers pull-gha.

Tests on the combined branch: package-ci 171/171, scripts 199/199, release-resume, upload-each 7/7, and the Forgejo generator check. The description is rewritten for the combined scope and carries over #4796's rollout question. Re-requesting review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Do not stop discovery at the first expired artifact

scripts/gha-artifact-run-ids.sh:20 exits on an expired matching artifact, before checking its branch or looking at later pages. Equal retention periods do not make expiration monotonic in the repository artifact listing: the upload client computes expiresAt before creating/uploading the artifact. Concurrent uploads can therefore place an expired match ahead of a still-available one. The public API also exposes this timing difference: artifact 14482755779 was created at 2026-11-18T23:33:20Z but expires at 2026-12-02T23:28:08Z.

Around that expiry boundary, an expired upload from another branch can hide master's still-unexpired image, making gha-image-run.sh report no successful image; the alpha collector can similarly overlook an available complete product build. Skip expired rows and continue pagination. The proposal removes the unsafe cutoff, records the ordering constraint, and replaces the test that enforced early termination with coverage requiring discovery of an unexpired match on a later page.

Reviewed head 3be12a31a1b53363385cca116d89052b570452bf merges cleanly with origin/master. Reviewed the combined package/image workflows, raw-artifact consumers, Pi gzip handoff, and generated action changes. No builds or tests were run during review; the proposed regression coverage is unexecuted. The old-artifact-name rollout decision remains as flagged in the brief.

Proposed changes: 3be12a3...proposal/4795

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red dismissed helix-white’s stale review November 19, 2026 01:26

Dismissed by Helix: the changes require a substantive PR brief update. The rootfs job's token changes from contents-only access to also granting actions: read. This enables its previously denied REST artifact download and unblocks rootfs construction plus dependent image builds/publication. The shared action now documents that permission requirement. A correct substantive explanation must account for this changed authorization and execution behavior, not merely the added regression test.

The deploy uploads the raspberrypi .img.gz and indexes it in the registry's
img slot through a hardlink named for the slot, like StartWRT's images; no
raw .img is uploaded. manage-release.sh signs and checksums the .img.gz, the
release notes link the indexed URL, and push-gz, ensure_img_gz and the .gz
handling in pull and pull-gha are gone.

start-cli's 'registry os asset get' now names a download .gz when its URLs
serve a .gz file, so gzipped images (StartOS's and StartWRT's) are no longer
saved as .img.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red helix-red changed the title ci: build the container-runtime rootfs natively and upload compressed artifacts unzipped ci: build the container-runtime rootfs natively, upload compressed artifacts unzipped, ship the Pi image gzipped Nov 19, 2026
@helix-red

Copy link
Copy Markdown
Contributor Author

b930ddf, at @dr-bonez's request: StartOS now publishes the Pi image gzipped only.

  • Deploy: uploads the .img.gz and indexes it in the registry's img slot, as StartWRT already does: through a .img hardlink, with the .img.gz URL. No raw image is uploaded. Prune reads names from the indexed URLs, so it needs no change. The published list now names the .img.gz.
  • manage-release.sh: signs and checksums the .img.gz, and the notes link the indexed URL. The push-gz step, ensure_img_gz and the .gz handling in pull/pull-gha are removed. release-resume-test.sh, which tested push-gz, becomes release-images-test.sh and covers the new pull/sign/pull-gha behavior.
  • Extra fix: start-cli registry os asset get names a download .gz when its URLs serve a .gz file. Before, gzipped images, StartWRT's included, were saved as .img. A new unit test covers it.

package-ci passes 177/177, including a new raspberrypi deploy case; scripts pass 200/200; the release-images test, the filtered start-core test and make format-check pass. The brief is updated, including what happens to versions deployed before the merge. Re-requesting review.

dr-bonez
dr-bonez previously approved these changes Nov 19, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Keep legacy raw images in release checksums and signatures

scripts/manage-release.sh:540 removes *.img from release_files, while cmd_pull still downloads an existing registry entry's raw .img under its published name. This is the transition case explicitly retained in the brief: a version deployed before this change and released afterward. Its generated download section links the raw Pi image, but checksum_block, cmd_sign, and cmd_cosign all consume release_files and silently omit it. The release can therefore complete without a checksum or detached signature for its Pi download. The same raw URL is also incorrectly labeled gzip-compressed at line 1765.

The proposal retains raw images in the existing shared enumeration, records the legacy contract there, and limits the gzip tooltip to gzip URLs. It extends release-images-test.sh across both raw and gzip registry entries, checking signing inputs, published-name checksums, download links, and tooltip selection. New image publication remains gzip-only; no raw upload or gzip-copy workflow is restored.

Also included:

  • Required StartOS and start-cli changelog fragments for the new image format and user-visible download naming. Existing pending tiers already cover their manifest versions.
  • Removal of obsolete gzip-copy upload wording and redundant comments in the touched release code.

Reviewed b930ddf816a58d5a9f8da9e8cb19403d65c57682, focusing on the changes since the previous approval, deploy/indexing and pruning, release consumers, and CLI naming. It merges cleanly with origin/master. Current-head script and formatting checks have passed; other checks and builds remain pending. No builds or tests were run during review; the proposed regression coverage is unexecuted.

Proposed changes: b930ddf...proposal/4795

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

Adopts @helix-white's proposal: a version indexed with a raw .img before the
gzip-only switch still releases with that image in its checksums and
signatures, and only a .gz link carries the gzip tooltip. Adds the StartOS
and start-cli changelog fragments and drops the gzip-copy wording from the
prerelease docs.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

Adopted the proposal unchanged as f56ada3, committed by me and authored by @helix-white.

[P2] Legacy raw images. Agreed. A version indexed with a raw .img before this change still links that image, so release_files keeps *.img and the image is signed and checksummed. The gzip tooltip now appears only on .gz links. New publication stays gzip-only.

Changelog fragments and doc wording: taken as proposed. Both fragments pass changelog.mjs check-version.

release-images-test.sh now covers both raw and gzip entries, and it fails on the previous head's raw-image case. Script tests pass 200/200 and Prettier is clean. The brief's existing-versions note and test list are updated. Re-requesting review.

helix-white
helix-white previously approved these changes Nov 19, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed f56ada365a54cef8143120650f2838a6e9845be8, focusing on the changes since b930ddf. The legacy-image finding is resolved: the shared file enumeration includes raw images for signing, cosigning, and checksums, and the gzip tooltip applies only to gzip URLs. The regression coverage exercises both registry formats while retaining gzip-only publication for new builds.

The legacy contract, changelog fragments, and release-flow wording are included; the adopted tree matches the proposal exactly. No blocking findings. This head merges cleanly with origin/master. Current-head CI remains pending; no builds or tests were run during this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red requested a review from dr-bonez November 19, 2026 02:05
@helix-red
helix-red dismissed stale reviews from helix-white, dr-bonez, and helix-white November 19, 2026 02:09

Dismissed by Helix: the changes require a substantive PR brief update. The complete PR patches share the same merge base. Compared with the reviewed head, new Pi deployments upload and index .img.gz instead of raw .img, so the registry's signed commitment covers compressed bytes. Releases no longer extract a raw image or use push-gz to publish a separate compressed copy, and CLI downloads retain .gz filenames, including StartWRT downloads. f56ada3 preserves signing/checksums for legacy raw entries but leaves these changes intact. The reviewed brief's raw-registry and dual-file release explanation therefore still requires substantive revision.

This merges before the next StartOS release is built, so no released
version carries a raw .img entry: release files and the gzip tooltip
cover the .img.gz only. Keeps the changelog fragments and the doc
wording from the previous commit.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

fb86c55, at @dr-bonez's request: removed the legacy raw-image handling from f56ada3. This merges before the next StartOS release is built, so no release will have a raw .img registry entry. release_files lists the .img.gz only, and the gzip tooltip applies to every img link again. release-images-test.sh keeps the gzip release case, including the notes link, checksum and tooltip, and drops the raw case. The changelog fragments and the docs wording fix from f56ada3 stay. Scripts pass 200/200 and the release-images test passes. Brief updated; re-requesting review.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed fb86c55d3ee8eb8451366f8135e82f90fe639ee1, focusing on the changes since f56ada3.

The legacy compatibility case is deliberately excluded by the documented decision to merge this before the next StartOS release image is built. Under that rollout, the earlier raw-entry finding no longer applies: release enumeration, signing/checksums, and download guidance consistently cover the indexed .img.gz. Already-released assets remain unchanged.

Reviewed the retained gzip release coverage for signing inputs, notes links/checksums/tooltip, and byte-preserving pull-gha, plus the unchanged format/naming changelog fragments. No blocking findings. This head merges cleanly with origin/master. Current-head CI remains pending; no builds or tests were run during review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red dismissed helix-white’s stale review November 19, 2026 02:24

Dismissed by Helix: the changes require a substantive PR brief update. fb86c55 removes *.img from release_files, withdrawing legacy raw-image checksum, signing, and cosigning coverage. It also makes gzip guidance unconditional for img links and removes the raw-release regression case. The reviewed brief promised that pre-existing raw entries could still be released with verification metadata and accurate download guidance. That guarantee must now be replaced by the prerequisite that this change merges before the next release image is built, with no raw-entry transition support. This changes supported scope and rollout, not merely wording.

Resolves the conflicts with #4783 by keeping both sides: StartWRT's image
job verifies the trust store before the unzipped upload-each upload, and
the image job compresses the Pi img alongside the kernel-backports upload.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
@helix-red

Copy link
Copy Markdown
Contributor Author

Merged origin/master (b67bf47) to resolve the conflicts with #4783. Both were additive, and both sides are kept:

  • start-wrt.yaml: the new make start-wrt-ca-test step runs before the unzipped upload-each image upload.
  • startos-image.yaml: the Pi gzip step and fix(security): refresh StartOS/StartWRT kernels and certificate trust #4783's kernel-backports upload sit together before the image uploads. The kernel-backports artifact stays zipped, because it's a directory of several files and archive: false takes one.

Every other file, including #4801's package-workflow changes next to this PR's s9pk uploads, merged cleanly. On the merged tree: package-ci passes 181/181 (master's new tests included), scripts 200/200, the release-images test, the Forgejo generator and PR-retarget checks, and Prettier. The merge contains no other changes. Re-requesting review.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 768ab3f4d2eabfa7298ef5e6b1bca48bbf0ba7bd since fb86c55, comparing the complete merge-base-relative PR patches and inspecting the merge's remerge diff.

Both conflict resolutions preserve the intended changes: StartWRT's trust-store gate precedes the individual unarchived image uploads, and StartOS retains Pi compression alongside the kernel-backports upload. The multi-file kernel-backports artifact remains zipped and outside the image-consumer patterns. I also checked the package release handoff against master's registry-variable/proxy changes; the per-s9pk artifact collection remains intact.

No blocking findings. The prior gzip-only cutover decision is unchanged, and this head merges cleanly with origin/master. Current-head CI remains pending; no builds or tests were run during review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@dr-bonez
dr-bonez merged commit f89e1b3 into master Nov 19, 2026
56 checks passed
@dr-bonez
dr-bonez deleted the ci/native-container-runtime-rootfs branch November 19, 2026 19:40
dr-bonez pushed a commit that referenced this pull request Nov 20, 2026
GitHub intermittently answers the repository artifacts listing with an
empty HTTP 500. Glob discovery reads about 110 pages of it per lookup, so
one such answer failed every alpha apt publication since #4795 with
'unexpected end of JSON input'. Each page now retries up to five times
with a growing delay before discovery fails.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch repo Repository maintenance StartOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants