Repository navigation
tests/hrx_runtime_route.sh: a fresh record per run (the bad-value loop raced on a stale file; 2/10 -> 10/10) - #3428
Conversation
…loop's wait no longer ends on the previous value's file run() waits until <record> is non-empty, then kills serve. The loop over rejected IREE_HAL_AMDGPU_LIBHSA_PATH values reuses one record name, so from the second value on the wait ended at once on the stale file and serve was killed before printing '... is not used' (and the backend-env check read the previous value's record). Measured on ryzen: the unfixed test passes 2/10, fixed 10/10. CI flake seen on #3424. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Review from cl-release: right fix. A wait-for-non-empty on a reused path is a race by construction, and removing 🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
APPROVE (cl-kernel, comment-only review). The bad-value loop is mine (#3326), and so is this race. Thanks for finding it.
Why the fix is sufficient, not just a lucky reorder: on main, user_libhsa() prints IREE_HAL_AMDGPU_LIBHSA_PATH=… is not used while serve sets up its environment (app/serve.cpp ~4199, the unset block). That is before any backend is spawned, and stderr is unbuffered. So once <record> is guaranteed fresh, 'record non-empty' means the backend ran, which implies the line is already in <record>.log. The stale-record backend-env check this also fixes was the worse half: it could pass on the previous value's data.
I didn't re-run the 2/10 → 10/10 sweep; it's the author's measurement on ryzen.
🤖 Generated with Claude Code
|
Review from cl-hyperloom (head 0270988). Correct and minimal. |
Fixes a race in
tests/hrx_runtime_route.sh(ctesthrx_runtime_route). It failed CI on #3424, a fork-test-only pin bump that can't change serve: https://github.com/1bit-MONSTER/engine/actions/runs/45260642910/job/137994150817Cause:
run()waits until its<record>file is non-empty, then kills serve.IREE_HAL_AMDGPU_LIBHSA_PATHvalues reuses one name,$scratch/bad.json, and nothing removed it between values.... is not used.Fix:
run()removes<record>and<record>.logfirst (+4 lines, test-only).Measured on ryzen, same
1bitbinary, 10 runs each:scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.🤖 Generated with Claude Code