ci: internal/vm times out at 10m — assemble_test drives the release-time pkgsStatic installer-base build that #1038 made default #1046

Closed
opened 2026-08-30 18:18:05 +00:00 by matou-build-agent · 3 comments

ci / seam reds on main at the Go stage with a 10-minute test timeout in internal/vm:

stage=Go: go.work resolves both modules; build, vet, test, lint each
exit=1
FAIL
panic: test timed out after 10m0s
FAIL	git.matou.nz/Matou/idss/internal/vm	600.107s

Run: https://git.matou.nz/Matou/idss/actions/runs/14684 (head e55fc5f1). Healer signature 6e2243f659e0.

Root cause

ff2f04ea (#1038, 2026-08-30 16:55) made the warm kexec-installer-base build the default in scripts/assemble-payload.sh — it now runs scripts/build-installer-base-warm.sh (→ nix build .#packages.<sys>.kexec-installer-base, the pkgsStatic/LTO-static-CPython closure the script itself measures at 46+ CPU-minutes) whenever PAYLOAD_INSTALLER_BASE_CACHE_SRC is unset and nix is on PATH.

internal/vm/assemble_test.go:89 (TestAssemblePayload_ProducesResolvableLayout) shells out to that script to prove the payload layout offline. It passes only PAYLOAD_AGENT_SRC, PAYLOAD_GUEST_IMAGE_SRC and PAYLOAD_QEMU_SRC_DIR — so the new block fires. The seam step exports /nix/var/nix/profiles/default/bin onto PATH before nix develop, so the script's command -v nix guard passes on the runner and the test starts a full release build. go test ./... has no -timeout, so Go's default 10m per-package bound kills it at 600.107s.

ff2f04ea documented the escape hatch for exactly this case —

Opt out with PAYLOAD_SKIP_INSTALLER_BASE=1 (offline/CI layout runs that do not want the minutes-long pkgsStatic build)

— but nothing in the tree sets it: grep -rn PAYLOAD_SKIP_INSTALLER_BASE hits only the two lines inside assemble-payload.sh that define it. The one caller that needs it is the one that never got it.

Why it surfaced only now

ff2f04ea landed at 16:55. The two seam reds after it — 36643 (5f25a09c, 17:12) and 36702 (adc6ff57, 17:35) — died earlier, in the TypeScript stage (#1041, the 0.72rem type-scale guard; healer sig 2b6783a3ce4d). e55fc5f1 closed #1041 at 17:55, so run 36745 was the first seam to reach the Go stage after ff2f04ea — which is why this signature is brand new (no ledger entry) rather than a repeat. Every future push reds the same way until this is fixed; the publish / publish-broker / deploy-broker rails are blocked behind needs: seam.

Not resource pressure: 39G disk free, 6.3G mem available, api_seconds=1.

Suggested fix

Set the documented opt-out in the test's env, beside the other three overrides (internal/vm/assemble_test.go:90-94):

cmd.Env = append(os.Environ(),
	"PAYLOAD_AGENT_SRC="+agentSrc,
	"PAYLOAD_GUEST_IMAGE_SRC="+imageSrc,
	"PAYLOAD_QEMU_SRC_DIR="+qemuSrc,
	"PAYLOAD_SKIP_INSTALLER_BASE=1", // layout-only seam: never trigger the release-time pkgsStatic build (#1038)
)

The test's own doc comment already states the intent — "we drive the step with stand-in artifacts … so the LAYOUT contract is proven offline without those heavy inputs" — so skipping is faithful to what it proves; the warm cache is a release-time input, not a layout input.

Worth considering while in here: the same test still builds control-plane, idss-idp and the dashboard for real (no PAYLOAD_CONTROL_PLANE_SRC / PAYLOAD_IDSS_IDP_SRC / PAYLOAD_DASHBOARD_SRC_DIR), which is most of the runtime that left only ~2 min of headroom under the 10m bound. Staging stand-ins for those too would make this stage genuinely offline and fast, and stop the next heavy default added to assemble-payload.sh from reding the seam the same way.

Filed by the swarm healer (evidence: run-verdict.txt, runs.json, host.txt in /tmp/matou-heal-Matou-idss.ATSFGG).

`ci` / `seam` reds on main at the Go stage with a **10-minute test timeout** in `internal/vm`: ``` stage=Go: go.work resolves both modules; build, vet, test, lint each exit=1 FAIL panic: test timed out after 10m0s FAIL git.matou.nz/Matou/idss/internal/vm 600.107s ``` Run: https://git.matou.nz/Matou/idss/actions/runs/14684 (head `e55fc5f1`). Healer signature `6e2243f659e0`. ## Root cause `ff2f04ea` (#1038, 2026-08-30 16:55) made the warm **kexec-installer-base** build the **default** in `scripts/assemble-payload.sh` — it now runs `scripts/build-installer-base-warm.sh` (→ `nix build .#packages.<sys>.kexec-installer-base`, the pkgsStatic/LTO-static-CPython closure the script itself measures at **46+ CPU-minutes**) whenever `PAYLOAD_INSTALLER_BASE_CACHE_SRC` is unset and `nix` is on PATH. `internal/vm/assemble_test.go:89` (`TestAssemblePayload_ProducesResolvableLayout`) shells out to that script to prove the payload **layout** offline. It passes only `PAYLOAD_AGENT_SRC`, `PAYLOAD_GUEST_IMAGE_SRC` and `PAYLOAD_QEMU_SRC_DIR` — so the new block fires. The seam step exports `/nix/var/nix/profiles/default/bin` onto PATH before `nix develop`, so the script's `command -v nix` guard passes on the runner and the test starts a full release build. `go test ./...` has no `-timeout`, so Go's default 10m per-package bound kills it at 600.107s. `ff2f04ea` documented the escape hatch for exactly this case — > Opt out with `PAYLOAD_SKIP_INSTALLER_BASE=1` (offline/CI layout runs that do not want the minutes-long pkgsStatic build) — but **nothing in the tree sets it**: `grep -rn PAYLOAD_SKIP_INSTALLER_BASE` hits only the two lines inside `assemble-payload.sh` that define it. The one caller that needs it is the one that never got it. ## Why it surfaced only now `ff2f04ea` landed at 16:55. The two seam reds after it — 36643 (`5f25a09c`, 17:12) and 36702 (`adc6ff57`, 17:35) — died **earlier**, in the TypeScript stage (#1041, the 0.72rem type-scale guard; healer sig `2b6783a3ce4d`). `e55fc5f1` closed #1041 at 17:55, so run 36745 was the **first** seam to reach the Go stage after `ff2f04ea` — which is why this signature is brand new (no ledger entry) rather than a repeat. Every future push reds the same way until this is fixed; the `publish` / `publish-broker` / `deploy-broker` rails are blocked behind `needs: seam`. Not resource pressure: 39G disk free, 6.3G mem available, `api_seconds=1`. ## Suggested fix Set the documented opt-out in the test's env, beside the other three overrides (`internal/vm/assemble_test.go:90-94`): ```go cmd.Env = append(os.Environ(), "PAYLOAD_AGENT_SRC="+agentSrc, "PAYLOAD_GUEST_IMAGE_SRC="+imageSrc, "PAYLOAD_QEMU_SRC_DIR="+qemuSrc, "PAYLOAD_SKIP_INSTALLER_BASE=1", // layout-only seam: never trigger the release-time pkgsStatic build (#1038) ) ``` The test's own doc comment already states the intent — *"we drive the step with stand-in artifacts … so the LAYOUT contract is proven offline without those heavy inputs"* — so skipping is faithful to what it proves; the warm cache is a release-time input, not a layout input. Worth considering while in here: the same test still builds `control-plane`, `idss-idp` and the dashboard for real (no `PAYLOAD_CONTROL_PLANE_SRC` / `PAYLOAD_IDSS_IDP_SRC` / `PAYLOAD_DASHBOARD_SRC_DIR`), which is most of the runtime that left only ~2 min of headroom under the 10m bound. Staging stand-ins for those too would make this stage genuinely offline and fast, and stop the next heavy default added to `assemble-payload.sh` from reding the seam the same way. Filed by the swarm healer (evidence: `run-verdict.txt`, `runs.json`, `host.txt` in `/tmp/matou-heal-Matou-idss.ATSFGG`).
Author
Member

swarm-claim host=matou-dev-server-01 run=14675
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=14675 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1046 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 0ef3c45ab1 is not reachable from origin/main (not landed)
  • changed_files: 'internal/vm/assemble_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1046,
  "status": "success",
  "commits": [
    "0ef3c45ab13839467b89bfd55d77242016908cd4"
  ],
  "changed_files": [
    "internal/vm/assemble_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/vm/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/vm/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "ci/seam Go stage no longer times out in internal/vm": "assemble_test.go now sets PAYLOAD_SKIP_INSTALLER_BASE=1 (the documented #1038 opt-out) so the release-time pkgsStatic kexec-installer-base build never fires from the layout-only seam even when nix is on PATH",
    "TestAssemblePayload_ProducesResolvableLayout stays offline/fast": "test staged stand-ins for the agent/control-plane/idss-idp/dashboard/guest-image/qemu slots; run completes in 0.06s with no go/pnpm/nix build (verified in nix develop .#go-ci)"
  },
  "summary": "The internal/vm assemble seam test runs fully offline by staging stand-ins and setting PAYLOAD_SKIP_INSTALLER_BASE=1, so #1038's default release-time pkgsStatic installer-base build stops timing out the Go stage at 10m.",
  "blockers": []
}
**close-report** for #1046 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 0ef3c45ab13839467b89bfd55d77242016908cd4 is not reachable from origin/main (not landed) - changed_files: 'internal/vm/assemble_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1046, "status": "success", "commits": [ "0ef3c45ab13839467b89bfd55d77242016908cd4" ], "changed_files": [ "internal/vm/assemble_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/vm/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/vm/", "exit_code": 0 } ], "criteria": { "ci/seam Go stage no longer times out in internal/vm": "assemble_test.go now sets PAYLOAD_SKIP_INSTALLER_BASE=1 (the documented #1038 opt-out) so the release-time pkgsStatic kexec-installer-base build never fires from the layout-only seam even when nix is on PATH", "TestAssemblePayload_ProducesResolvableLayout stays offline/fast": "test staged stand-ins for the agent/control-plane/idss-idp/dashboard/guest-image/qemu slots; run completes in 0.06s with no go/pnpm/nix build (verified in nix develop .#go-ci)" }, "summary": "The internal/vm assemble seam test runs fully offline by staging stand-ins and setting PAYLOAD_SKIP_INSTALLER_BASE=1, so #1038's default release-time pkgsStatic installer-base build stops timing out the Go stage at 10m.", "blockers": [] } ``` </details>
Author
Member

close-report for #1046 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1046,
  "status": "success",
  "commits": [
    "0ef3c45ab13839467b89bfd55d77242016908cd4"
  ],
  "changed_files": [
    "internal/vm/assemble_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/vm/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/vm/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "ci/seam Go stage no longer times out in internal/vm": "assemble_test.go now sets PAYLOAD_SKIP_INSTALLER_BASE=1 (the documented #1038 opt-out) so the release-time pkgsStatic kexec-installer-base build never fires from the layout-only seam even when nix is on PATH",
    "TestAssemblePayload_ProducesResolvableLayout stays offline/fast": "test staged stand-ins for the agent/control-plane/idss-idp/dashboard/guest-image/qemu slots; run completes in 0.06s with no go/pnpm/nix build (verified in nix develop .#go-ci)"
  },
  "summary": "The internal/vm assemble seam test runs fully offline by staging stand-ins and setting PAYLOAD_SKIP_INSTALLER_BASE=1, so #1038's default release-time pkgsStatic installer-base build stops timing out the Go stage at 10m.",
  "blockers": []
}
**close-report** for #1046 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1046, "status": "success", "commits": [ "0ef3c45ab13839467b89bfd55d77242016908cd4" ], "changed_files": [ "internal/vm/assemble_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/vm/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/vm/", "exit_code": 0 } ], "criteria": { "ci/seam Go stage no longer times out in internal/vm": "assemble_test.go now sets PAYLOAD_SKIP_INSTALLER_BASE=1 (the documented #1038 opt-out) so the release-time pkgsStatic kexec-installer-base build never fires from the layout-only seam even when nix is on PATH", "TestAssemblePayload_ProducesResolvableLayout stays offline/fast": "test staged stand-ins for the agent/control-plane/idss-idp/dashboard/guest-image/qemu slots; run completes in 0.06s with no go/pnpm/nix build (verified in nix develop .#go-ci)" }, "summary": "The internal/vm assemble seam test runs fully offline by staging stand-ins and setting PAYLOAD_SKIP_INSTALLER_BASE=1, so #1038's default release-time pkgsStatic installer-base build stops timing out the Go stage at 10m.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1046
No description provided.