feat: complete v1.3.0 — doctor diagnostics, --backend flag, conformance tests#111
Merged
Shreyas582 merged 1 commit intomainfrom Apr 5, 2026
Merged
feat: complete v1.3.0 — doctor diagnostics, --backend flag, conformance tests#111Shreyas582 merged 1 commit intomainfrom
Shreyas582 merged 1 commit intomainfrom
Conversation
…ce tests #52 Provider-aware doctor diagnostics: - Add ProviderRegistry::diagnose_all() returning BackendDiagnostics - Doctor output enumerates all compiled backends with availability - Doctor JSON includes backends array with per-backend diagnostics - Updated doctor-introspection schema and example #53 CLI --backend flag and auto-select strategy: - Add --backend <NAME> flag to override backend selection - Support [inference] section in TOML config (backend = 'auto'|'cpu'|etc.) - WRAITHRUN_BACKEND env var support - Auto-select picks highest-priority available backend when unspecified - Helpful error when requested backend is unavailable/unknown - Run report JSON includes selected backend name - Updated run-report schema and example #54 Integration test harness for multi-backend conformance: - backend_contract_tests! macro validates all trait methods - 9 contract tests per backend (name, priority, availability, diagnostics, sessions) - 5 registry-level tests (discover, diagnose_all, best_available, fallback) - CPU conformance suite runs on every CI leg - Vitis conformance suite runs when compiled with vitis feature Closes #52, closes #53, closes #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the final three issues for the v1.3.0 Multi-Backend Inference Abstraction milestone.
#52 Provider-aware doctor diagnostics
ProviderRegistry::diagnose_all()iterates every registered backend and returnsBackendDiagnostics(info + diagnostic entries), sorted by priority descendingwraithrun doctornow enumerates all compiled backends with availability status and per-backend diagnostic checksbackendsarray conforming to the updateddoctor-introspection.schema.jsondocs/schemas/#53 CLI
--backendflag and auto-select strategy--backend <NAME>flag added to override automatic backend selection (acceptsExecutionProviderBackend::name()values)[inference]TOML section supported withbackend = auto(default) or explicit backend nameWRAITHRUN_BACKENDenvironment variable supportbackendfield with the selected backend name#54 Integration test harness for multi-backend conformance
backend_contract_tests!macro generates 9 contract tests per backend (name, priority, availability, determinism, config_keys, diagnostics, sessions)vitisfeaturebackend_contract_tests!(name, BackendType)Test results
-D warnings)cargo fmt --all -- --checkcleanCloses #52, closes #53, closes #54