winrunner: owned Windows VM lane durability (cache disk, health timer, guest transcript/eval clock, dispatch Wants=) + Namespace probe inputs #132

Merged
founder merged 6 commits from claude/jolly-mendel-809f3f into main 2026-08-17 04:23:53 +00:00
Owner

Owned Windows VM lane (key-store-winrunner, libvirt on the forge) — durability follow-on to the 2026-08-16 revival, per the founder's "Namespace Windows for now, owned VM path in parallel" direction. Verified on the branch (VM lane green ×5, Build (Windows) runs 18413/18415-18418); details and measurements in docs/windows-builds.md.

Owned lane

  • Persistent per-slot cache disk (windowsVmRunner.cacheDisk, forge on): the launcher creates/flocks/attaches a thin qcow2, the guest formats it once (NTFS KEYSTORE_CACHE) and exports KEYSTORE_WINDOWS_CACHE_ROOT; native-build-namespace.ps1 keeps a bare git mirror (token never persisted) and the swiftc build root there; the smoke runs the Release binary instead of rebuilding Debug. Measured: native_build_seconds 42 → 26, job 54 s → 36 s.
  • Guest transcript (runner registration, swift_version=, evaluation clock eval_expires=) copied out of the overlay into the launch log with virt-cat.
  • Health timer (windowsVmRunner.health, forge on, 15 m): check-local-runner-status.sh gains qemu-img -U (fixes the false alarm on the in-use macOS base), admin-password sidecar, eval clock warn 30 d / fail 7 d (image expires 2026-12-04), stale run dirs; the health service self-heals an enabled-but-inactive dispatcher.
  • Dispatch unit: Wants= instead of Requires= for forgejo/libvirtd + StartLimitIntervalSec=0. Real incident: the 03:50Z forge switch restarted forgejo, its start briefly failed, and the dispatcher's start job died with result 'dependency' — the lane sat dead with two jobs waiting until started by hand.
  • Diagnostics in the release/build/smoke jobs print swift version, cache root and eval_days_left (::warning under 30 d).

Namespace probe

  • Build: Windows and Runner: Windows WIF Smoke take a runner input (inputs.runner; Forgejo 15's job parser evaluates runs-on with vars + inputs, github.event.inputs is empty there).
  • First-ever jobs on namespace-profile-windows-large never got a runner: WinRM/ssh through the nsc port-forward reset for the whole retry budget, the autoscaler re-created an 8x16 instance every ~5 min. Recorded in the runbook; fix belongs in forgejo-nsc (chip spawned). KEYSTORE_WINDOWS_NATIVE_RUNNER stays unset (VM default).

Not deployed to the forge in this PR (KSE-0182 OpenBao changes in flight — founder check first); the live lane keeps working with the deployed launcher, the module changes activate on the next deploy-forge-host switch.

Owned Windows VM lane (`key-store-winrunner`, libvirt on the forge) — durability follow-on to the 2026-08-16 revival, per the founder's "Namespace Windows for now, owned VM path in parallel" direction. Verified on the branch (VM lane green ×5, `Build (Windows)` runs 18413/18415-18418); details and measurements in `docs/windows-builds.md`. **Owned lane** - Persistent per-slot cache disk (`windowsVmRunner.cacheDisk`, forge on): the launcher creates/flocks/attaches a thin qcow2, the guest formats it once (NTFS `KEYSTORE_CACHE`) and exports `KEYSTORE_WINDOWS_CACHE_ROOT`; `native-build-namespace.ps1` keeps a bare git mirror (token never persisted) and the swiftc build root there; the smoke runs the Release binary instead of rebuilding Debug. Measured: `native_build_seconds` 42 → 26, job 54 s → 36 s. - Guest transcript (runner registration, `swift_version=`, evaluation clock `eval_expires=`) copied out of the overlay into the launch log with `virt-cat`. - Health timer (`windowsVmRunner.health`, forge on, 15 m): `check-local-runner-status.sh` gains `qemu-img -U` (fixes the false alarm on the in-use macOS base), admin-password sidecar, eval clock warn 30 d / fail 7 d (image expires 2026-12-04), stale run dirs; the health service self-heals an enabled-but-inactive dispatcher. - Dispatch unit: `Wants=` instead of `Requires=` for forgejo/libvirtd + `StartLimitIntervalSec=0`. Real incident: the 03:50Z forge switch restarted forgejo, its start briefly failed, and the dispatcher's start job died with `result 'dependency'` — the lane sat dead with two jobs waiting until started by hand. - Diagnostics in the release/build/smoke jobs print swift version, cache root and `eval_days_left` (`::warning` under 30 d). **Namespace probe** - `Build: Windows` and `Runner: Windows WIF Smoke` take a `runner` input (`inputs.runner`; Forgejo 15's job parser evaluates `runs-on` with `vars` + `inputs`, `github.event.inputs` is empty there). - First-ever jobs on `namespace-profile-windows-large` never got a runner: WinRM/ssh through the nsc port-forward reset for the whole retry budget, the autoscaler re-created an 8x16 instance every ~5 min. Recorded in the runbook; fix belongs in forgejo-nsc (chip spawned). `KEYSTORE_WINDOWS_NATIVE_RUNNER` stays unset (VM default). Not deployed to the forge in this PR (KSE-0182 OpenBao changes in flight — founder check first); the live lane keeps working with the deployed launcher, the module changes activate on the next `deploy-forge-host` switch.
The libvirt lane (key-store-winrunner) is the active Windows release lane
again since 2026-08-16 (dispatch unit); this hardens it as the key.store-owned
path while Namespace Windows (never yet run) is proven in parallel:

- run-ephemeral-libvirt-runner.sh: --cache-disk (per-slot persistent qcow2,
  flock'd, thin-created, second SATA disk; guest formats NTFS KEYSTORE_CACHE
  once and exports KEYSTORE_WINDOWS_CACHE_ROOT), guest facts (swift version,
  evaluation-license clock, cache state) and the guest transcript tail copied
  out of the overlay with virt-cat after the VM halts.
- native-build-namespace.ps1: bare git mirror + persistent swiftc build root
  on the cache root (token never persisted, output dirs cleared per job),
  Release-binary smoke instead of a Debug rebuild, optional pinned winget
  Swift.Toolchain version; timing lines.
- winrunner-dispatch.py --cache-disk-dir; module options windowsVmRunner
  .cacheDisk / .health (oneshot + timer running check-local-runner-status.sh);
  check script: qemu-img -U, admin-password sidecar, eval clock from the
  newest launch log (warn 30 d / fail 7 d), stale run dirs; forge enables both.
- Build: Windows / Runner: Windows WIF Smoke take a runner input
  (github.event.inputs.runner) so namespace-profile-windows-* can be probed
  without touching the release job; release/diagnostics print swift version,
  cache root and eval_days_left (::warning under 30 d).
- docs/windows-builds.md + KSE-0186 D5 updated.
A forge switch at 2026-08-17 03:50Z restarted forgejo.service, its start
briefly failed, and the dispatch unit's start job died with result
'dependency' -- Restart=always does not cover a failed start job, so the
lane sat inactive with two jobs waiting until started by hand.
docs(windows-builds): record the 2026-08-17 measurements (cache disk timings) and the Namespace Windows probe result (WinRM/ssh reset, autoscaler retry burn)
Some checks failed
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Has been skipped
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 3s
Release: If Needed / Check (Release Needed) (push) Successful in 8s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 55s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 58s
Deploy: API / Deploy (API) (push) Successful in 2m54s
Deploy: Web / Deploy (Web) (push) Failing after 4m39s
d23babf608
Sign in to join this conversation.
No labels
No milestone
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
key-store/key.store!132
No description provided.