Skip to content

test: release smoke test on macOS CI runners #956

Open

Description

@huang195

Feature Description

The v0.9.0 exit bar says install works cold on four targets. Nothing checks that today, so every
release risks shipping an installer that only worked on the author's laptop.

Proposed Solution

  • CI job on macOS runners installing from a published tag exactly as a user would
    (curl | sh), not from a local build
  • Assert the launchd service starts and abctl service status is healthy
  • Set ABCTL_LAUNCHD_TESTS=required on this job so TestWaitBootedOut_RealLaunchd
    (cmd_service_bootout_test.go) actually runs instead of silently skipping — true in
    every CI run today, since no workflow sets the var. Mirrors ABCTL_SYSTEMD_TESTS=required
    on the Linux side (Test: Real-systemd integration test for crash recovery, wired into CI #1076), which turns the same class of skip into a hard failure.
  • Drive a real request through the proxy and assert a parsed event with a non-zero token
    count, read through the unattended capture path (feature: support unattended agent workloads — headless agent runs with no human present #955), in both the macOS and Linux
    smoke tests (moved from test: release smoke test on Linux CI runners #957)
  • Assert upgrade-over-existing and uninstall-is-clean
  • Runs on every tag; a failure blocks the release
  • Also runs against main-latest, so breakage is caught before tagging
  • State which architectures CI covers and which stay manual

Additional Context

Part of the Cortex v0.9.0 release. Automates the macOS install verification (#944) and gates
exit criterion 1.

Activity

  1. added this to the Release V0.9.0 milestone on Sep 10, 2026
  2. added
    high priority
    on Sep 10, 2026
  3. Alan-Cha commented on Nov 4, 2026

    @Alan-Cha
    Member

    On "a failure blocks the release": today the smoke test can't block anything, because it runs after release-binaries.yaml has already published the release. Three ways to make the box true:

    • A, alarm only: what we have on Linux. A failure is reported, but the release is already live.
    • B, test before publishing: smoke-test the built tarballs, publish only if they pass. It does block, but it can't test installing from a published release, which is half of what this issue asks for.
    • C, publish as a prerelease, then promote: publish each tag as a prerelease, run the Linux and macOS smoke tests against it with --ref=<tag>, and promote it to the latest release only if both pass.

    I recommend C. It's the only option that both blocks and tests what users actually run. The installer resolves releases/latest, which GitHub never assigns to a prerelease (that's how main-latest and -rc tags already stay out of the plain one-liner), so the one-liner never serves an untested release. That builds on existing behavior instead of adding new machinery. It needs one promotion step after the smoke tests pass, and a decision on what happens when GitHub's macOS runners queue too long.

  4. Alan-Cha commented on Nov 9, 2026

    @Alan-Cha
    Member

    Spike result: GitHub's macOS runners can run Cortex under launchd (run 42284398514, workflow on branch macos-launchd-spike). Both runners boot logged in as runner through automatic login, so the per-user gui/<uid> domain exists. Unlike Linux, they need no lingering step.

    Runner Image gui/<uid> TestWaitBootedOut_RealLaunchd, AGENTOP_LAUNCHD_TESTS=required Install from source, status, stop/start/restart, uninstall
    macos-15 macos-15-arm64 (15.8.2) exists pass pass
    macos-latest macos-26-arm64 (26.6.2) exists pass pass

    macos-14 is no longer offered, so macOS 15 is the oldest runner available. That rules out testing the cpex build's macOS 14.5 minimum in CI. Both runners are arm64; I didn't try an Intel runner, so which architectures CI can cover is still open. Next: the smoke test itself, installing a published tag via curl | sh, on these two runners.

  5. Alan-Cha commented on Nov 20, 2026

    @Alan-Cha
    Member

    The macOS smoke test and the release gate are up for review: #2036, and #2037 stacked on it.

    #2036: the macOS smoke test, and a request through Cortex on both platforms

    • release-smoke-macos.yaml walks the Linux test's journey on macOS:

      • a fresh install of the previous stable release with curl | sh;
      • an upgrade to the release under test, where agentop service status must report healthy and launchd must run the new binary;
      • a no-op re-run;
      • a clean uninstall.

      Runners: macos-15 and macos-26 (arm64), and macos-15-intel.

    • Both smoke tests now send one request through the installed Cortex to a fake Anthropic API. They check that the session API recorded its 12 input and 3 output tokens. This reads the session API, not the feature: support unattended agent workloads — headless agent runs with no human present #955 capture path, which doesn't exist yet.

    • Tested on real runners, against v0.9.5 upgrading from v0.9.4:

      • 44796300863: Linux and macOS 15 arm64 passed. Intel failed, because the fake server took more than 5 s to start there.
      • 44796654247: Intel passed with a 30 s wait.

    #2037: a failure blocks the release (option C)

    • A new vX.Y.Z is created as a prerelease, so the one-liner, agentop update and the auto-updater don't install it.
    • release-promote.yaml clears the flag once both smoke workflows have passed for that release run. It sets Latest only when no higher stable version exists, so a backport no longer takes Latest from a newer release.
    • By hand: gh workflow run release-promote.yaml -f tag=vX.Y.Z, which doesn't check the smoke tests.
    • workflow_run only fires for files on main, so the first stable tag after both merge is the first live run. That is probably v0.10.0.

    Intel and macOS 27 (44787735425): #1780's real-launchd tests, TestWaitBootedOut_RealLaunchd and TestServiceLifecycle_RealLaunchd, pass on every image I hadn't tried yet:

    Runner macOS Arch gui/<uid> Both tests
    xcode-27 27.0.1 arm64 exists pass
    macos-26-intel 26.6.1 x86_64 exists pass
    macos-15-intel 15.7.9 x86_64 exists pass

    The smoke test doesn't use xcode-27, because it's a preview image and a release gate shouldn't depend on one.

    Which architectures CI covers:

    • In CI: Linux amd64 and arm64 (Ubuntu 24.04), macOS arm64 (15 and 26) and macOS x86_64 (15).
    • Manual: macOS 14 and older (GitHub retired its macOS 14 runners on Nov 2), macOS 27 until it ships, and Linux distributions other than Ubuntu.

    The checklist:

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

Metadata

Metadata

Assignees

Labels

high priority

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions