mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4719] [Benchmark] a component: engine reference reads the installed engine's build runtime #5149
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4719
Author: @coryjett
Created: 10/30/2026
Status: 🔄 Open
Base:
main← Head:fix-bench-component-runtime📝 Commits (1)
7481d4cbench: a component: engine reference reads the installed engine's build runtime (#4491)📊 Changes
3 files changed (+31 additions, -3 deletions)
View changed files
📝
strata_cli/bench_facts.py(+11 -2)📝
strata_cli/bench_standard.py(+3 -1)📝
tests/terminal/test_bench_standard.py(+17 -0)📄 Description
Problem and result
Fixes #4491. For a profile made by setup,
strata bench runrecorded nvidia-smi's CUDA version as the engine'sruntime. Setup writes the engine as
"exe": "component:strata-engine", soengine_build_runtimelooked forengine-component.jsonbeside that literal string, found nothing, andsoftware()fell back to the driver's"CUDA Version", which its own comment says is only the newest runtime the driver supports.
After: the reference is resolved to the installed engine first, and the runtime comes from that engine's
manifest (
build_id ...+cuda13.0). The driver's ceiling is listed next to it ascuda-driver-supports,which is what a path-named engine already produced.
Related discussion
#4491
Approach
bench_facts.engine_build_runtime(exe, cfg=None)resolves acomponent:reference throughengine_component.expand(exe, cfg, full=False): the quick check the listings use, not the per-file hashing astart does.
bench_standard.runpasses the profile's config so itsbackendis honoured. A missing or brokenengine package (
EngineMissing,ComponentProblem,OSError) still answers None, as before.Validation
Passed:
python3.12 -m unittest tests.terminal.test_bench_standard tests.terminal.test_bench: Ran 94 tests in64.587s, OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch
(main
870aedd9+ this commit).test_a_component_reference_reads_the_installed_engines_runtimeagainst main'sbench_facts.py(production file restored, test kept): FAILED (errors=1).
engine_build_runtime("component:strata-engine", {"backend": "cuda"})answers{"name": "cuda", "version": "13.0"}, matching the manifest'sbuild_ida42cc3d7df70+cuda13.0.Failed:
Not run:
bench runwith this branch. On this machine the driver's ceiling is also 13.0, so the runtimeversion in results.json would not change, only its source and the added
cuda-driver-supportsentry.Limits
bench report.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.