Skip to content

feat(release): publish Linux ARM64 in stable releases - #231

Merged
kevin-orellana merged 3 commits into
mainfrom
feature/linux-stable-publication
Nov 3, 2026
Merged

kevin-orellana merged 3 commits into
mainfrom
feature/linux-stable-publication

Conversation

@kevin-orellana

@kevin-orellana kevin-orellana commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Human readable section

Problem. The release workflow publishes Linux ARM64 only as a preview. Stable Linux publication also needs to preserve macOS-only releases.

Solution. Allow Linux ARM64 packages in stable releases and previews. Stable releases remain macOS-only by default. The release owner must set publish_linux=true to include Linux. Linux previews always include Linux. Package selection, checksums, installation instructions, and publication checks follow the same choice.

Trade-off. The release owner must select which platforms to publish and establish Linux readiness before including its package. Omitting Linux affects the new release only. Existing Linux downloads remain available. Linux startup still requires EXPERIMENTAL_LINUX_SUPPORT=TRUE; PR #234 removes that separate requirement.

Description

The publish_linux workflow input defaults to false. A normal version such as 0.1.1 remains a stable release. A version such as 0.1.1-linux-preview.1 remains a prerelease and does not replace the latest stable release. A Linux preview with publish_linux=false fails before the workflow emits source or version outputs.

The macOS archive and SHA256SUMS.txt always enter the release bundle. The Linux ARM64 archive and its checksum enter only when selected. Linux x86_64 remains a build artifact. All existing builds, tests, source restrictions, signing, notarization, package verification, and publication approval gates remain active for either selection.

Kevin requested the conflict repair and resolution of the release-readiness and recovery feedback. The existing decision entry now records the publication capability, the alternative of preview-only Linux, and the release-owner readiness cost. It keeps its anchor. This records a release mechanism, not security acceptance or authorization to publish a release.

The main-branch merge retains the current macOS notarization steps and Linux test guidance. The release guide documents the platform choice and the required signed rehearsal and download verification.

Related Issues

Related to #49. Publication and published-package acceptance remain open. PR #234 depends on this change.

Type of Change

New feature

Testing

Current repair

Tested source: 193e5a6428619a7f6aa4d41139655603375de167. Native ARM64 Amazon Linux development host. No Rust source, Cargo manifest, dependency lock, or binary-build command changes appear against main at e4ca8b8.

Check Result and limits
python3 -m unittest discover -s scripts -p 'test_*.py' -v All 59 tests passed. A regression reads the actual workflow default and checks macOS-only stable publication plus preview refusal. The release cases cover macOS-only stable, combined stable, and combined preview bundles; checksums; Linux instructions; missing and extra assets; channel mismatch; and invalid platform selection. Existing package, notarization, source, and signing-gate tests also passed.
Workflow syntax YAML parsed and all 23 shell steps passed bash -n.
Merge and whitespace The README conflict retains both additions. git diff --check passed.
Independent adversarial source review No blocking finding. The reviewer traced the platform choice through all four bundle and publication steps and checked the retained gates. It read the saved passing log; it did not perform a second test run. A second reviewer checked the false-default follow-up and its regression before commit.
Hosted checks and automated review CI Gate at 193e5a6 passed. Packaging and native macOS jobs passed; Rust, containment, and verdict jobs were skipped by the path filter. Native bridge checks skipped because the runner lacks the macOS 27 SDK. Automated re-review accepted all fixes with no new finding. CodeQL passed for this head. These results do not constitute human approval or release acceptance.
Signed release rehearsal and actual publication Not run in this repair. No release created. These remain separate release-acceptance work.

Historical validation

At f6f06a325947ecb9c68a4722336cbd857db14aaf, all 34 Python tests passed, YAML parsed, and 22 shell commands passed syntax checks. Independent review ran all 16 release tests and rejected four deliberate defects: a missing Linux archive, an extra archive, wrong prerelease metadata, and an omitted checksum command. The initial host-shell configuration shadowed the fake GitHub client and caused two failures; the isolated-shell rerun passed. Those results cover the earlier source only.

  • I ran the relevant suites (just check, or cargo test --workspace --all-features)
    • This workflow-only repair ran all 59 Python tests. No Rust source changed, and no local Rust workspace execution is claimed.
  • If I touched Rust, I ran cargo fmt --all and cargo clippy --workspace --all-targets --all-features -- -D warnings
    • Not applicable: no Rust source changed.

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Codex reviewed the current diff and completed the ownership checkbox at Kevin's request. This does not attest that Kevin personally reviewed every line. Formal maintainer approval remains required.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

## Problem

Stable version tags publish only macOS, so Linux ARM64 packages cannot enter the stable release channel.

## Solution

Publish both ARM64 archives and their checksums in stable and preview releases. Keep preview metadata, source restrictions, signing, tests, approval, and runtime opt-in. Generate Linux installation instructions for both channels and document release steps.

## Tests

All 34 Python tests passed. ReleaseBundleTests pins both channel asset sets, rejects missing Linux or extra x86_64 assets, verifies checksums, and checks install instructions. ReleaseSourceTests preserves version and source restrictions. All 22 workflow shell blocks passed syntax checks. Build, signing, and approval jobs match base. Full Rust gates, hosted release rehearsal, publication, and actual-download installation were not run. The initial test run hit a shell PATH fixture failure; disabling startup files fixed it.
@github-actions github-actions Bot added enhancement New feature or request Area - Release labels Oct 30, 2026
@kevin-orellana
kevin-orellana marked this pull request as ready for review October 30, 2026 06:27
@kevin-orellana
kevin-orellana enabled auto-merge (squash) October 30, 2026 06:30
Comment thread docs/design/decisions.md Resolved
@github-actions

Copy link
Copy Markdown

Assessment: Request Changes

The asset-set mechanics work in all three places (collect, inspect, post-publish poll), and they agree. My open points are about scope. After this change, the workflow has no macOS-only stable path. Also, the decision entry states a readiness decision that the description says is still pending.

Checks that passed
  • Collect/inspect/poll: All three use the same three-file set in both channels. An extra x86_64 archive fails both inspection and the poll check. I ran the 34 scripts tests locally, and they pass.
  • Channel metadata: prerelease and make_latest did not change. A preview whose base version matches an existing stable tag is still rejected.
  • Linux qualification gates: The consent refusal, check-linux-package.py, and smoke-linux-package.py run for every Linux build, not only for preview. So the Linux archive in a stable release gets the same checks.
  • download.sh against a stable release that has a Linux asset: On macOS, the script selects the exact darwin asset name and the exact SHA256SUMS.txt line, so the extra asset has no effect. On Linux, the script still refuses, as the description states (PR119 is out of scope).
  • Release body: I rendered it for both channels with bash --noprofile --norc. The Markdown and the checksum command are correct.
  • Frozen surfaces / docs/user/: No frozen surface changes. No operator page makes a statement about Linux release channels that this change makes stale.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Assessment: Comment (re-review at 2a77e4d)

Both earlier findings are fixed: there is now a way to publish a macOS-only stable release, and the decision entry names the alternative that lost and the cost. One finding is still open: publish_linux defaults to true, which goes against the "explicit platform choice" that the decision describes.

Checks that passed
  • Consistent asset set: Collect, inspect, the release body, and the publish poll all use PUBLISH_LINUX. I rendered the body for all four combinations of the two inputs. With publish_linux=false, the release has no Linux asset, no Linux checksum line, and no Linux instructions.
  • Invalid input combinations: A preview with publish_linux=false, and non-boolean values, fail before scan emits any outputs.
  • Gates for each selection: Building, testing, signing, notarization, inspection, and approval run in the same way for both values.
  • Decision rules (AGENTS.md Docs Rules 1 and 2): The entry has an answer, the alternative that lost, and a cost. The anchor that code cites is kept.
  • Tests: 58 scripts tests pass on this machine, and the YAML parses.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Assessment: Approve (re-review at 193e5a6)

All three of my earlier findings are fixed, and I found nothing new. Approving does not mean Linux is accepted for release or for security. As the description says, the signed rehearsal and acceptance under #49 are still separate work.

Checks that passed
  • Default selection: A stable dispatch that sets only the version publishes only macOS, the same as on main.
  • Preview dispatched the old way: A preview without publish_linux=true is refused in scan, before any output or build. No script or document in the repo dispatches a preview without it.
  • Consistent asset set: Collect, inspect, the release body, and the publish poll still all use PUBLISH_LINUX. This part did not change since 2a77e4d.
  • Docs: docs/dev/releases.md gives the false default and says previews require true. The decision entry still names the alternative that lost and the cost, and keeps its anchor.
  • Tests: 59 scripts tests pass on this machine, including the regression check that reads the real default.

@kevin-orellana
kevin-orellana merged commit 8fa62ba into main Nov 3, 2026
23 checks passed
@kevin-orellana
kevin-orellana deleted the feature/linux-stable-publication branch November 3, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Release enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants