macOS installers on the Mac runner (Matou/coa#169) #1

Open
ben wants to merge 0 commits from mac-stage into main
Owner

Brings the macOS installers back to the Forgejo build (Matou/coa#169; macOS was paused by coa ADR 0010 for want of a Mac).

What it does

  • build-mac.yml (new) builds <slug>-<ver>-mac-x64.dmg and -mac-arm64.dmg, unsigned, on the macos-x64 runner and uploads them to the COA server itself. It never sends a callback.
  • build.yml dispatches it right after prepare, with the ref it resolved and a start deadline. Once its own three installers are uploaded it waits for the DMGs — until both are served, the Mac build ends, the start deadline passes with no runner having taken the job, or 40 minutes at most — then reports with whichever DMGs arrived.
  • coa-build.sh runs on both hosts (sha256, Go download, docker fallback) and keeps host state under COA_BASE.

Why a separate workflow

The Mac is a laptop. A job waiting for an absent runner inside the build run would keep that run alive, and the coa-build concurrency group would queue every later build behind it.

Proven

What Where
Both DMGs build on the Mac; each mounts, carries only its own arch's backend, and the x64 backend executes from the image run 28 (composite-smoke, proof mode), 10 min
The Linux job's own token can dispatch build-mac.yml, and the Mac picks it up inside the start window runs 29 → 30
Gate, dispatch refusals, the bounded wait (Mac absent / building / failed after one DMG / forge unreadable), a late Mac's 409 scripts/forgejo/tests/coa-build-mac-test.sh, 39 checks, offline

Not yet proven

The live path end to end — DMGs uploaded while a real build is in flight, then listed by the callback. That needs this on main and one real build of a demo community.

Found on the way

  • Quasar ignores --mac --arm64 and packages for the host's arch; the GitHub workflow only worked because each arch had its own host. Uses -T darwin -A <arch>.
  • The arm64 DMG is a cross-build on the Intel host: its backend is format-checked, not run.
Brings the macOS installers back to the Forgejo build (Matou/coa#169; macOS was paused by coa ADR 0010 for want of a Mac). ## What it does - **`build-mac.yml`** (new) builds `<slug>-<ver>-mac-x64.dmg` and `-mac-arm64.dmg`, unsigned, on the `macos-x64` runner and uploads them to the COA server itself. It never sends a callback. - **`build.yml`** dispatches it right after `prepare`, with the ref it resolved and a start deadline. Once its own three installers are uploaded it waits for the DMGs — until both are served, the Mac build ends, the start deadline passes with no runner having taken the job, or 40 minutes at most — then reports with whichever DMGs arrived. - **`coa-build.sh`** runs on both hosts (sha256, Go download, docker fallback) and keeps host state under `COA_BASE`. ## Why a separate workflow The Mac is a laptop. A job waiting for an absent runner inside the build run would keep that run alive, and the `coa-build` concurrency group would queue every later build behind it. ## Proven | What | Where | |---|---| | Both DMGs build on the Mac; each mounts, carries only its own arch's backend, and the x64 backend executes from the image | run 28 (`composite-smoke`, proof mode), 10 min | | The Linux job's own token can dispatch `build-mac.yml`, and the Mac picks it up inside the start window | runs 29 → 30 | | Gate, dispatch refusals, the bounded wait (Mac absent / building / failed after one DMG / forge unreadable), a late Mac's 409 | `scripts/forgejo/tests/coa-build-mac-test.sh`, 39 checks, offline | ## Not yet proven The live path end to end — DMGs uploaded while a real build is in flight, then listed by the callback. That needs this on `main` and one real build of a demo community. ## Found on the way - Quasar ignores `--mac --arm64` and packages for the host's arch; the GitHub workflow only worked because each arch had its own host. Uses `-T darwin -A <arch>`. - The arm64 DMG is a cross-build on the Intel host: its backend is format-checked, not run.
build-mac.yml builds the Intel and Apple silicon DMGs, unsigned, on the
macos-x64 runner and uploads them to the COA server itself. build.yml
dispatches it early and, once its own three installers are uploaded, waits
- bounded - for the DMGs before it reports. A separate workflow, because a
job waiting for an absent laptop inside the build run would hold the
coa-build group and queue every later build behind it.

coa-build.sh is portable across the two hosts (sha256, Go download, docker
fallback) and keeps its host state under COA_BASE.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
First proof run (coa-builds run 27): quasar ignored --mac --arm64 and packaged
x64 twice; the packaged backend had not printed its banner 5 s after a first
launch from the mounted image; the image stayed mounted.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin mac-stage:mac-stage
git switch mac-stage

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff mac-stage
git switch mac-stage
git rebase main
git switch main
git merge --ff-only mac-stage
git switch mac-stage
git rebase main
git switch main
git merge --no-ff mac-stage
git switch main
git merge --squash mac-stage
git switch main
git merge --ff-only mac-stage
git switch main
git merge mac-stage
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa-builds!1
No description provided.