[PR #4719] [Benchmark] a component: engine reference reads the installed engine's build runtime #5149

Open
opened 2026-11-07 16:33:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 7481d4c bench: 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 run recorded nvidia-smi's CUDA version as the engine's
runtime. Setup writes the engine as "exe": "component:strata-engine", so engine_build_runtime looked for
engine-component.json beside that literal string, found nothing, and software() 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 as cuda-driver-supports,
which is what a path-named engine already produced.

#4491

Approach

bench_facts.engine_build_runtime(exe, cfg=None) resolves a component: reference through
engine_component.expand(exe, cfg, full=False): the quick check the listings use, not the per-file hashing a
start does. bench_standard.run passes the profile's config so its backend is honoured. A missing or broken
engine 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 in
    64.587s, OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch
    (main 870aedd9 + this commit).
  • The new test_a_component_reference_reads_the_installed_engines_runtime against main's bench_facts.py
    (production file restored, test kept): FAILED (errors=1).
  • On the T630 (engine 0.1.52-linux-x86_64-cuda-cuda13 installed),
    engine_build_runtime("component:strata-engine", {"backend": "cuda"}) answers {"name": "cuda", "version": "13.0"}, matching the manifest's build_id a42cc3d7df70+cuda13.0.

Failed:

  • None observed.

Not run:

  • A full bench run with this branch. On this machine the driver's ceiling is also 13.0, so the runtime
    version in results.json would not change, only its source and the added cuda-driver-supports entry.
  • ROCm, SYCL and Windows engines.

Limits

  • Results written by an older runner are not corrected by bench report.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4719 **Author:** [@coryjett](https://github.com/coryjett) **Created:** 10/30/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-bench-component-runtime` --- ### 📝 Commits (1) - [`7481d4c`](https://github.com/Niko1221/Strata/commit/7481d4c231ebeca7c79db0cd57171b35cef91aea) bench: a component: engine reference reads the installed engine's build runtime (#4491) ### 📊 Changes **3 files changed** (+31 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `strata_cli/bench_facts.py` (+11 -2) 📝 `strata_cli/bench_standard.py` (+3 -1) 📝 `tests/terminal/test_bench_standard.py` (+17 -0) </details> ### 📄 Description ## Problem and result Fixes #4491. For a profile made by setup, `strata bench run` recorded nvidia-smi's CUDA version as the engine's runtime. Setup writes the engine as `"exe": "component:strata-engine"`, so `engine_build_runtime` looked for `engine-component.json` beside that literal string, found nothing, and `software()` 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 as `cuda-driver-supports`, which is what a path-named engine already produced. ## Related discussion #4491 ## Approach `bench_facts.engine_build_runtime(exe, cfg=None)` resolves a `component:` reference through `engine_component.expand(exe, cfg, full=False)`: the quick check the listings use, not the per-file hashing a start does. `bench_standard.run` passes the profile's config so its `backend` is honoured. A missing or broken engine 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 in 64.587s, OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch (main 870aedd9 + this commit). - The new `test_a_component_reference_reads_the_installed_engines_runtime` against main's `bench_facts.py` (production file restored, test kept): FAILED (errors=1). - On the T630 (engine 0.1.52-linux-x86_64-cuda-cuda13 installed), `engine_build_runtime("component:strata-engine", {"backend": "cuda"})` answers `{"name": "cuda", "version": "13.0"}`, matching the manifest's `build_id` `a42cc3d7df70+cuda13.0`. **Failed:** - None observed. **Not run:** - A full `bench run` with this branch. On this machine the driver's ceiling is also 13.0, so the runtime version in results.json would not change, only its source and the added `cuda-driver-supports` entry. - ROCm, SYCL and Windows engines. ## Limits - Results written by an older runner are not corrected by `bench report`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5149
No description provided.