Skip to content

core: strip the DwarfStar (ds4) route - HIP kernels only (#749) - #770

Merged
bong-water-water-bong merged 3 commits into
mainfrom
ds4/strip-core
Nov 1, 2026
Merged

bong-water-water-bong merged 3 commits into
mainfrom
ds4/strip-core

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Closes #749. Owner decision (2026-11-01): DwarfStar leaves the release and the core. It runs antirez's CUDA kernels through a HIP shim plus hipBLAS — not our HIP kernels — so it does not belong in an engine whose point is the HRX runtime, our HIP kernels and the NPU. HRX serves DeepSeek V4.x, GLM 5.x and Qwen3.8-Flash-Next.

Two files:

scripts/weekly.sh

  • ONEBIT_DS4 defaults to OFF (was ON) — that default is what put DwarfStar into every release build;
  • the preflight no longer fails a release build for a missing hipcc: since only the optional DwarfStar target uses it, a box without hipcc can still build a release (and the message says so: "…or build with ONEBIT_DS4=OFF (the release default)");
  • the bump-ds4/* arm stays, commented, because the fork 1bit-MONSTER/ds4 remains as the reference — it is simply no longer on the release path.

app/serve.cpp — a build without DwarfStar now says so instead of hunting for a binary:

--device ds4: this build has no DwarfStar route (built with ONEBIT_DS4=OFF). DeepSeek V4.x, GLM 5.x and
Qwen3.8-Flash-Next run on --device hrx (docs/dwarfstar.md)

and the same for a 1BP package, which used to route itself to ds4 and then fail with "no such file". With ONEBIT_DS4=ON the behaviour is unchanged, so the reference fork still builds and runs.

Verified without a GPU (the box's GPU is down this hour, so no HRX run — that proof belongs with the c20 gate): bash -n clean on weekly.sh; app/serve.cpp compiles against the c19 build's own flags, which is a no-ONEBIT_DS4_SERVER configuration, i.e. exactly the path the new #ifndef guards.

The build/packaging half of this already shipped for c19: #756 (ONEBIT_DS4-keyed packaging, catalogue without the ds4 recipe) and #736 (DS4_REBUILD/reuse knobs). Docs: #757.

PR-READY.

@bong-water-water-bong bong-water-water-bong added the enhancement New feature or request label Nov 1, 2026

@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: CHANGES

One item, one line, and it is in the same pipeline this PR edits.

scripts/weekly.sh now builds with -DONEBIT_DS4=${ONEBIT_DS4:-OFF} but never exports ONEBIT_DS4, while
scripts/package-linux.sh:133 still reads ${ONEBIT_DS4:-ON}. A plain scripts/weekly.sh run (default stages
bumps build test package release, line 38) with no ONEBIT_DS4 in the environment therefore builds a no-DS4
engine and then fails at packaging. Reproduced with the real pack_require_tools from scripts/pack-elf.sh
against a stage that has the hrx tools and no ds4/:

$ env -u ONEBIT_DS4 bash -c 'source scripts/pack-elf.sh; … if [ "${ONEBIT_DS4:-ON}" != OFF ] …'
  missing from the package: ds4/hip/ds4-server
  missing from the package: ds4/hip/ds4
  missing from the package: ds4/hip/ds4-bench

$ ONEBIT_DS4=OFF bash -c '…same…'
  (empty)

tools_bad non-empty makes package-linux.sh exit 1 ("shipped tools that cannot load"), and set -euo pipefail
aborts weekly.sh at stage_package. c19/c20 are safe only because build-candidate{19,20}.sh:161 export
ONEBIT_DS4=OFF; the scripts' own defaults are now inconsistent with each other, so the first release run that does
not export it fails at packaging instead of at configure. The comment above that check says it is "keyed on the
build's own switch, not on what happens to be on disk" — the build's switch is ONEBIT_DS4:BOOL=OFF in
$BUILD/CMakeCache.txt, which is not what the line reads.

Fix (either): export ONEBIT_DS4=${ONEBIT_DS4:-OFF} next to the other exports at the top of weekly.sh (line ~45),
so build, preflight (line 604 already :-OFF) and packaging agree; or make package-linux.sh:133 :-OFF as well, or
read the cache. The export is the one that cannot drift again.

Verified, and all of it holds:

  • bash -n scripts/weekly.sh OK. shellcheck -S warning: three warnings, all pre-existing and in untouched regions
    (lines 92, 276, 563 — the diff touches 136-148, 188-192, 597-615).
  • app/serve.cpp compiles in both configurations, with the c19 build's own flags (~/wt/zerocopy/build,
    ONEBIT_DS4:BOOL=OFF, no ONEBIT_DS4_SERVER), g++-16 -std=c++26 -Wall -Wextra: rc 0 without
    -DONEBIT_DS4_SERVER and rc 0 with it. The only warnings are two pre-existing ones in untouched code
    (serve.cpp:936 unused variable 'set_model', :1309 range-loop-construct).
  • The guard is the same one the definition site uses: CMakeLists.txt:289 defines ONEBIT_DS4_SERVER only inside
    if(ONEBIT_DS4), and serve.cpp:318 already gated built_path(ONEBIT_DS4_SERVER) on it — so a no-DS4 build has
    no route to a ds4-server path, and the new throws are the only remaining --device ds4 behaviour. CMake's own
    option(ONEBIT_DS4 … OFF) (line 277) already defaulted OFF, so this PR makes weekly.sh agree with it.
  • Preflight nesting is right: the hipcc requirement is now inside if [ "${ONEBIT_DS4:-OFF}" != OFF ] (line 604), so
    a hipcc-less box can build and package a release, and the failure a hipcc-less box now gets on a bump-ds4/* PR is
    scripts/build-ds4.sh in the bumps stage — correct, just a longer trip. The bump-ds4/* arm staying is right for
    the reference fork.
  • Docs agree with the new messages: docs/dwarfstar.md status block and docs/serve.md:372 both say the shipped
    build has no ds4 route and that DeepSeek V4.x / GLM 5.x / Qwen3.8-Flash-Next run on HRX; docs/releases.md:350
    already describes hipcc as optional. No test depends on the route (grep -rn 'device ds4\|--ds4\|ds4-server' tests/
    → nothing).
  • Not run: no engine build and no 1bit serve --device ds4 invocation. The GPU is held after the 11:13 MODE2 reset
    (no all-clear posted), so the runtime message is verified by the compiled code path, not by executing it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: CHANGES (also posted as a review at 58671592) — one line: scripts/weekly.sh builds -DONEBIT_DS4=${ONEBIT_DS4:-OFF} but never exports it, while scripts/package-linux.sh:133 still reads ${ONEBIT_DS4:-ON}, so a plain weekly.sh run builds a no-DS4 engine and then fails at stage_package with missing from the package: ds4/hip/ds4-server (three of them), exit 1 through set -e. c19/c20 only survive because the drivers export ONEBIT_DS4=OFF. Fix: export ONEBIT_DS4=${ONEBIT_DS4:-OFF} at the top of weekly.sh, or :-OFF in package-linux.sh. Everything else verified (both compile configurations, guard matches CMakeLists.txt:289, docs agree). No tprs-ready until that line lands.

bong-water-water-bong pushed a commit that referenced this pull request Nov 1, 2026
…e (review of #770)

pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF
(`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}`
and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run -
its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment
would therefore build a no-DS4 engine and then fail at packaging with

  missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench)

because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under
set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF
into the whole run; the scripts' own defaults were inconsistent with each other.

Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}`
next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and
package-linux.sh's `:-ON` now all read the same exported value).

Verified with their reproduction, both directions:
  env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed)
  ONEBIT_DS4=ON     -> cmake arg -DONEBIT_DS4=ON,  packaging still requires them (unchanged)
bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
bong-water-water-bong pushed a commit that referenced this pull request Nov 1, 2026
…e (review of #770)

pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF
(`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}`
and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run -
its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment
would therefore build a no-DS4 engine and then fail at packaging with

  missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench)

because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under
set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF
into the whole run; the scripts' own defaults were inconsistent with each other.

Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}`
next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and
package-linux.sh's `:-ON` now all read the same exported value).

Verified with their reproduction, both directions:
  env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed)
  ONEBIT_DS4=ON     -> cmake arg -DONEBIT_DS4=ON,  packaging still requires them (unchanged)
bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preparing review...

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

CHANGES addressed in 1d069a0 (rebased onto current main 7d7c46f), plus the fix for the packaging break pi-prs found in review.

The defect, in the reviewer's words and confirmed: this PR makes the build default ONEBIT_DS4 to OFF (-DONEBIT_DS4=${ONEBIT_DS4:-OFF}) while scripts/package-linux.sh:133 still read ${ONEBIT_DS4:-ON} and required the three ds4 tools of any build that did not say OFF. A plain scripts/weekly.sh run (default stages bumps build test package release) with nothing in the environment therefore built a no-DS4 engine and then died at packaging:

missing from the package: ds4/hip/ds4-server   (and ds4, ds4-bench)

because tools_bad is non-empty, package-linux.sh exits 1, and set -euo pipefail aborts stage_package. c19/c20 only escaped it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF into the whole run.

The fix is the option the review named as the one that cannot drift again: export ONEBIT_DS4=${ONEBIT_DS4:-OFF} beside the other exports at the top of scripts/weekly.sh, so the build flag, preflight's :-OFF and package-linux.sh's :-ON all read one exported value. Nothing else in the diff changed.

Verified with the reviewer's own reproduction, both directions:

env -u ONEBIT_DS4  ->  -DONEBIT_DS4=OFF , packaging requires no ds4 tools      (the bug, gone)
ONEBIT_DS4=ON      ->  -DONEBIT_DS4=ON  , packaging still requires them        (a real ds4 build, unchanged)

bash -n scripts/weekly.sh clean; tools/copyright.py --check rc 0; shellcheck -S warning shows the same three pre-existing warnings (lines 92, 276, 563) and none in the touched lines. Rebase onto 7d7c46f was conflict-free, so the strip itself (app/serve.cpp guard + the weekly.sh default/bump arm) is exactly what was reviewed.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preparing review...

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 8de6e84)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

749 - Partially compliant

Compliant requirements:

  • Stage A — c19 (config only; no code strip, reversible in one commit)
  • scripts/weekly.sh:146 - -DONEBIT_DS4=${ONEBIT_DS4:-ON} - default OFF (or drop the flag) — this is the line that puts ds4 into every release build
  • scripts/weekly.sh:600,608 - preflight hard-fails without a hipcc for DwarfStar - must not gate the release build on the ds4 toolchain
  • scripts/weekly.sh:192 - bump-ds4/*) DS4_TEST=1 guard … - arm removed with the workflow (stage B)
  • scripts/weekly.sh:48 - SUBMODULES=(hrx-system llama.cpp lemonade ds4 tokenizers) - keep the pin in the list while the submodule exists; drop with stage B
  • app/serve.cpp - default_ds4() :316-325, onebp_file() :309-314 and the auto route that sends a 1BP package to ds4 at :1628-1631, the --ds4 flag, --ssd-streaming (ds4-only, :937), the ds4 arms of the three "works on the llama.cpp devices (hrx, cpu)" guards (:1072, :1098, :1117), the argv build at :1053-1055, :1639, :2776, :2911; and app/main.cpp:18's mention. --device ds4 becomes a hard error naming hrx.
  • scripts/build-ds4.sh - delete
  • scripts/package-linux.sh:56,129, scripts/pack-elf.sh:36, os/v2/mkdebs.sh:98, os/v2/debian/1bit-engine/control:10, os/v2/README.md:62,177, os/README.md:90 (ds4:rocm container), NOTICE:108-111 (the antirez/ds4 attribution goes with the code)
  • third_party/ds4 + .gitmodules, scripts/weekly.sh:48, tools/weekly_changes.py, config/ds4-hold.config, .github/workflows/bump-ds4.yml, and the two places that test the hold (tests/bump_workflow_report_test.py:40 WORKFLOWS, :146-152 the hold assertions)
  • docs/dwarfstar.md (delete), docs/serve.md:497-498 and every --device ds4 / --ds4 row, docs/hrx.md, docs/architecture.md, docs/lemonade.md, docs/releases.md, docs/os-v3.md, README.md, context7.json:22, .pr_agent.toml:43, .github/ISSUE_TEMPLATE/bug_report.yml:45 and model_request.yml:44 (drop ds4 from the device lists)
  • Acceptance criteria:
    • the c19 build produces no ds4-server/ds4/ds4-bench (scripts/package-linux.sh's pack_require_tools does not ask for them)
    • weekly.sh preflight is green on a box with no ds4 hipcc
    • 1bit serve --device ds4 prints the removal message and exits non-zero

Non-compliant requirements:

  • CMakeLists.txt:272 - option(ONEBIT_DS4 … OFF) - already OFF — the engine default is right; nothing to change
  • scripts/weekly.sh:146 - -DONEBIT_DS4=${ONEBIT_DS4:-ON} - default OFF (or drop the flag) — this is the line that puts ds4 into every release build
  • scripts/weekly.sh:600,608 - preflight hard-fails without a hipcc for DwarfStar - must not gate the release build on the ds4 toolchain
  • scripts/weekly.sh:192 - bump-ds4/*) DS4_TEST=1 guard … - arm removed with the workflow (stage B)
  • scripts/weekly.sh:48 - SUBMODULES=(hrx-system llama.cpp lemonade ds4 tokenizers) - keep the pin in the list while the submodule exists; drop with stage B
  • app/serve.cpp - default_ds4() :316-325, onebp_file() :309-314 and the auto route that sends a 1BP package to ds4 at :1628-1631, the --ds4 flag, --ssd-streaming (ds4-only, :937), the ds4 arms of the three "works on the llama.cpp devices (hrx, cpu)" guards (:1072, :1098, :1117), the argv build at :1053-1055, :1639, :2776, :2911; and app/main.cpp:18's mention. --device ds4 becomes a hard error naming hrx.
  • scripts/build-ds4.sh - delete
  • scripts/package-linux.sh:56,129, scripts/pack-elf.sh:36, os/v2/mkdebs.sh:98, os/v2/debian/1bit-engine/control:10, os/v2/README.md:62,177, os/README.md:90 (ds4:rocm container), NOTICE:108-111 (the antirez/ds4 attribution goes with the code)
  • third_party/ds4 + .gitmodules, scripts/weekly.sh:48, tools/weekly_changes.py, config/ds4-hold.config, .github/workflows/bump-ds4.yml, and the two places that test the hold (tests/bump_workflow_report_test.py:40 WORKFLOWS, :146-152 the hold assertions)
  • docs/dwarfstar.md (delete), docs/serve.md:497-498 and every --device ds4 / --ds4 row, docs/hrx.md, docs/architecture.md, docs/lemonade.md, docs/releases.md, docs/os-v3.md, README.md, context7.json:22, .pr_agent.toml:43, .github/ISSUE_TEMPLATE/bug_report.yml:45 and model_request.yml:44 (drop ds4 from the device lists)
  • Acceptance criteria:
    • the c19 build produces no ds4-server/ds4/ds4-bench (scripts/package-linux.sh's pack_require_tools does not ask for them)
    • weekly.sh preflight is green on a box with no ds4 hipcc
    • 1bit serve --device ds4 prints the removal message and exits non-zero

Requires further human verification:

  • Stage B — after the release (the strip) - all the code and documentation related to ds4 must be removed from the codebase and all references to it must be gone.
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect error message for 1BP files

The error message for 1BP files when ONEBIT_DS4 is disabled uses a generic message that doesn't clearly indicate that the file is not supported in this build. It should be more specific about the file type and the reason for the failure.

        // DwarfStar (our fork) is the engine's 1BP reader; without it, a 1BP package has no route in this build
#ifndef ONEBIT_DS4_SERVER
        throw std::runtime_error(o.model + " is a 1BP package: this build has no DwarfStar route (ONEBIT_DS4=OFF). "
            "Use a GGUF on --device hrx instead (docs/dwarfstar.md)");
#endif
Preflight check for hipcc

The preflight check for hipcc is conditional on ONEBIT_DS4 being enabled. This is correct, but the logic could be simplified to avoid unnecessary complexity.

if [ "${ONEBIT_DS4:-OFF}" != OFF ]; then
    rocm=${ROCM_PATH:-}
    if [ -z "$rocm" ]; then
        for d in ${HRX_TOOLCHAIN:-} ${HRX_TOOLCHAIN:+"$HRX_TOOLCHAIN"/lib/python3*/site-packages/_rocm_sdk_core} /opt/rocm-therock/lib/python3*/site-packages/_rocm_sdk_devel /opt/rocm; do
            [ -x "$d/bin/hipcc" ] && { rocm=$d; break; }
        done
    fi
    [ -n "$rocm" ] && [ -x "$rocm/bin/hipcc" ] ||
        { echo "preflight: no ROCm with bin/hipcc for the DwarfStar build (scripts/build-ds4.sh): set ROCM_PATH, or build with ONEBIT_DS4=OFF (the release default)"; bad=1; }
fi ;;

@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

Confirmation at 4e9e7e38 (update-branch only — git diff --stat 1d069a04 <head> -- scripts/ docs/ is empty), build green,
and the item I filed is fixed exactly as asked:

# scripts/weekly.sh:50
export ONEBIT_DS4=${ONEBIT_DS4:-OFF}

with the preflight comment updated to match ("preflight reads ${ONEBIT_DS4:-OFF} and scripts/package-linux.sh requires the
ds4 tools only when it is not OFF"). So all three readers of that variable — the cmake -D at line 150, the hips-preflight
gate, and package-linux.sh:133's :-ON — now see one value, which was the whole defect: a plain weekly.sh run used to
build OFF and then fail its own package step with three missing from the package: ds4/hip/… lines.

Nothing else changed, so the rest of my earlier review stands: the ds4 route is removed from the shipped build with a clear
message, ONEBIT_DS4=ON still builds it for the reference fork, and the bump-ds4/* arm stays. tprs-ready applied.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026
bong-water-water-bong and others added 2 commits November 1, 2026 18:44
Owner decision 2026-11-01: the ds4 route leaves the release and the core. It runs antirez's CUDA kernels through a HIP
shim plus hipBLAS - not our HIP kernels - so it does not belong in an engine whose point is the HRX runtime, our HIP
kernels and the NPU. HRX serves DeepSeek V4.x, GLM 5.x and Qwen3.8-Flash-Next.

- scripts/weekly.sh: ONEBIT_DS4 defaults to OFF (was ON) - that default is what put DwarfStar into every release build;
  the preflight no longer fails a release build for a missing hipcc, since only the optional DwarfStar target uses it;
  the bump-ds4 arm stays, commented, for the reference fork.
- app/serve.cpp: in a build without DwarfStar, "--device ds4" and a 1BP package fail with a message that names the
  reason and the route to use, instead of looking for a ds4-server on PATH and dying with "no such file". With
  ONEBIT_DS4=ON the behaviour is unchanged.

Verified: bash -n on weekly.sh; app/serve.cpp compiles against the c19 build's own flags (a no-ds4 configuration), which
is the path the new #ifndef guards.
…e (review of #770)

pi-prs's CHANGES, and it is a real pipeline break: this PR makes the build default ONEBIT_DS4 to OFF
(`-DONEBIT_DS4=${ONEBIT_DS4:-OFF}`) while scripts/package-linux.sh still read `${ONEBIT_DS4:-ON}`
and required the three ds4 tools of any build that did not say OFF. A plain `scripts/weekly.sh` run -
its default stages are `bumps build test package release` - with no ONEBIT_DS4 in the environment
would therefore build a no-DS4 engine and then fail at packaging with

  missing from the package: ds4/hip/ds4-server (and ds4, ds4-bench)

because tools_bad is non-empty and package-linux.sh exits 1, aborting stage_package under
set -euo pipefail. c19/c20 only escape it because build-candidate{19,20}.sh export ONEBIT_DS4=OFF
into the whole run; the scripts' own defaults were inconsistent with each other.

Fix, the one pi-prs named as the one that cannot drift again: `export ONEBIT_DS4=${ONEBIT_DS4:-OFF}`
next to the other exports at the top of scripts/weekly.sh (build, preflight's `:-OFF` and
package-linux.sh's `:-ON` now all read the same exported value).

Verified with their reproduction, both directions:
  env -u ONEBIT_DS4 -> cmake arg -DONEBIT_DS4=OFF, packaging does not require the ds4 tools (fixed)
  ONEBIT_DS4=ON     -> cmake arg -DONEBIT_DS4=ON,  packaging still requires them (unchanged)
bash -n clean; shellcheck -S warning: the same three pre-existing warnings, none in the touched lines.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Rebased onto a3f64ec (main with #771 merged); PR is MERGEABLE again at b508697.

The one conflict, and how it was resolved — this is the part worth a reviewer's eye. scripts/weekly.sh's preflight: main (#771) had rewritten the DwarfStar hipcc search to look in the pinned toolchain (${HRX_TOOLCHAIN}/lib/python3*/site-packages/_rocm_sdk_core before /opt/rocm-therock/..._rocm_sdk_devel, then /opt/rocm), while this PR had wrapped that check in if [ "${ONEBIT_DS4:-OFF}" != OFF ] and relaxed the message. Resolved by keeping both: main's toolchain-aware search list stays, inside this PR's ONEBIT_DS4 guard, with the message naming the escape (… or build with ONEBIT_DS4=OFF (the release default)). Neither side's intent is lost: a box without hipcc still builds a release, and a real ONEBIT_DS4=ON build still finds the pinned toolchain before /opt.

Re-verified on the merged tree:

env -u ONEBIT_DS4 -> -DONEBIT_DS4=OFF , packaging requires ds4 tools: NO   (the packaging break stays fixed)
ONEBIT_DS4=ON     -> -DONEBIT_DS4=ON  , packaging requires ds4 tools: YES  (unchanged)
ONEBIT_DS4=OFF    -> hipcc demanded by preflight: no                       (a release box needs no hipcc)

bash -n scripts/weekly.sh clean; tools/copyright.py --check rc 0; shellcheck -S warning still the same three pre-existing warnings, none in the touched lines. Diff vs main is the strip itself: app/serve.cpp (+15/−1: the --device ds4 refusal when the build has no DwarfStar) and scripts/weekly.sh (default OFF, the export, the bump arm, the preflight change above).

@pi-prs re-verdict please — the only thing that moved since your READY is this rebase, and the merge resolution above.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 8de6e84

@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 8de6e844 after update-branch onto bac7394c (#769 merged), build green. Checked the two things that could have gone
wrong in this rebase rather than the diff shape (main now carries #771's rewrite of the same file):

scripts/weekly.sh:52   export ONEBIT_DS4=${ONEBIT_DS4:-OFF}          # my item, intact
scripts/weekly.sh:160  -DONEBIT_DS4=${ONEBIT_DS4:-OFF} …             # and the build flag still reads the same value
scripts/weekly.sh:49   # preflight reads ${ONEBIT_DS4:-OFF} and package-linux.sh requires the ds4 tools only when it is not OFF
app/serve.cpp                                                                # byte-identical to the head I reviewed

So the one-line contract survives coexisting with #771's toolchain work: a plain weekly.sh run exports OFF, the cmake -D
and the hipcc preflight read OFF, and package-linux.sh's :-ON fallback is never reached. Everything else is unchanged, so
the rest of my earlier review stands (the --device ds4 refusal message, the 1BP message, ONEBIT_DS4=ON still building the
reference fork, the bump-ds4/* arm kept). tprs-ready stays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Review effort 3/5 tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core: strip the ds4 route (DwarfStar) — antirez's CUDA kernels through a HIP shim + hipBLAS, not our HIP kernels; HRX serves those models

1 participant