Skip to content

fix(gateway): skip uninstalled auto-detect drivers in config preflight - #6120

Open
elezar wants to merge 3 commits into
mainfrom
fix/preflight-uninstalled-driver
Open

elezar wants to merge 3 commits into
mainfrom
fix/preflight-uninstalled-driver

Conversation

@elezar

@elezar elezar commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

With compute_driver unset, config preflight failed for an auto-detect driver table whose openshell-driver-<name> binary is not installed, while runtime detection skips that driver. This makes preflight consistent without running detection probes.

  • launcher::resolve_binary returns a typed BinaryNotFound (converts to the same config error), so a missing binary is distinguishable from an invalid table.
  • New defaulted ComputeDriverFactory::is_installed; Docker, Podman and VM override it. Other factories keep working through the default.
  • The preflight candidate loop skips an uninstalled candidate with a stderr note. A present binary with an invalid table, and an explicitly selected driver with a missing binary, still fail.

Closes #6084. Relates to #5200.

Testing

  • cargo clippy -p openshell-gateway -p openshell-server --all-targets -- -D warnings passes.
  • Added config_preflight.rs tests: uninstalled candidate skipped, explicit selection fails, installed candidate with invalid table fails. Not run locally (z3 missing prevents linking); relying on CI.

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

@elezar
elezar marked this pull request as ready for review December 1, 2026 15:19
@elezar elezar added the test:e2e Requires end-to-end coverage label Dec 1, 2026
With compute_driver unset, preflight validated every auto-detectable
driver table, so a missing openshell-driver-<name> binary was fatal even
though runtime detection skips that driver as unavailable.

Resolve the binary with a typed BinaryNotFound error, add a defaulted
ComputeDriverFactory::is_installed hook, and skip an uninstalled
candidate with a note on stderr. A present binary with an invalid table,
and an explicitly selected driver with a missing binary, still fail.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
…tail

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar force-pushed the fix/preflight-uninstalled-driver branch from 6528f7b to e440ca6 Compare December 2, 2026 15:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(gateway): config preflight fails for an auto-detect driver whose binary is not installed

1 participant