Repository navigation
ci(npu): never clean up the whole runner, and fail the repro when a Lemonade can't start - #6655
Conversation
…emonade can't start The cleanup step matched processes by the repro's work folder, but that folder is only set after both checkouts. If a checkout failed, the always-run cleanup searched with an empty pattern, which matches every process the runner user owns. The work folder is now set first and the cleanup does nothing without it. A Lemonade version that can't start (bad tag, missing asset) now exits 2 as the script documents, so the job goes red instead of reporting a failed cell.
|
Verdict: Approve This fixes two problems in the NPU repro workflow. Cleanup could kill every process on the shared runner, and a Lemonade version that couldn't start showed green. Both fixes are correct and small. The work-folder variable is now set before any step can fail, cleanup exits early when it's empty, and a version that can't start now returns exit 2, which the workflow already treats as a failed job. Real-world evidenceN/A: this is a CI workflow and a test-only repro script, with no user-facing CLI, API, MCP or UI surface. The verdict rests on static review. I couldn't re-run the new test here because pytest isn't installed on this runner, so the author's local "7 passed" and the PR's CI are the test evidence. 🔍 Technical detailsIssues found: none blocking. Checked
Strengths
|
Skill audit
✅ All audited skills cleared the tier they claim. Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the |
|
Verdict: Request changes 🟡 The Strix Halo commit also rewrites about 100 unrelated files under 🔍 Technical details
|
The NPU repro workflow from #6651 could kill every process on the shared Strix Halo runner, including the runner agent itself: its always-run cleanup searched for its work folder before that folder was set, so a failed checkout made the search match everything. The work folder is now set before anything else, and cleanup skips when it isn't set. A Lemonade version that can't start now fails the job (exit 2, as the script already documented) instead of showing green.
Test plan
pytest tests/unit/test_repro_npu_embedded.py(7 passed, including a new test for the exit-2 case)