Skip to content

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

Draft
elezar wants to merge 1 commit into
mainfrom
fix/preflight-uninstalled-driver
Draft

elezar wants to merge 1 commit 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.

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>
@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

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

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