Skip to content

ci: run hrx-build on the strixhalo-bench runner, not the pr-agent one - #1299

Merged
bong-water-water-bong merged 2 commits into
mainfrom
ci/hrx-build-bench
Nov 6, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
ci/hrx-build-bench

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #1077

What

#1288 added hrx_build (engine built with -DONEBIT_HRX=ON, which builds llama_hrx) on [self-hosted, strixhalo, pr-agent]. While a cold build held that runner, every PR-Agent review queued behind it: at 21:24Z there were 33 queued pr-agent runs and 4 more hrx-build runs on strixhalo-engine, with strixhalo-bench online and idle. Owner decision (2026-11-06): move it to bench.

  • runs-on: [self-hosted, strixhalo, bench].
  • The tree moves to ~/.cache/hrx-build/bench. Until open PR branches update from main they still run the old file on strixhalo-engine, so for a while both runners can build at once, and each needs its own tree.
  • Everything else is unchanged: same-repo PRs only, contents: read, the SHA-pinned checkout, persist-credentials: false, the per-PR concurrency group, timeout-minutes: 120, thermal-run.sh, no device claim. Docs: docs/hw-gate.md ("The HRX build check", Where).

Proof

Red (#1289, on the #1288 workflow): the llama.cpp gitlink points at fork commit a9f0925f, which is pin 32559003 plus a static_assert(false) in ggml-hrx/host-weight-placement.cpp. Run 42285585021 (runner strixhalo-engine, 21:22:32Z to 21:25:59Z) failed:

[59/449] Building CXX object ggml/src/ggml-hrx/CMakeFiles/ggml-hrx.dir/host-weight-placement.cpp.o
FAILED: [code=1] ggml/src/ggml-hrx/CMakeFiles/ggml-hrx.dir/host-weight-placement.cpp.o
.../third_party/llama.cpp/ggml/src/ggml-hrx/host-weight-placement.cpp:132:15: error: static assertion failed: engine#1077 deliberately broken HRX build
FAILED: [code=1] llama_hrx-prefix/src/llama_hrx-stamp/llama_hrx-build
##[error]Process completed with exit code 1.

Green on bench (this PR, head 7c581161): run 42301043628, runner_name=strixhalo-bench, 21:58:46Z to 22:11:36Z, success. It was a cold tree, so the build step took 11m42s (configure 32 s).

[161/449] Creating library symlink bin/libggml-hrx.so.0 bin/libggml-hrx.so
[448/449] Linking CXX executable bin/llama-server
[52/52] Linking CXX executable 1bit
/home/bcloud/.cache/hrx-build/bench/hrx/llama/bin/libggml-hrx.so.0.18.0

Red on bench (#1289, head e02270b9 = this PR + the broken gitlink): run 42301085861, runner_name=strixhalo-bench, 22:11:38Z to 22:11:53Z, failure. The tree was warm from the green run, so only the broken file recompiled:

FAILED: [code=1] ggml/src/ggml-hrx/CMakeFiles/ggml-hrx.dir/host-weight-placement.cpp.o
.../actions-runner-bench/_work/engine/engine/third_party/llama.cpp/ggml/src/ggml-hrx/host-weight-placement.cpp:132:15: error: static assertion failed: engine#1077 deliberately broken HRX build
FAILED: [code=1] llama_hrx-prefix/src/llama_hrx-stamp/llama_hrx-build /home/bcloud/.cache/hrx-build/bench/llama_hrx-prefix/src/llama_hrx-stamp/llama_hrx-build
##[error]Process completed with exit code 1.

pr-agent kept moving: pr_agent jobs on strixhalo-engine started at 22:00:23Z, 22:02:16Z, 22:02:53Z and 22:08:06Z, all inside the bench build window (21:58:46Z to 22:11:36Z). The queued pr-agent count went from 33 (21:24Z) to 8 (22:1xZ). Two of those jobs concluded failure; that is PR-Agent's own result on those PRs, not this workflow.

🤖 Generated with Claude Code

A cold hrx_build held strixhalo-engine while 33 pr-agent reviews queued
behind it (engine#1077). Owner 2026-11-06: move it to bench. The bench job
gets its own tree (~/.cache/hrx-build/bench) so it never shares one with a
run from a branch that still carries the old runs-on. Docs: docs/hw-gate.md.

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

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 31e4b41)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

1077 - Partially compliant

Compliant requirements:

  • The HRX backend is now compiled by a CI job at PR time
  • The hrx-build job now runs on the strixhalo-bench runner
  • The build tree persists under ~/.cache/hrx-build/bench
  • Documentation has been updated to reflect the new runner and build path

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Runner Change

The hrx-build job now runs on the strixhalo-bench runner instead of pr-agent. This prevents queuing of PR-Agent reviews during cold builds, which was the main issue described in the ticket. The change is correctly implemented with the appropriate runner specification.

runs-on: [self-hosted, strixhalo, bench]
Build Path Update

The build tree now persists under ~/.cache/hrx-build/bench instead of ~/.cache/hrx-build/engine. This ensures that each runner has its own build directory, preventing conflicts between concurrent builds on different runners.

echo "HRX_BUILD=$HOME/.cache/hrx-build/bench" >> "$GITHUB_ENV"
Documentation Update

The documentation has been updated to reflect that the HRX build now runs on the strixhalo-bench runner, with the build tree persisting under ~/.cache/hrx-build/bench. This aligns with the implementation changes in the workflow file.

- **Where.** On the box's bench runner (`strixhalo-bench`, `[self-hosted, strixhalo, bench]`), with TheRock at
  `/opt/rocm-therock`, under `~/lb/thermal-run.sh`. That is not the gate's pr-agent runner, which a cold build would hold
  while every PR-Agent review queued behind it. It takes no GPU token and no NPU lock. Fork PRs never run it. It costs
  no GitHub Actions minutes. The token is read-only, and the build tree persists in `~/.cache/hrx-build/bench` on the
  box, so a later run rebuilds only what changed.
✅ Resolved findings

.github/workflows/hrx-build.yml:60

Runner Change

The hrx-build job now runs on the strixhalo-bench runner instead of pr-agent. This change prevents queuing of PR-Agent reviews during cold builds, which was the main issue described in the ticket. The change is correctly implemented with the appropriate runner specification.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY at 7c58116169ac1fea6448d8045d6c160be7d6584a. A runner move with nothing else changed, and this PR's own run proves the move.

Checked

  • Diff: .github/workflows/hrx-build.yml (+8/−5: runs-on, the HRX_BUILD path, the header comment) and docs/hw-gate.md (+5/−4, the Where bullet). Same-repo if:, permissions, the SHA-pinned checkout, persist-credentials: false, concurrency, timeout and thermal-run.sh are untouched in the diff.
  • The label resolves: gh api …/actions/runners → strixhalo-bench online [self-hosted,Linux,X64,strixhalo,bench]. /opt/rocm-therock is present on the box.
  • Green on bench, measured: run 42301043628 (hrx_build, head 7c581161) logs Runner name: 'strixhalo-bench', 21:58:46Z → 22:11:36Z, success, [52/52] Linking CXX executable 1bit, artifacts under /home/bcloud/.cache/hrx-build/bench/hrx/llama/bin/ (llama-server, libggml-hrx.so.0.18.0). So the separate tree is in use.
  • PR-Agent flowing: of the pr-agent runs created since 21:58Z, 8 completed, 1 is in progress and 3 are queued while this build held bench. Before the move, 33 queued behind a build.

Not blocking, but fill in the body: the "Green on bench, red on bench, pr-agent flowing" line still reads in progress. Paste the run above as the green row. The red row can cite #1289's run 42285585021: the job steps are byte-identical apart from the label and path, so a static_assert fails the same build on either runner. If you want the red row on bench itself, a workflow_dispatch of the #1289 branch would show it.

Fixes #1077 is fair: #1288 added the PR-time HRX compile, and this keeps it without blocking the review runner.

@bong-water-water-bong
bong-water-water-bong marked this pull request as ready for review November 6, 2026 22:13
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

#1299 ready for review at 7c581161. All checks pass: build, hrx_build (on strixhalo-bench), pr_agent, Analyze/CodeQL; hw_gate skipping (label-only). Green, red and pr-agent proof is in the body. #1288 (the original job, merged at 20:53Z before its proof was posted) is the base this moves.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 31e4b41

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY at 31e4b41c9b5d780ba85fd1efa92b659a4fcd9f4e. Main merges only since my READY at 7c581161: identical patch-id (4a3625af9ec0) and no non-merge commit of its own. The bench-runner proof (run 42301043628, green on strixhalo-bench) and the review at 7c581161 stand.

@bong-water-water-bong
bong-water-water-bong merged commit 0438d44 into main Nov 6, 2026
10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the ci/hrx-build-bench branch November 6, 2026 22:23
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.

CI: the HRX backend is compiled by no job at PR time - hw-gate is skipped on every PR, including both pin bumps

1 participant