Repository navigation
tools/lock-back.sh: do nothing under BLOOMERY_BOX_LOCAL=1 - #804
Merged
juliankang4 merged 1 commit intoOct 25, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Verdict: CLEAN: Local lock synchronization exits before side effects, and the remote path remains unchanged.
Checked
- Duplicates: 0 new definitions. No existing lock-back local-mode test found. The two assertions cover exit status and network avoidance.
- Complexity: no Rust functions changed; the shell change adds one early exit.
- Silent failure: 1 default followed. Unset, empty and zero retain remote mode; local mode needs no lock copy.
- Tests: both scripts pass
bash -n. Inspection shows that deleting the guard at tools/lock-back.sh:12 reaches the SSH stub, whose empty output fails the success assertion and whose log fails the network assertion. Each invocation resets the SSH/rsync logs. The PR reports both assertions failed before the fix. - Gates: no existing gate, pin or case changed.
- Escape catalog: C1–C4 do not match the added lines; the harness captures the command's exit code directly.
Notes
Dryer and crapper did not run because no Rust file changed. Validation reran syntax checks; it did not run the full card-tests suite or execute mutations. No GPU gate evidence was supplied; this change touches only tools.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
Collaborator
Author
|
The review is done and the contribution check passed, so I'm merging this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BLOOMERY_BOX_LOCAL=1 일 때 tools/lock-back.sh가 ssh를 시도하다 실패하던 문제를 고쳐, 로컬 모드에서
just check가 정상 종료되게 합니다.What and why
tools/box.shhas a local mode: withBLOOMERY_BOX_LOCAL=1it runs cargo in the current tree instead of on a remote box.tools/lock-back.sh, whichjust checkcalls last to bring the box's refreshedCargo.lockback, did not know about that mode. It still tried to reach the remote host, so a localjust checkended withssh: Could not resolve hostname wsand exit code 255.lock-back.shnow exits 0 at once whenBLOOMERY_BOX_LOCAL=1. In local mode cargo ran in this tree, so there is no remote lock to bring back. It uses the same${BLOOMERY_BOX_LOCAL:-0}test asbox.sh. The remote path has no changed line.Release notes: internal:
just checkno longer fails underBLOOMERY_BOX_LOCAL=1because the lock-back step skips the remote copy it does not need.Code shape
BLOOMERY_BOX_LOCALvariable thatbox.shreads and adds no new logic.cargo fmtandcargo clippyare clean on what I touched. This change touches only two shell scripts and no Rust, so I did not run them.Duplication found or removed (
path:line), or "none": none.What I ran
The tested head is
9c6519a2a4834c83f21e8c1b1a06162ea51b1eac, based on0ccbb7b00938483bb968fba064c1c2d2d095e072. The card-tests suite already has a local-mode block (it runs only on Linux when/root/bloomery-cpu.lockis absent). I added two regression checks there:lock-back.shsucceeds in local mode, and it reaches no ssh.lock-back.shrestored in the tree, both new checks failed: one with "rc 1" and an empty lock, one with "ssh or rsync ran". With the fix, both pass and the suite shows no other failure.BLOOMERY_BOX_LOCAL=1gavessh: Could not resolve hostname wsand exit code 255. The new script exits 0.BLOOMERY_BOX_LOCAL=1 just checkprintedFinishedand ended withCHECK rc=0.lock-back.sh,box.shorcheck. I did not search withgh; the check was against the currentupstream/main.I did not run any
just gate-*command, because the change touches no GPU path. The checks ran on an RTX 5090 host with driver 595.99.02. I have no CUDA version line saved for that run, so I do not list one.Hardware (if the change is for a machine)
Not a machine-specific change. The checks above ran on one RTX 5090 host (driver 595.99.02).
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.