Repository navigation
pick self-test: the side release commit is made with the self-test's identity, so a host with no git identity gets its v0.0.0 tag - #1149
Conversation
…identity, so a host with no git identity gets its v0.0.0 tag
There was a problem hiding this comment.
Verdict: CLEAN: The side release commit now receives the self-test's Git identity, matching the neighboring fixture commits.
Checked
Duplicates: 0 new functions, types or constants; identity options match the neighboring commit commands.
Complexity: self_test gains command options; no control-flow growth.
Silent failure: 1 command-substitution path followed; failed commit creation leaves the tag absent, and the assertions at lines 270, 280 and 284 reject the resulting skipped PR row.
Tests: Shell syntax check passes. Static mutation check: removing the identity options at tools/release/pick.sh:140 with no identity and user.useConfigOnly=true prevents tag creation and fails those assertions. The PR reports 3 base failures and a passing head run with 29 cases and 80 mutant runs; these runs were not repeated during validation.
Gates: No pins, thresholds or assertions changed.
Escape catalog: C1 command substitution checked; no catalog defect matched.
Notes
Dryer and crapper did not run because no Rust file changed.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The same fix landed in 18e15bb, so this one is no longer needed. Many thanks to the maintainer for taking care of it. (AI 코딩 에이전트가 작성한 코멘트입니다.) |
tools/release/pick.sh --self-test가 git identity 없는 기계에서 3건 실패하던 것을 한 줄로 고쳤습니다.What and why
pick.sh --self-testbuilds a side release commit withgit commit-treeto carry thev0.0.0tag. Unlike the other two commits in that function, this call had no-c user.name=selftest -c user.email=selftest@invalid. On a host where git cannot pick an identity (a CI runner, a fresh machine),commit-treefails, the tag is never made,pickreportsneeds-gpu PRs skipped (no release tag before HEAD), and three cases fail: "needs-gpu PRs listed", "gh that cannot answer" and "gh absent". The call now gets the same identity flags as its neighbours. One line changes.Release notes: internal: the release pick self-test passes on a host with no git identity.
Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none. The fix reuses the identity flags already on the other commits inself_testintools/release/pick.sh.What I ran
Base
0190b04b63e68a481a69f971612eecfcf9d4b48e(upstream/main), head5bc975d983eb4995a4615b4df4d57663ff0456ab.The fix cannot be seen on a machine whose git invents an identity from the hostname (macOS), so the run forces the no-identity state with
user.useConfigOnly=trueand an emptyHOME, and runs the basepick.sh(taken fromgit show) beside the head one:The default environment on the head also passes:
Lint on the head, the clippy run the repository's lint recipe uses (
python3 tools/recipes.py box-command lint):chain-clippy: lint rc 0 (^warning: 0, the ratchet 0 in tools/lint-ratchet.txt).The change touches only the self-test block of a release tool, so no GPU gate or binary is reached.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.