spawn/.github/workflows
Ahmed Abushagur cefcd56327
feat: restore Packer DO snapshot pipeline for fast agent boot (#2262)
Restores the nightly Packer snapshot build pipeline (reverted in #2205)
that pre-bakes agent images as DigitalOcean snapshots. When a snapshot
exists on the user's account, droplet boot skips cloud-init and tarball
install entirely — cutting provisioning from ~10min to ~2min.

- Add `packer/digitalocean.pkr.hcl` HCL2 template with multi-region
  distribution, apt-lock wait, and snapshot marker
- Add `.github/workflows/packer-snapshots.yml` nightly build with
  matrix strategy, auto-cleanup of old snapshots, and injection-safe
  env var handling
- Add `findSpawnSnapshot()` to query DO API for pre-built snapshots
- Add `waitForSshOnly()` for snapshot boots (skip cloud-init wait)
- Modify `createServer()` to accept optional `snapshotId` param
- Wire snapshot detection in DO `main.ts` orchestrator
- Add `skipAgentInstall` to `CloudOrchestrator` interface to skip
  tarball + install steps when booting from snapshot
- Add 5 unit tests for snapshot lookup (happy path, empty, error,
  invalid ID, network failure)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 16:32:05 -08:00
..
agent-tarballs.yml feat: ARM tarball builds + arch-aware download (#2248) 2026-03-06 17:10:33 -05:00
cli-release.yml feat: migrate to openrouter.ai/labs/spawn CDN + release artifact version checks (#2178) 2026-03-03 23:34:58 -08:00
discovery.yml fix: Node.js v22 upgrade, aider uv install, SSH & cloud reliability (#1440) 2026-02-18 06:54:07 -05:00
docker.yml feat(docker): replace Packer snapshots with Docker-based agent delivery (#2206) 2026-03-05 11:23:56 -05:00
gate.yml fix: allow repo collaborators through the gate workflow (#1166) 2026-02-14 18:32:50 -08:00
lint.yml refactor: extract inline hook commands to TypeScript scripts (#2174) 2026-03-03 23:05:41 -08:00
packer-snapshots.yml feat: restore Packer DO snapshot pipeline for fast agent boot (#2262) 2026-03-06 16:32:05 -08:00
qa.yml ci: bump QA cron from daily to every 4 hours (#1895) 2026-02-24 16:46:55 -08:00
refactor.yml fix: Node.js v22 upgrade, aider uv install, SSH & cloud reliability (#1440) 2026-02-18 06:54:07 -05:00
security.yml refactor: simplify claude launch — no streaming, no output monitoring (#1412) 2026-02-17 09:02:47 -08:00
test.yml ci: add Mock Tests job to satisfy required status check (#1904) 2026-02-25 00:54:33 -05:00