mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
The stack-cli ignores EMULATOR_IMAGE_DIR / EMULATOR_RUN_DIR and derives
its own paths from STACK_EMULATOR_HOME (or $HOME/.stack/emulator as
default). Without STACK_EMULATOR_HOME set, `emulator start` in CI was
silently auto-pulling from the previous `emulator-dev-latest` release
instead of using the just-built qcow2 + savevm under ${workspace}.
Before: auto-pull got qcow2 + savevm.zst → fast-resume (worked, but
tested the PREVIOUS build, not the current one).
After my capture-locally change: auto-pull only gets qcow2 →
captureLocalSnapshot kicks off a full cold-boot + capture of a stale
image, which is slow and can hang in CI.
Point STACK_EMULATOR_HOME at the workspace so the CLI finds the
just-built images and goes straight to snapshot-resume. Update the
smoke-test job's copy step to target STACK_EMULATOR_HOME so both paths
stay consistent.
|
||
|---|---|---|
| .. | ||
| all-good.yaml | ||
| auto-assign.yaml | ||
| auto-update.yaml | ||
| check-prisma-migrations.yaml | ||
| claude.yml | ||
| db-migration-backwards-compatibility.yaml | ||
| docker-server-build-push.yaml | ||
| docker-server-build-run.yaml | ||
| e2e-api-tests-local-emulator.yaml | ||
| e2e-api-tests.yaml | ||
| e2e-custom-base-port-api-tests.yaml | ||
| e2e-fallback-tests.yaml | ||
| lint-and-build.yaml | ||
| mirror-to-wdb.yaml | ||
| npm-publish.yaml | ||
| qemu-emulator-build.yaml | ||
| reviewers-assignees.yml | ||
| setup-tests-with-custom-base-port.yaml | ||
| setup-tests.yaml | ||
| swift-sdk-publish.yaml | ||
| sync-main-to-dev.yml | ||
| table-of-contents.yaml | ||