Skip to content

bump-hrx: give every commit object an identity (fixes #406) - #417

Merged
bong-water-water-bong merged 1 commit into
mainfrom
fix/406-bump-hrx-ident
Oct 16, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
fix/406-bump-hrx-ident

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

The sync step of bump-hrx (.github/workflows/bump-hrx.yml -> scripts/bump-hrx-sync.sh llama) has failed on every scheduled run with

Author identity unknown
fatal: empty ident name (for <runner@...>) not allowed

GitHub runners carry no user.name/user.email. The script already had an ident() helper and used it for the merge and commit paths, but the hrx-system-held branch (which is the live path while config/hrx-system-hold.config names a commit) built its intermediate commit with a bare git 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.
  • No change to what the script does otherwise; DRY_RUN=1 still pushes nothing.

Repro (no git identity, HOME=<empty dir>)

env HOME=<empty> DRY_RUN=1 \
  AMD_LLAMA=dbe1d6e1a27ea78e432f3da84778ecb591f196a6 \
  OURS_LLAMA=0e255d774032dc6b4b06a157d2feb6be2175d3ab \
  OURS_HRX=98d05d94a9f9e405683f8aeafc037f5ace0abe4a \
  scripts/bump-hrx-sync.sh llama

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 the DRY_RUN: git push ... lines.

Secondary finding (token scope)

The same run logs gh api -X POST repos/1bit-MONSTER/llama.cpp/merge-upstream failing with HTTP 422: the token may not create/update .github/workflows/*.yml without the workflow scope. That refresh is a warning only. The workflow header already requires Workflows read/write on 1bit-MONSTER/llama.cpp; the configured HRX_BUMP_TOKEN does not appear to carry it. Nothing to change in code, but the secret needs that permission for the fork's master to keep up with AMD.

Fixes #406.

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.
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

406 - Partially compliant

Compliant requirements:

  • The bump-hrx workflow will no longer fail due to "Author identity unknown" error
  • All commit creation commands now include proper identity information
  • The fix is implemented in the bump-hrx-sync.sh script
  • The behavior of the script is unchanged otherwise, and DRY_RUN=1 still pushes nothing

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Git Identity in Commit Creation

The script previously used bare git commit-tree and git replace --graft commands without specifying author/committer identity, which caused failures on GitHub runners where no user.name/user.email is configured. The fix correctly wraps these commands with ident() and exports GIT_AUTHOR_* and GIT_COMMITTER_* environment variables to ensure identity is always provided.

remote_url() {
  if [ -n "${GH_TOKEN:-}" ]; then echo "https://x-access-token:${GH_TOKEN}@github.com/$1.git"
  else echo "https://github.com/$1.git"; fi
}
ident() { git -c user.name=hrx-bump -c [email protected] "$@"; }
# Every command that writes a commit object must carry an identity: GitHub runners (and
# `env HOME=<empty>` locally) have no user.name/user.email, so a bare `git commit-tree`,
# `git commit`, `git merge` or `git replace --graft` dies with "empty ident name"/"Author
# identity unknown" (engine#406). ident() wraps the call sites; these exports cover any
# command added later.
export GIT_AUTHOR_NAME=hrx-bump [email protected]
export GIT_COMMITTER_NAME=hrx-bump [email protected]
Incorrect Command Usage

The script previously used git replace --graft directly without identity, which would fail on GitHub runners. This has been corrected to use ident replace --graft to ensure proper identity is set.

ident replace --graft "$squash" "$equiv"
Incorrect Command Usage

The script previously used git commit-tree directly without identity, which would fail on GitHub runners. This has been corrected to use ident commit-tree to ensure proper identity is set.

t=$(ident commit-tree "$theirs_tree" -p "$base" -m "AMD ${pin:0:12} outside the HRX backend")

@bong-water-water-bong
bong-water-water-bong merged commit e653ea9 into main Oct 16, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/406-bump-hrx-ident branch October 16, 2026 01:49
bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
)

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]>
bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bump-hrx: the scheduled HRX pin sync is failing

1 participant