Skip to content

ci: kernel releases for the edge, nightly and stable channels - #3064

Open
RyanTheTide wants to merge 9 commits into
mainfrom
feat/kernel-release
Open

RyanTheTide wants to merge 9 commits into
mainfrom
feat/kernel-release

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 24, 2026 •

Copy link
Copy Markdown

Problem

There are no kernel releases built from main. Fleet kernels are configured from a Fedora config kept outside the tree, so nobody can rebuild the fleet configuration from the repository alone.

Change

  • arch/arm64/configs/aurora_defconfig: savedefconfig output of the fleet configuration. make aurora_defconfig asahi.config gives the fleet .config.
  • .github/workflows/kernel-release.yml with .github/scripts/kernel-release-build.sh: builds that configuration on ubuntu-24.04-arm with the fleet toolchain versions pinned (LLVM 22.1.6, Rust 1.97.1, bindgen 0.73.2, pahole 1.31), then publishes:
    • aurora-edge prerelease on every push to main;
    • aurora-nightly prerelease daily, only when main moved since the commit the tag points at;
    • a stable release for each v* tag on main (or on a hotfix/ branch), with generated notes. An existing stable release is never rebuilt.
  • .github/scripts/kernel-smoke-qemu.sh: before anything is published, the built kernel boots under QEMU and loads every module it ships, which also runs every KUnit suite built as a module. Known exceptions with reasons are in .github/scripts/kernel-smoke-expected.txt.
  • The aurora-* channel tags are moved with the release deploy key, only forward and with a lease; GITHUB_TOKEN cannot bypass the tag ruleset. Every published asset gets a build provenance attestation.
  • Builds and publishing are serialised per channel rather than cancelled: a running edge build always publishes and only the newest waiting build is kept, so edge cannot starve under steady pushes. Stable releases are built as drafts and published once complete.
  • workflow_dispatch builds without publishing by default, or publishes edge or nightly by hand from main. Pull requests that change these files get a build-only run.

Each run signs modules with a key generated for that run. The private key is deleted afterwards and the build fails if a tarball contains it. The lab fleet kits stay signed separately.

Testing

Local proof on the buildbox before this push (evidence: traces/ci/20261124-kernel-release-local on the lab store):

  • make aurora_defconfig asahi.config at the 7.3.0-aurora-fleet87 source commit gives a .config byte-identical to that kit's config, and at main a3d477d it equals the fleet recipe (Fedora base + asahi.config + olddefconfig) byte for byte.
  • kernel-release-build.sh with the pinned toolchain: config identical to aurora_defconfig, 186/186 asahi.config requests kept, 5915 modules, 1636 DTBs, all assets plus linux-aurora-ci-bin and -headers from make pacman-pkg. The built config diffs clean against the fleet87 kit config. No tarball or package contains signing_key.pem.
  • kernel-smoke-qemu.sh against the fleet87 kit (QEMU virt, TCG, about 25 minutes): 5824 modules load, 65 return -ENODEV for absent hardware, 14 skipped, 12 listed failures; 260 KUnit modules ran 451 suites (441 pass, 4 skip, 6 listed failures). No unlisted warning, oops or hang.
  • actionlint is clean.

This pull request changes the workflow, so it gets a build-only run of the whole pipeline on ubuntu-24.04-arm (plan, build, smoke; nothing is published).

Known smoke exceptions (kernel-smoke-expected.txt)
  • Skipped: the torture and benchmark modules, test_lockup, test_vmalloc (minutes under emulation), the speakup_* synthesizers (serial ones wait for hardware).
  • Load failures: tcrypt (-EAGAIN by design), xusbatm (needs parameters), ptp_kvm, alim7101_wdt, dtpm (hardware or hypervisor absent), snd-soc-uda1342 (I2C driver name already taken by the media uda1342 driver), nhc_ghc_* (claim the NHC IDs of the plain nhc_* modules), ubifs (cannot get the zstd compressor at init; not yet triaged).
  • Warnings: serial_ir, snd-mtpav request fixed legacy PC IRQs the virt machine does not have.
  • KUnit suites failing on this tree, not yet triaged: arm-smmu-v3-kunit-test (UBSAN array-index-out-of-bounds in arm_smmu_v3_invs_test), amdv1_iommu_test, amdgpu_dm_hdcp, amdgpu_dm_irq, amdgpu_dm_crtc, binder_alloc. They need their own fixes; the list keeps them visible without blocking releases.

Still to run

  • After merge: the first aurora-edge publish from the merge push, a nightly via dispatch, then the v0.1.0 tag.
  • Enable immutable releases in the repository settings so v* assets cannot be replaced.
  • Add the release deploy key: its public half as a write deploy key on this repository (the aurora-* tag ruleset already lets deploy keys bypass) and its private half as the RELEASE_DEPLOY_KEY secret of the release environment (deploys only from main and v* tags). Until then edge and nightly builds run and stop at the tag step with that instruction; stable releases do not need it.

Fleet kernels have been configured from a Fedora asahi base config kept
outside the tree, with asahi.config and one lab line merged on top. That
cannot be reproduced from the tree alone.

aurora_defconfig is the savedefconfig output of that configuration at
this commit. `make aurora_defconfig asahi.config` produces a .config
identical to the fleet recipe here and to the 7.3.0-aurora-fleet87 kit
config (same toolchain: clang 22.1.6, rustc 1.97.1, pahole 1.31).

Regenerate it with savedefconfig when the fleet configuration changes;
the release workflow warns when asahi.config has moved past it.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
kernel-release.yml builds the fleet configuration on ubuntu-24.04-arm
with the fleet toolchain versions pinned (LLVM 22.1.6, Rust 1.97.1,
bindgen 0.73.2, pahole 1.31) and publishes:

- aurora-edge: prerelease, moved to every push to main; a newer push
  cancels a running edge build.
- aurora-nightly: prerelease, daily, only when main moved since the
  commit the aurora-nightly tag points at.
- v*: a stable release per tag on a main commit, with generated notes.
  An existing stable release is never rebuilt or overwritten.

Assets: Image.gz, the modules tree, DTBs, config, System.map, the
module signing certificate, Arch packages from make pacman-pkg and
SHA256SUMS. Modules are signed with a key generated for the run and
deleted afterwards; the build fails if a tarball carries it.

workflow_dispatch builds without publishing by default; pull requests
that change the release machinery get the same build-only run.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Before a release is published, boot the built kernel on the QEMU virt
machine and modprobe every module in modules.order, with a watchdog per
module. Loading the KUnit modules runs their suites (kunit.enable=1 on
the smoke command line only).

A module whose init returns -ENODEV/-ENXIO found no hardware and counts
as loaded. Any other load failure, hang, kernel warning, oops or panic,
and any failing KUnit suite, fails the run unless
kernel-smoke-expected.txt lists it with a reason. Warnings are pinned to
the module being loaded through a marker written to /dev/kmsg.

The Apple drivers find no hardware under QEMU; they are covered by the
lab regression gate on real Macs.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Verdict at 90292a2e51c29097af5dd2320b0d0c76d36bca6e: Fix before merge.

Blockers:

  1. The kernel release has no provenance attestation. The Fedora and ALARM Edge publishers verify the exact source.commit against this workflow, refs/heads/main and the source digest. publish currently grants only contents: write and no job creates the required attestation. Attest the downloaded dist/source.commit after the build and smoke gates, before moving or creating the release. Please cover dist/SHA256SUMS as well.
  2. The active Linux channel-tag ruleset allows only org admins and the release deploy key to bypass create/update. The workflow uses github.token for both paths, with neither a release environment nor another authorized tag writer. A successful PR build cannot exercise that path. Coordinate the live rule/credential with the owner before relying on automatic publication, then verify a first publish against the effective rule.
  3. The private-key archive guard runs tar -tf | grep -q under pipefail. An early match can close the pipe while tar is listing and cause the guard to miss it. Read the entire archive listing before matching and fail on listing errors. Please keep both ordinary and debug package forms covered by the guard.

Checked: I reviewed the five changed files against the two distro consumer contracts, the effective channel ruleset, and the local fleet-equivalent config and package proof. QEMU smoke result and PR build are still tracked separately.

Evidence

Please include kernel-smoke-qemu.sh and kernel-smoke-expected.txt in the pull-request path filter so future changes to the release smoke gate run this check.

@github-actions github-actions Bot added area:release Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at ca5a552b: not ready yet

Check Detail
CI at head running running: smoke
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head no no line with the head SHA ca5a552b, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:release

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at 90292a2e51c2

Blockers:

  1. .github/workflows/kernel-release.yml:252-258: no provenance attestation. The Edge consumers (fedora-aurora#508, alarm-aurora#442) run gh attestation verify linux-source.commit --signer-workflow …/kernel-release.yml, so the first publish could never be consumed. Fix: give publish id-token: write + attestations: write and add actions/attest-build-provenance on dist/source.commit and dist/SHA256SUMS after the download and before line 288.
  2. .github/workflows/kernel-release.yml:297 and :305: ruleset 27978656 (refs/tags/aurora-*: creation, update, deletion, non_fast_forward; active) lets only OrganizationAdmin and DeployKey bypass. github.token is neither, so the tag create/PATCH, and with it every edge and nightly publish, will be rejected. A PR build never reaches this path. Fix: move the tag with the release deploy key (an environment-scoped secret on a release environment limited to main), or add a narrowly scoped bypass actor with the owner, then prove one dispatch publish against the live rule.
  3. .github/scripts/kernel-release-build.sh:116: tar -tf "$f" | grep -q under set -o pipefail misses the key. When grep -q exits on a match, tar takes SIGPIPE (141), the pipeline is false, and the guard passes. I reproduced it: a 30k-entry tar containing certs/signing_key.pem gives MISSED. Fix: list=$(tar -tf "$f") || { echo "::error::cannot list $f"; exit 1; } then grep -q 'signing_key\.pem$' <<<"$list".
  4. .github/workflows/kernel-release.yml:28-31: the pull_request path filter leaves out .github/scripts/kernel-smoke-qemu.sh and .github/scripts/kernel-smoke-expected.txt. A change to the release gate or its exception list would merge without a run, although the PR body says PRs changing these files get a build-only run. Fix: add both paths.
  5. PR body, last line: Assisted-by: LLM (…). Current org policy is no AI attribution in commits, PR bodies or comments. Fix: delete the line. The commits themselves are clean.

Checked:

  • All four CI/script files at head were read in full, plus aurora_defconfig presence. Permissions default to contents: read with contents: write only on publish. Every ${{ }} reaches run: through env: (no injection). pull_request rather than _target, and checkouts use persist-credentials: false. The stable path is guarded: a tag must be an ancestor of main or a hotfix/ branch, --verify-tag is used, and an existing release is never rebuilt. YAML parses.
  • 3 commits, all authored and committed by Ryan Murray, each with a human Signed-off-by and no AI trailers.
  • CI at 90292a2e: host-tests, plan and readiness are green; build is still running and smoke has not started.
Evidence

Ruleset (live): 27978656 channel tags: aurora-* (owners + release deploy key), target tag, include refs/tags/aurora-*, rules creation/update/deletion/non_fast_forward, bypass OrganizationAdmin, DeployKey. 27978627 release tags: v* (owners only): the stable path only creates a release on an existing tag (--verify-tag), so it is not affected.

Guard repro: bash -c 'set -euo pipefail; if tar -tf a.tar | grep -q "signing_key\.pem$"; then echo DETECTED; else echo MISSED; fi' on a tar containing certs/signing_key.pem followed by 30000 files gives MISSED.

Non-blocking notes:

  • kernel-release.yml:54 + :297-303: cancel-in-progress covers the whole run, so a push to main that lands while an older run is in publish can cancel it after the tag moved but before the assets are replaced. source.commit then disagrees with the tag. The consumers fail closed, but edge stays broken until the next full build. Upload assets first and move the tag last, or give publish its own non-cancelling concurrency group.
  • Under steady pushes (more than one per build of about 4 h), edge may never publish. Nightly covers that, but it is worth stating.
  • kernel-release.yml:3, :107: RELEASES.md is referenced but is not in the tree at this head.
  • kernel-release.yml:276: the notes say "built from … on main", which is wrong for a hotfix/ stable tag.
  • kernel-release.yml:181-192: the LLVM tarball and the rustup installer are fetched without a pinned checksum. For release artifacts, pin a sha256 for the LLVM tarball.
  • Stable: if gh release create fails partway through the upload, the release exists with partial assets and a rerun refuses at :314. That is acceptable once immutable releases are on, but needs a documented manual recovery.
  • Actions are pinned to major tags (@v4), consistent with host-tests.yml and dt-checks.yml.
  • No CODEOWNERS file in the repo.
  • The smoke script's ENODEV/ENXIO handling, per-module watchdog, panic detection through the missing SMOKE-END, and glob matching against the expected list all look correct. stale_expected_failures is reported but not enforced, which is fine.

The aurora-* tags are protected by a ruleset whose only non-admin bypass
is the release deploy key, and GITHUB_TOKEN cannot be given a bypass on
a repository ruleset. Move aurora-edge and aurora-nightly over SSH with
that key (secret RELEASE_DEPLOY_KEY): only forward (the new commit must
contain the tagged one) and with a lease on the old value. Without the
secret the job stops with a one-line message saying what to add.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) labels Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at dcaea2516345

Blockers:

  1. Still open: no provenance attestation (.github/workflows/kernel-release.yml:260-261). publish has only contents: write. It has no id-token: write or attestations: write and no actions/attest-build-provenance step for dist/source.commit / dist/SHA256SUMS. The Edge consumers (fedora-aurora#508, alarm-aurora#442) run gh attestation verify … --signer-workflow …/kernel-release.yml, so they would reject the first publish.
  2. Still open: the private-key check misses the key under pipefail (.github/scripts/kernel-release-build.sh:116, set -euo pipefail at :17). The code is unchanged: tar -tf "$f" | grep -q 'signing_key\.pem$'. When grep -q finds a match it exits early, tar gets SIGPIPE (141), the pipeline counts as false, and a tarball that contains the key passes. Fix: list=$(tar -tf "$f") || exit 1; grep -q 'signing_key\.pem$' <<<"$list".
  3. Still open: the PR path filter is incomplete (kernel-release.yml:31-34). .github/scripts/kernel-smoke-qemu.sh and .github/scripts/kernel-smoke-expected.txt are still missing, so a change to the release gate or its exception list merges without a run. The PR body says it gets one.
  4. New with this head: aurora-edge would be both a tag and a branch. The new "Move the channel tag" step pushes refs/tags/aurora-edge. refs/heads/aurora-edge (a8ae48f86da3) is still live, and fedora-aurora/alarm-aurora publish-edge.yml compare against …aurora-edge, with edgelib.py recording 'branch': 'aurora-edge'. After the first edge publish the short name is ambiguous, and git picks the tag, so the distro Edge gate would quietly change what it compares against. This is the same issue as #3054 review 6039402259. It needs a decision in #3064 or before it merges: archive or rename the branch (also aurora-rc/aurora-stable if they get channel tags later), or move the distro workflows to the fully qualified refs/heads//refs/tags/ form first.

Checked:

  • What changed since 90292a2e51c2: one commit, dcaea2516345, touching only kernel-release.yml (+42/-4).
  • Prior blocker 2 (ruleset) is resolved in code. The tags now move over SSH with RELEASE_DEPLOY_KEY. Ruleset 27978656 (refs/tags/aurora-*: creation/update/deletion/non_fast_forward, active) lets DeployKey bypass. The move is forward-only (compare ahead|identical) and uses --force-with-lease=refs/tags/$tag:$old. An empty $old means "must not exist", which is correct for the first create. gh release create now uses --verify-tag. Without the secret the step stops with a clear message. The repo has no deploy keys yet (GET /keys is empty), so edge and nightly cannot publish until the owner adds one. The PR body says so.
  • Prior blocker 5 (attribution) is resolved. The PR body no longer has the Assisted-by: line, and the title is clean. All 4 commits are authored and committed by Ryan Murray, each has a human Signed-off-by:, and none has an AI trailer.
  • CI at dcaea2516345: plan ✅, pr-text ✅, readiness ✅ (earlier duplicate runs were cancelled). host-tests and build were still in progress when I posted, and smoke had not started.
Evidence
  • gh api repos/aurora-silicon/linux/compare/90292a2e…dcaea251: only .github/workflows/kernel-release.yml changed. It adds the header comment, the "Move the channel tag" step, removes the gh api -X PATCH …/git/refs/tags/$tag call, and changes --target "$SHA" to --verify-tag.
  • git/matching-refs/heads/aurora-edge → refs/heads/aurora-edge a8ae48f86da3f0cd31a456fd9ea254b12e8d90a1. git/matching-refs/tags/aurora- → none yet.
  • Ruleset 27978656 bypass: OrganizationAdmin (always), DeployKey (always).
  • The guard repro from my last review still applies, because kernel-release-build.sh did not change.

Non-blocking notes on the new step:

  • ssh-keyscan -t ed25519 github.com trusts whatever key it is served. Pinning GitHub's published ed25519 host key in known_hosts is cheap.
  • rm -f ~/.ssh/release_key only runs on success. That is fine on an ephemeral hosted runner, but a trap is cleaner.
  • secrets.RELEASE_DEPLOY_KEY is a repo-level secret. Scoping it to a release environment limited to main would keep it out of any future job that does not need it.
  • The tag now moves before the assets are replaced. The cancel-in-progress note from my last review still applies: a newer push can cancel publish between the tag move and the upload, leaving source.commit out of step with the tag until the next full build. Moving the tag last, or giving publish its own concurrency group with no cancel, avoids this.
  • Earlier non-blocking notes still open: RELEASES.md is referenced but not in the tree, the release notes say "on main" for hotfix tags, and the LLVM tarball and rustup installer are fetched without a pinned checksum.

- Attest build provenance for every published asset; the distribution
  Edge publishers verify source.commit against kernel-release.yml.
- Fix the private-key guard: grep -q at the end of a pipeline exits on
  the first match, tar takes SIGPIPE and, under pipefail, the match read
  as a pass. List the tarball first, then search the list.
- Run the PR check when the smoke script or its exception list changes.
- Serialise builds and publishing per channel instead of cancelling a
  running build: a running edge build always publishes, only the newest
  waiting one is kept, and a build older than the tagged commit does not
  publish. Publishing is never cancelled halfway.
- Refuse to create a channel tag while a branch of the same name exists.
- Build a stable release as a draft and publish it once every asset is
  uploaded, so a failed upload leaves a draft the next attempt replaces.
- Pin the LLVM tarball checksum and GitHub's SSH host key; remove the
  deploy key on every exit; name the tag in stable release notes.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Fixed in 5b5b71ed:

  1. Provenance: publish has id-token: write + attestations: write and runs actions/attest-build-provenance@v2 on dist/* (covers source.commit and SHA256SUMS) right after the download.
  2. Key guard: reproduced your case (certs/signing_key.pem + 30000 files): the old check printed MISSED, the new one (list=$(tar -tf "$f") || exit, then grep -q ... <<<"$list") prints DETECTED.
  3. Path filter: now includes kernel-smoke-qemu.sh and kernel-smoke-expected.txt.
  4. aurora-edge branch vs tag: the tag step now refuses to create aurora-edge/aurora-nightly while a branch of that name exists, and says to rename it to archive/<name>. fedora-aurora#508 and alarm-aurora#442 move the Edge publishers to the release tag, after which refs/heads/aurora-edge (a8ae48f, diverged, 2 ahead / 1118 behind main) has no consumer. Proposal: once those two merge, rename it to archive/aurora-edge at the same SHA (create, verify, delete; no commits lost). It is your branch, so please confirm or say if it should stay.

Also from the notes:

  • Running builds are no longer cancelled. Builds and publishing are serialised per channel: a running edge build always publishes, only the newest waiting build is kept, an older build never moves the tag back (it skips publishing), and publish itself is never cancelled. This answers both the half-published window and edge starvation under steady pushes.
  • Stable is created as a draft and published after every asset is uploaded; a leftover draft from a failed attempt is replaced, a published release is never touched.
  • LLVM tarball sha256 pinned; GitHub's ed25519 host key pinned; the deploy key is removed by a trap; stable notes name the tag instead of saying "on main".
  • RELEASES.md lands with docs: describe the main branch and the three release channels #3054.

@RyanTheTide

Copy link
Copy Markdown
Author

Verdict at 5b5b71edbb0eaf32152df61f08fc8e7c7c77be75: Source progress verified. Hold the rolling publication gate.

Blockers:

  1. Blocking publication while the aurora-edge branch exists creates a cutover dependency. The proposed archive step follows Fedora drm/asahi: kill G17 contexts left with only executed render work #508 and ALARM drm/asahi: g16: accept the 8-core J713 loaded 25G83 image #442, but both publisher drafts wait for the first attested release produced here. Agree on the order with Dj and FLEET-EDGE. One practical route is to use explicit refs/tags/aurora-edge throughout publication and consumption while the branch remains available.
  2. The deploy-key step still runs in a job with no environment set. Put the rolling tag writer in a protected release job so the environment secret stays scoped and the independent stable-tag path can run on its permitted tags. The key registration still needs owner approval.

Checked: The new head adds the expected provenance subjects and job grants, correctly reads the full tar listing before matching, and includes both smoke inputs as PR triggers. All shell scripts and embedded shell steps parse. The pinned SSH host key matches GitHub's published metadata.

Evidence

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at 5b5b71ed

Blockers:

  • .github/workflows/kernel-release.yml:263-313: RELEASE_DEPLOY_KEY is read in a job that has no environment:. As a repository secret it is available to any workflow run that a writer pushes on any branch, and that key is the only non-admin bypass of the aurora-* tag ruleset. Fix: add environment: release to publish, or move the tag step into its own job with that environment. Limit the environment's deployment refs to main plus v* tags so the stable path keeps working, and register the key as an environment secret, not a repository secret.

Checked: All 4 earlier blockers are addressed in the code. The provenance step attests dist/*, which includes source.commit and SHA256SUMS, before any tag or release changes. The key guard now reads the full listing first. Both smoke files are in the PR path filter. The branch/tag guard is in place. Commits and PR text carry human identity only. CI on 5b5b71ed is still queued (host-tests, plan, pr-text, readiness).

Evidence
  • Prior blocker 1, provenance: publish now has id-token: write and attestations: write (l.270-273). actions/attest-build-provenance@v2 runs on dist/* (l.287-290). That matches what fedora-aurora#508 and alarm-aurora#442 check: --signer-workflow .../kernel-release.yml --source-ref refs/heads/main --source-digest <commit>.
  • Prior blocker 2, key guard: kernel-release-build.sh:115-123 reads list=$(tar -tf "$f") || exit, then runs grep -q ... <<<"$list". The "$D"/*.tar.* glob covers the modules/dtbs tarballs and every *.pkg.tar.zst.
  • Prior blocker 3, path filter: l.37-42 now list kernel-smoke-qemu.sh and kernel-smoke-expected.txt.
  • Prior blocker 4, ref collision: the guard at l.331-334 is correct and needed. refs/heads/aurora-edge still exists (a8ae48f8). Today's fedora-aurora/.github/workflows/publish-edge.yml:97 on main compares against the bare name aurora-edge, and a new tag of that name would take precedence over the branch without any error. #508 and #442 already use refs%2Ftags%2Faurora-edge explicitly.
  • Cutover order (not a blocker for this PR, but it needs agreement because the first edge publish cannot happen until it is settled). One order that avoids a deadlock: merge this PR (edge runs stop at the tag step, which is the same state as a missing key). Then, with the branch owner's agreement, archive the branch at the same SHA and repoint the current publishers at the archive name. Next, add the environment secret and dispatch publish: edge for the first attested release. Finally, merge #508 and #442. The branch archive itself is still waiting on the owner's go-ahead.
  • Also verified: the pinned ed25519 host key matches api.github.com/meta. bash -n passes on both scripts. A rolling tag that would move backwards is skipped, and an unrelated history fails. The draft-then-publish stable flow never touches a published release.
  • Non-blocking: rolling publish moves the tag (l.352) before it replaces assets (l.362). For a short window, consumers can see the new tag with the old source.commit. They fail closed on that comparison, so this is acceptable.

Run the publish job in the release environment, which deploys only
from main and v* tags, and keep RELEASE_DEPLOY_KEY there as an
environment secret. A workflow run on any other branch cannot read the
key that bypasses the aurora-* tag ruleset.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Fixed in 1f3b8a34: publish runs in the release environment. The environment exists now with deployment refs limited to main (branch) and v* (tag), so edge, nightly and stable runs can use it and no other branch can. RELEASE_DEPLOY_KEY goes in as an environment secret when the key is added.

Agreed on the cutover order you laid out: merge this (edge runs stop at the tag step until the key and the branch archive are done), archive refs/heads/aurora-edge at the same SHA with the owner's go-ahead and repoint the current publishers, add the environment secret, dispatch publish: edge, then merge fedora-aurora#508 and alarm-aurora#442.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: FINISH at 1f3b8a34

Blockers: none. The code is clean. What's left is CI: host-tests and build (with smoke after it) are still running on 1f3b8a34.

Checked: The delta from 5b5b71ed is one commit. It puts publish (kernel-release.yml:265-270) in environment: release. The live environment allows deployments only from main (branch) and v* (tag), so the RELEASE_DEPLOY_KEY step at :315-317 is now limited to edge/nightly/stable runs. The PR-run and the non-main dispatch paths never reach it. The earlier security blocker is resolved. The commits are by a human author and committer, with Signed-off-by: on all 6, and there is no attribution in the commits, title or body.

Evidence
  • compare/5b5b71edbb0e...1f3b8a34155d: one commit, .github/workflows/kernel-release.yml +5 -1 (the environment line plus header and job comments).
  • environments/release: custom_branch_policies: true, policies main (branch) and v* (tag).
  • Triggers that reach publish: a push to main (edge), a v* tag push (stable), a schedule on the default branch (nightly), and a dispatch on main. plan rejects a publishing dispatch from other refs, and pull_request maps to channel=none. Every one of these runs on a ref the environment allows.
  • When the key is registered it must go in as an environment secret, not a repository secret, or this scoping does nothing (matches the "Still to run" step in the PR body).
  • CI at 1f3b8a34: plan pass, pr-text pass. host-tests, build and readiness pending.
  • Retiring the aurora-edge branch and registering the deploy key are still owner steps after merge. This review decides neither.

A branch named aurora-edge exists from the previous distribution Edge
train. Read and move the channel tags only as refs/tags/<name> (the
nightly check used the bare name) and drop the check that refused to
create a tag while that branch exists; the branch is archived once the
distribution publishers read the release.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Per the agreed cutover decision, ee1ce11e addresses the channel tags only by their full ref: the nightly check reads git/ref/tags/aurora-nightly (it used the bare name), the tag step reads and pushes refs/tags/<name>, and the check that refused to create a tag while a same-name branch exists is dropped. refs/heads/aurora-edge is never read or touched; it gets renamed to an archive name once fedora-aurora#508 and alarm-aurora#442 read the release.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: FINISH at ee1ce11e

Blockers: none

Checked: delta 1f3b8a34..ee1ce11e (one commit, kernel-release.yml +5/-8), commit messages, PR title/body, Ryan's 14:06Z comment, and live checks on ee1ce11e. The code is clean. I'll approve once host-tests, build and smoke are green on this head.

Evidence
  • Nightly plan now reads git/ref/heads/main and git/ref/tags/aurora-nightly (.object.sha). Before this, commits/aurora-nightly resolved the bare name, and that name could match the existing aurora-edge-style branch. The channel tags are pushed as lightweight tags ($SHA:refs/tags/$tag), so .object.sha is the commit SHA. The last = sha skip compares like with like.
  • The tag step still reads git/ref/tags/$tag and pushes $SHA:refs/tags/$tag with --force-with-lease=refs/tags/$tag:$old. An empty $old means the tag must not exist yet. The forward-only check through compare is unchanged.
  • The same-name branch refusal is removed, as agreed for the cutover. Nothing else reads the bare name: gh release view/edit/upload/create --verify-tag all resolve through the release/tag APIs, not branches. Live refs: heads/aurora-edge exists (a8ae48f8), and there are no tags/aurora-* yet, so the first edge publish creates the tag under the lease.
  • environment: release on publish is unchanged from 1f3b8a34. RELEASE_DEPLOY_KEY is still only read in that job.
  • §4: all 7 commits are Signed-off-by: Ryan Murray only. The PR title, body and commits have no AI attribution.
  • Checks on ee1ce11e: plan, pr-text, readiness succeeded. host-tests and build are in progress. smoke is queued behind build.
  • Left to the owner: archiving or renaming the aurora-edge branch, and creating the RELEASE_DEPLOY_KEY deploy key and secret.

@RyanTheTide

Copy link
Copy Markdown
Author

Verdict at ee1ce11e497d33e7acf04e12da19c7330b4ad821: The qualified-ref source finding is resolved.

Blockers: Exact build and smoke checks and the current independent approval are still open. The protected environment's rolling-channel credential awaits owner authorization.

Checked: 13/13 Bash blocks parse. The writer reads and advances only qualified tag refs, preserves the existing branch, and verifies the tag when creating a release. The release environment still admits main and stable tags. The old Edge branch resolves, and the first Edge tag is still absent. After the first successful attested Edge release, switch the Fedora and ALARM consumers before archiving the branch.

The virt machine adds a virtio NIC by default, whose option ROM
(efi-virtio.rom) Ubuntu ships in ipxe-qemu, a recommended package the
runner does not install, so QEMU exited before booting. The smoke run
needs no network: pass -nic none.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

CI at ee1ce11e: build passed on ubuntu-24.04-arm (about 1.5 h, pinned toolchain, all assets and both Arch packages). smoke stopped before boot: QEMU could not find efi-virtio.rom for the virt machine's default virtio NIC, because the runner installs qemu-system-arm without the recommended ipxe-qemu. 31572d1d passes -nic none (the smoke run needs no network); checked locally that the kernel boots with it. New run on that head.

Ubuntu's makepkg runs `type -P pacman` at start and its error trap
ends the run when pacman is missing, so the Arch packages were never
built. Install pacman-package-manager with it, and ask for .pkg.tar.zst
packages since Ubuntu's makepkg.conf defaults to .pkg.tar.gz. Both were
reproduced and checked in an Ubuntu 24.04 container.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Also in ca5a552b: the earlier run showed make pacman-pkg failing on the runner (Ubuntu's makepkg runs type -P pacman at start and exits through its error trap without pacman). Installing pacman-package-manager with it and asking for .pkg.tar.zst (Ubuntu defaults to .pkg.tar.gz) fixes it; reproduced and checked in an Ubuntu 24.04 container. New run on that head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:release Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants