Skip to content

fix(install): prefer a responsive docker over podman in runtime auto-detection - #1306

Merged
c-vigo merged 2 commits into
devfrom
bugfix/1305-runtime-detection-docker-first
Jul 30, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/1305-runtime-detection-docker-first

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #1305 — the first live devkit-upgrade dispatch (smoke-test run 30543470753) proved the whole App identity path (fail-fast, mint, adoption issue opened by app/vigos-devkit-upgrade) and then died in install.sh: runtime auto-detection picked the runner's preinstalled podman 5.8.4, whose stale system crun rejects podman ≥ 5 OCI configs (crun: unknown version specified) — the #1299 regression on the consumer side, where devkit's own setup-env crun pin doesn't apply.

  • detect_runtime() now prefers docker when its daemon responds (docker info), falling back to podman. Podman-only hosts (vigOS machines) are unchanged; a both-present host with a dead docker daemon still gets podman; explicit --docker/--podman keep overriding.
  • The devkit-upgrade.yml template passes --docker explicitly (the runner's first-class runtime; self-documenting).

Delivery property: consumers fetch install.sh from main, so the detection fix heals every existing scaffold at the next promote with no re-scaffold; the next train's adoption dispatch doubles as the live proof of the workflow's remaining push/PR legs.

Verification

TDD: stub-based bats (docker+podman on PATH → docker; dead docker daemon → podman) committed RED at 4885de4, fix turns them GREEN; full install.bats 117 ok; template tests 15 passed; full pre-commit suite green.

Refs: #1305

c-vigo added 2 commits July 30, 2026 12:45
…detection

With both runtimes on PATH (GitHub ubuntu-latest), the preinstalled podman
can pair with a stale system crun that rejects podman >= 5's OCI configs
("crun: unknown version specified") -- the #1299 runner regression on the
consumer side, where devkit's setup-env crun pin does not apply. First live
devkit-upgrade dispatch died at the install step on exactly this. Auto-detect
now prefers docker when its daemon responds and falls back to podman
(podman-only hosts unchanged; dead docker daemon still yields podman);
--docker/--podman still override. The devkit-upgrade template passes --docker
explicitly. Consumers curl install.sh from main, so the detection fix heals
all existing scaffolds at the next promote without re-scaffold.

Refs: #1305
@c-vigo
c-vigo merged commit bbc1454 into dev Jul 30, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1305-runtime-detection-docker-first branch July 30, 2026 13:04
c-vigo added a commit that referenced this pull request Jul 30, 2026
…1307)

## Summary

Restart of the 1.5.0 finalization (maintainer-approved): the first live
`devkit-upgrade` dispatch exposed #1305 (runtime auto-detection picks
the runner's broken podman → `crun: unknown version specified` at the
install step). Since nothing consumed the final (draft release deleted,
tag deleted, `latest`/`main`/promote untouched), the fix ships **within
1.5.0** instead of a same-day 1.5.1.

- Merge `dev` (PR #1306: docker-first daemon-probed detection +
`--docker` in the upgrade template) into `release/1.5.0` — clean merge,
App-era template keeps all #1302/#1304 content plus the new flag.
- `prepare-changelog reset-version` restores the `- TBD` heading
(finalize will re-stamp).
- #1305 changelog entry added to the frozen 1.5.0 section (was missed in
#1306 — dev's Unreleased stays empty since the fix ships here).

Precedent: 1.4.0 unfreeze (PR #1215). After merge: rc3, focused
revalidation (delta is #1305 only), re-approve, re-finalize.

Refs: #1305
@c-vigo c-vigo mentioned this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant