Skip to content

fix(validator): offloaded bench sweeps resolve uv on the host (#903) - #928

Merged
tensorlink-dev merged 3 commits into
mainfrom
fix/offload-uv-resolve-903
Nov 25, 2026
Merged

tensorlink-dev merged 3 commits into
mainfrom
fix/offload-uv-resolve-903

Conversation

@tensorlink-dev

@tensorlink-dev tensorlink-dev commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #903. build_bench_remote_command hard-coded ~/.local/bin/uv. A sweep host whose image puts uv elsewhere (the Lium template has /usr/local/bin/uv) failed every offloaded lane A sweep as infra_failed, while lane D's bench path, which uses shutil.which, worked on the same host.

When the caller keeps the default, the remote shell now resolves uv itself: command -v uv, else ~/.local/bin/uv. An explicit uv_bin is used as given. The command still runs --frozen against the sidecar's checked-in lock, so reports are unchanged.

One combined PR (tests + code; replaces the split #929). Tests: tests/accept/w3b6a/test_w3b6a_offload_uv_resolve.py — 3 new tests that expand the remote uv word in bash on a fake host (PATH first, ~/.local/bin/uv fallback, explicit uv_bin as given, CUDA/timeout prefix and --frozen intact). All fail on BASE with an AssertionError, pass on HEAD. PATHS: cascade/validator/eval_offload.py added to W3b6a. check-pr: MODE combined. Local: w3b6a accept + eval-offload + sweep concurrency units 79 passed.

Exposure: the offloaded lane A sweep (run_bench_via_host_many) runs only on the MAIN validator (validator_bench: sweep mode needs st["main"]; everyone else replays its signed rows). gift_rows_via_host shares the builder but the GIFT gate is off and the change only picks which uv binary runs the same frozen lock. Main-validator only, no external update.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj

tensorlink-dev and others added 2 commits November 25, 2026 01:33
build_bench_remote_command hard-coded ~/.local/bin/uv; a sweep host whose image
puts uv elsewhere (Lium template: /usr/local/bin/uv) failed every offloaded
lane A sweep as infra_failed, while the lane D bench path (shutil.which) worked.
The default now resolves on the host: `command -v uv`, else ~/.local/bin/uv.
An explicit uv_bin is used as given.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SG5aamoFze4bkhr1suMufY
@tensorlink-dev tensorlink-dev added the laned:W3b6a Lane D WP W3b6a label Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Preview Nov 25, 2026 2:00am UTC

Request Review

@tensorlink-dev tensorlink-dev added the testnet Found in a testnet rollout run label Nov 25, 2026
…d PR)

The tests now check what the remote uv word expands to in bash on a host
(PATH first, ~/.local/bin/uv fallback, explicit uv_bin as given, still
--frozen), so each fails on BASE with an assertion. PATHS:
cascade/validator/eval_offload.py rides along.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj
@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit a4600df Nov 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

laned:W3b6a Lane D WP W3b6a testnet Found in a testnet rollout run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Offloaded lane A sweeps hard-code ~/.local/bin/uv (lane D path uses which): infra_failed on hosts with uv elsewhere

1 participant