Repository navigation
bump-hrx: give every commit object an identity (fixes #406) - #417
Conversation
scripts/bump-hrx-sync.sh defined ident() and used it on the merge and
commit paths, but the hrx-system-held branch built its intermediate
commit with a bare `git commit-tree`. GitHub runners have no
user.name/user.email, so the sync step died there with
Author identity unknown
fatal: empty ident name (for <runner@...>) not allowed
before it could move the pin, on every scheduled run (38271314132,
38412133962, 38560500801, 38728529518). `git replace --graft`, which
runs when AMD rewrites its history, creates a commit object too.
Wrap both call sites in ident() and export GIT_AUTHOR_* /
GIT_COMMITTER_* for the whole script, so a commit-creating command
added later cannot regress this.
Reproduced with no git identity (HOME=<empty dir>, DRY_RUN=1, the
current AMD/our/held pins):
before: exit 128, "Author identity unknown" at `git commit-tree`
after: exit 0, "AMD's changes outside the HRX backend are already on
our line", DRY_RUN prints the pushes it would make
The run's other complaint (HTTP 422 from merge-upstream, token without
`workflow` scope) is unchanged: HRX_BUMP_TOKEN needs Workflows
read/write on 1bit-MONSTER/llama.cpp, as the workflow header already
requires.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
) One merged fork commit: #417 drops the now-superseded "nothing registers these" paragraph from test-hrx-ops.cpp (+11/-10), the review follow-up to #416's ratchet. Test-only, like the pin before it. registry/architectures.json regenerated: one line, counts unchanged (hrx 350, npu 9); --check, --check-pins and copyright --check pass at a1f525117. This is the second bump gated by the workflow itself (engine#2759): hw-gate should start on this PR without a label, as it did on #2801. Worth noting for whoever merges: #2801 was merged on verdicts while its gate was still running, so it carries a green gate *after* the fact; the ORCH line about requiring a green hw_gate before a pin-moving PR merges is still open. Refs llama.cpp#417 Co-authored-by: bong-water-water-bong <[email protected]>
One merged fork commit: #419 adds ggml-hrx/tools/check_stale_expectations.py (+232), a device-free check of the recorded-stale expectation table, with its CMake rows — the follow-up that makes #416/#417's ratchet checkable without a GPU. The pin was moved past this lane's last bump (#2806, a1f525117 -> 8cb8fb64d came in with another lane's work), so this is a plain linear bump: 8cb8fb64d is an ancestor of ddd415f4a. registry/architectures.json regenerated: one line, counts unchanged (hrx 350, npu 9); --check, --check-pins and copyright --check pass at ddd415f4a. hw-gate should start on its own (#2759). Refs llama.cpp#419, Refs engine#2774 Co-authored-by: bong-water-water-bong <[email protected]>
The sync step of
bump-hrx(.github/workflows/bump-hrx.yml->scripts/bump-hrx-sync.sh llama) has failed on every scheduled run withGitHub runners carry no
user.name/user.email. The script already had anident()helper and used it for the merge and commit paths, but the hrx-system-held branch (which is the live path whileconfig/hrx-system-hold.confignames a commit) built its intermediate commit with a baregit commit-tree:t=$(git commit-tree "$theirs_tree" -p "$base" -m "AMD ${pin:0:12} outside the HRX backend")git replace --graft, the other commit-creating command (taken when AMD rewrites its llama.cpp history), was bare too.Fix
git commit-tree->ident commit-tree,git replace --graft->ident replace --graft.GIT_AUTHOR_*/GIT_COMMITTER_*exported for the whole script, so a commit-creating command added later cannot regress this.DRY_RUN=1still pushes nothing.Repro (no git identity,
HOME=<empty dir>)before: exit 128 at
git commit-tree(traced to that exact line). after: exit 0,AMD's changes outside the HRX backend are already on our line, plus theDRY_RUN: git push ...lines.Secondary finding (token scope)
The same run logs
gh api -X POST repos/1bit-MONSTER/llama.cpp/merge-upstreamfailing with HTTP 422: the token may not create/update.github/workflows/*.ymlwithout theworkflowscope. That refresh is a warning only. The workflow header already requires Workflows read/write on1bit-MONSTER/llama.cpp; the configuredHRX_BUMP_TOKENdoes not appear to carry it. Nothing to change in code, but the secret needs that permission for the fork'smasterto keep up with AMD.Fixes #406.