Skip to content

tests: route tests expect HRX0 in an HRX build (#270) - #274

Merged
bong-water-water-bong merged 1 commit into
mainfrom
fix-hrx-route-tests
Oct 1, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
fix-hrx-route-tests

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

#270 made HRX the --device auto GPU route in builds that have HRX. Four route tests still expected Vulkan0. CI has no HRX, so they kept passing there, but they fail on an HRX build, which is what the Sunday release builds and tests.

The 2026-10-01 weekly rehearsal stopped at ctest with these four failing:

  • hadamard_route
  • prism_route
  • long_route
  • laya_gguf_route

Change

Each test now reads the build's CMake cache the same way device_route.sh does: it expects HRX0 when ONEBIT_HRX=ON and Vulkan0 otherwise.

In laya_gguf_route, the test policy's vulkan rows fall back to hrx, because hrx is the first Laya candidate in an HRX build. The test now says so in a comment.

Only tests change; serve's behaviour is unchanged.

Tested

  • All four pass against the rehearsal's HRX build on Strix Halo (~/.cache/1bit-weekly/build/1bit).
  • CI covers the build without HRX, where the expectation is still Vulkan0.

🤖 Generated with Claude Code

#270 made HRX the --device auto GPU route in builds with HRX, but four
route tests still expected Vulkan0. They pass in CI (no HRX) and fail on
an HRX build, which is what the Sunday release builds and tests: the
2026-10-01 weekly rehearsal stopped at ctest with hadamard_route,
prism_route, long_route and laya_gguf_route failing.

Each test now reads the build's CMake cache the way device_route.sh does:
HRX0 with ONEBIT_HRX=ON, Vulkan0 without. In laya_gguf_route the test
policy's vulkan rows fall back to hrx, the first candidate of an HRX
build. All four pass against the rehearsal's HRX build on Strix Halo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

270 - Partially compliant

Compliant requirements:

  • Tests updated to expect HRX0 when ONEBIT_HRX=ON and Vulkan0 otherwise
  • Laya policy updated to reflect new routing behavior

Non-compliant requirements:

  • Windows build changes not reviewed in this diff
  • ONNX/WebGPU removal not reviewed in this diff

Requires further human verification:

  • Windows build behavior verification
  • ONNX/WebGPU build removal verification
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Test Expectation Update

The test now correctly checks for the GPU route based on the build configuration, expecting HRX0 when ONEBIT_HRX=ON and Vulkan0 otherwise. This ensures tests pass on both HRX and non-HRX builds.

# --device auto's GPU route: HRX0 in a build with HRX, Vulkan0 in one without, like CI's (#270)
gpu=Vulkan0
if grep -q "^ONEBIT_HRX:BOOL=ON" "$(dirname "$bin")/CMakeCache.txt" 2>/dev/null; then gpu=HRX0; fi
gpu_lc=$(echo "$gpu" | sed 's/0$//' | tr 'A-Z' 'a-z')
Laya Route Test Update

The test policy comment correctly reflects that short requests fall back to HRX in HRX builds, since Vulkan is not a candidate. The test now checks for the correct device route based on build configuration.

# short -> vulkan; an HRX build has no Vulkan candidate, so short falls back to hrx). It checks that
Long Route Test Update

The test now dynamically checks for the correct GPU route based on build configuration, expecting HRX0 when ONEBIT_HRX=ON and Vulkan0 otherwise. This ensures tests pass on both HRX and non-HRX builds.

# --device auto's GPU route: HRX0 in a build with HRX, Vulkan0 in one without, like CI's (#270)
gpu=Vulkan0
if grep -q "^ONEBIT_HRX:BOOL=ON" "$(dirname "$bin")/CMakeCache.txt" 2>/dev/null; then gpu=HRX0; fi
gpu_lc=$(echo "$gpu" | sed 's/0$//' | tr 'A-Z' 'a-z')
Prism Route Test Update

The test now correctly checks for the GPU route based on the build configuration, expecting HRX0 when ONEBIT_HRX=ON and Vulkan0 otherwise. This ensures tests pass on both HRX and non-HRX builds.

# --device auto's GPU route: HRX0 in a build with HRX, Vulkan0 in one without, like CI's (#270)
gpu=Vulkan0
if grep -q "^ONEBIT_HRX:BOOL=ON" "$(dirname "$bin")/CMakeCache.txt" 2>/dev/null; then gpu=HRX0; fi
gpu_lc=$(echo "$gpu" | sed 's/0$//' | tr 'A-Z' 'a-z')

@bong-water-water-bong
bong-water-water-bong merged commit 2361112 into main Oct 1, 2026
9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix-hrx-route-tests branch October 1, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant