[GH-ISSUE #3438] [Benchmark] bench run stop_engine: taskkill result unchecked and wait timeout discarded, a failed engine kill is silent #1395

Closed
opened 2026-11-04 01:50:56 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @GoldenLeafBird on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3438

strata_cli/bench_standard.py at v0.2.1 (commit 90767252), stop_engine
(around lines 697-720):

if os.name == "nt":
    subprocess.run(["taskkill", "/PID", str(proc.pid), "/T", "/F"], capture_output=True, timeout=60)
...
try:
    proc.wait(30)
except subprocess.TimeoutExpired:
    pass

The taskkill return code and output are never checked and the wait timeout is
discarded, so a denied or failed kill produces no message. On my run
(2026-10-20, run id 20261020T105417Z-5b4dbf77) the engine start came up in a
state that denied the kill (Access is denied, likely an elevated or stuck
tree), and the runner reported a normal finish while two python processes kept
port 8080 until a manual elevated taskkill. Five freshly started engines on
the same machine died to the first taskkill, so the unchecked result is the
defect; my denied kill was the trigger.

Related, same artifact: the run folder's engine.log is 0 bytes by design on
this path, because the serve layer writes to the run config's own log file and
the runner's capture records nothing. Consider pointing the artifact at the
config log path, or noting in the protocol that engine.log can be empty on
Windows.

Reproduction status: one occurrence in one run. Environment: Windows 10 build
19044, source checkout at v0.2.1, RX 7900 XTX, engine 0.1.45.

Originally created by @GoldenLeafBird on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3438 `strata_cli/bench_standard.py` at v0.2.1 (commit 90767252), `stop_engine` (around lines 697-720): ```python if os.name == "nt": subprocess.run(["taskkill", "/PID", str(proc.pid), "/T", "/F"], capture_output=True, timeout=60) ... try: proc.wait(30) except subprocess.TimeoutExpired: pass ``` The taskkill return code and output are never checked and the wait timeout is discarded, so a denied or failed kill produces no message. On my run (2026-10-20, run id 20261020T105417Z-5b4dbf77) the engine start came up in a state that denied the kill (Access is denied, likely an elevated or stuck tree), and the runner reported a normal finish while two python processes kept port 8080 until a manual elevated taskkill. Five freshly started engines on the same machine died to the first taskkill, so the unchecked result is the defect; my denied kill was the trigger. Related, same artifact: the run folder's `engine.log` is 0 bytes by design on this path, because the serve layer writes to the run config's own log file and the runner's capture records nothing. Consider pointing the artifact at the config log path, or noting in the protocol that engine.log can be empty on Windows. Reproduction status: one occurrence in one run. Environment: Windows 10 build 19044, source checkout at v0.2.1, RX 7900 XTX, engine 0.1.45.
Author
Owner

@Niko1221 commented on GitHub (Oct 22, 2026):

Thanks, confirmed: stop_engine ignores taskkill's result and the wait timeout, so a failed engine stop is silent and the run reports a normal finish. We'll fix it so a failed stop is reported and the run is marked as failed.

<!-- gh-comment-id:6341527449 --> @Niko1221 commented on GitHub (Oct 22, 2026): Thanks, confirmed: stop_engine ignores taskkill's result and the wait timeout, so a failed engine stop is silent and the run reports a normal finish. We'll fix it so a failed stop is reported and the run is marked as failed.
Author
Owner

@Niko1221 commented on GitHub (Oct 24, 2026):

This is fixed in Strata 0.2.3. Please update to the latest release (in the Terminal: strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.

<!-- gh-comment-id:6383442181 --> @Niko1221 commented on GitHub (Oct 24, 2026): This is fixed in Strata 0.2.3. Please update to the latest release (in the Terminal: `strata update`; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.
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#1395
No description provided.