Skip to content

ci(pstack): run macOS outside CI gate, since its runners can starve it - #27

Merged
mstephenholl merged 1 commit into
mainfrom
ci-macos-off-gate
Oct 20, 2026
Merged

mstephenholl merged 1 commit into
mainfrom
ci-macos-off-gate

Conversation

@mstephenholl

Copy link
Copy Markdown
Owner

Why

#25 cut the macOS install job to one, /bin/bash, because the other one kept failing to get a runner. Today the /bin/bash job failed the same way three times in a row ("The job was not acquired by Runner of type hosted even after multiple attempts"): once on main after #25 merged, and twice on #22. GitHub cancels a job that waits about 15 minutes for a macOS runner. CI gate treats a cancelled job as a failure, and the main ruleset requires the gate with no bypass, so each shortage blocks every merge and release until a retry gets lucky.

What changes

  • pstack-ci.yml: the install job runs on Ubuntu only. Every job in this file still feeds CI gate.
  • New pstack-macos.yml: the same install steps on macos-latest with /bin/bash, on every push to main, daily at 06:23 UTC, and on demand. It has no pull_request trigger, so it never adds a check to a pull request. A newer commit cancels a run that is still waiting for a runner, so a burst of merges doesn't queue several runs for scarce runners.
  • Tests: CiWiringTest now fails if any gated job runs on macOS. The new MacosWorkflowTest fixes the triggers, the read-only permissions, and the cancel-on-newer concurrency group, and checks that the macOS steps match the gated Ubuntu install job's steps except for /bin/bash. Without that check, the two copies could drift apart now that they live in separate files.
  • port/README.md: the CI section describes the new workflow, its trade-off, and how to test a branch on macOS before merging (gh workflow run pstack-macos.yml --ref <branch>).

Risk

A bug that shows up only on macOS (bash 3.2, BSD stat or date) can now merge and ship in a release before its macOS run reports. The run on main still catches it within hours, but the fix lands after the release.

Proof

  • Each new test fails on the drift it guards against: dropping a step from the macOS job, adding a pull_request trigger, and main's current pstack-ci.yml with macOS in the gate.
  • All 248 unit tests pass, install_test.sh passes, and check.py reports 0 problems. Both workflows parse, with the triggers and runners listed above.

GitHub's macOS arm64 runners failed to pick up the /bin/bash install job three times in a row today, so CI gate failed on main and on #22 even after #25 cut macOS to one job. pstack-macos.yml now runs that job on every push to main, daily, and on demand, outside the gate, and a test keeps its steps the same as the gated Ubuntu install job's.
@mstephenholl
mstephenholl merged commit cb30f73 into main Oct 20, 2026
9 checks passed
@mstephenholl
mstephenholl deleted the ci-macos-off-gate branch October 20, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant