mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1826] [CLOSED] serve: probe the SYCL launcher's engine binary for --tail-role-token #3703
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#3703
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/1826
Author: @Momoyeyu
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:fix/effort-position-sycl-launcher📝 Commits (1)
203f826serve: probe the SYCL launcher's engine binary for --tail-role-token (#1781)📊 Changes
2 files changed (+100 additions, -5 deletions)
View changed files
📝
serve/server.py(+20 -5)➕
serve/test_effort_position.py(+80 -0)📄 Description
Fixes #1781.
What
effort_end_args()decides--tail-role-tokensupport by greppingexe. On the SYCL portexeissycl/serve/strata-sycl.sh, a launcher that execs${STRATA_SYCL_BIN:-build-sycl-aot/strata}inside a container — the script never names the flag, so"effort_position": "end"printed the "needs engine 0.1.39" line and stayed off on every SYCL install, exactly as the reporter measured.A
#!exe now gets a second read throughSTRATA_SYCL_BIN(the config'senv, then the process environment) or the defaultbuild-sycl-aot/strata, relative to the repo two levels above the script — the same layout the launcher computes. A binary exe reads exactly as before; a missing/unreadable binary falls back to the launcher's text, so the probe still answers "unsupported" rather than crashing.What it leaves alone
exeis the engine there, so the new branch never runs.Nonewhen the flag is absent.strata-sycl.shis unchanged; this is server-side resolution of the convention it already documents.Tests
serve/test_effort_position.py(new, 6 tests): binary exe unchanged behavior; the SYCL layout via the default path and viaSTRATA_SYCL_BIN(configenvand process env); a launcher whose binary lacks the flag; an unreadable/missing binary falling back to the script;start/invalid-value handling. 6/6 pass, plustest_runconfigandtest_frontend(17 tests) unchanged.Not tested: a real SYCL container run — the probe only reads files, and the reporter's environment has the actual image; the layout mirrors the launcher's own
${STRATA_SYCL_BIN:-...}default and../..repo resolution.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.