fix(platform): fail-fast with legible error when docker/git missing in local-build mode (closes #529) #562

Merged
infra-runtime-be merged 3 commits from fix/529-preflight-localbuild into staging 2026-05-12 02:01:07 +00:00

3 Commits

Author SHA1 Message Date
9746e65421 chore: re-trigger sop-tier-check after staging fix (PR #636)
All checks were successful
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
sop-tier-check / tier-check (pull_request) Successful in 4s
audit-force-merge / audit (pull_request) Successful in 5s
2026-05-12 01:59:36 +00:00
1dc132b6e7 chore: re-trigger sop-tier-check after token-graceful fix [skip ci]
This empty commit triggers a sop-tier-check re-run so the workflow
picks up the fixed sop-tier-check.sh from staging (PR #636).
2026-05-12 01:57:15 +00:00
7546ee6630 fix(platform): fail-fast with legible error when docker/git missing in local-build mode (closes #529)
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 16s
sop-tier-check / tier-check (pull_request) Failing after 12s
Before: `exec: "docker": executable file not found in $PATH` — cryptic,
no recovery guidance, workspace row left in broken registered-only state.

After: preflight() runs before acquiring the per-runtime lock and
returns:

    local-build mode requires `docker` and `git` on PATH in the
    platform container; found: docker=<missing>, git=<missing>.
    Fix: either install both, OR set MOLECULE_IMAGE_REGISTRY so
    local-build mode is bypassed

Added as a seam on LocalBuildOptions so tests inject a no-op.
Two new tests cover the failure and passthrough paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 20:13:36 +00:00