Replace local CI orchestration with GitHub Actions#497
Closed
Conversation
Delete ci/lib.just (~210 lines of SSH dispatch, GitHub commit status posting, guard checks, summary tables) and simplify ci/mod.just to bare recipes. Add .github/workflows/ci.yaml with self-hosted runners labeled x86_64-linux and aarch64-darwin, mirroring the existing step dependency graph. `just ci` still works locally for debugging GHA failures.
Unit tests need git author identity (git.test.ts worktree tests) and the hostname command (shell.test.ts OSC7 tests). Both were available in the old SSH-based CI environment but missing on GHA runners.
Playwright's Chromium crashes immediately on headless NixOS runners without a virtual framebuffer. Start Xvfb before e2e tests and export DISPLAY=:99 so Chromium can launch.
apm-sync uses uvx which isn't on the GHA runner's PATH. Add uv to shell.nix and wrap the ci::apm-sync recipe in nix_shell so uvx is available when running outside a nix develop session.
Playwright's Chromium crashes on headless NixOS runners without a display server. Wrap e2e tests with xvfb-run on Linux (no-op on macOS). Add xvfb-run and uv to shell.nix so both are available in nix develop.
APM now generates instructions, skills, hooks, and prompts under .github/ (for Copilot and other GitHub-native agents). These were missing from the repo, causing apm-sync to fail on CI.
# Conflicts: # apm.lock.yaml
xvfb-run is not available on macOS — gate it behind isLinux.
Use exec so xvfb-run replaces the shell process, and --auto-servernum to pick an available display number. Also skip xvfb-run if DISPLAY is already set (e.g. developer running locally with a display).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI now runs via GitHub Actions on self-hosted runners instead of the
hand-rolled SSH + git-bundle dispatch in
ci/lib.just. Each runner islabeled with its Nix system name (
x86_64-linux,aarch64-darwin), andthe workflow DAG mirrors the existing step dependencies.
The ~210-line
ci/lib.justlibrary (signoff, guard, SSH host resolution,colored prefix output, summary table, context extraction) is deleted
entirely — GitHub Actions provides all of this natively.
ci/mod.justbecomes a thin set of bare recipes so
just cistill works for localdebugging when a GHA job fails. The APM CI skill is rewritten to match
the new GHA-based workflow.
GHA status
5/6 jobs pass:
local-checks,nix(both systems),home-manager,e2e (aarch64-darwin).e2e (x86_64-linux)fails — Playwright's Chromium crashes on the NixOSrunner (
browser.newContext: Target page, context or browser has been closed).The binary works locally and on macOS; this is a runner-specific environment
issue that needs investigation on the
dosamachine.