tools/check_pins.py accepts a submodule pin only when the new commit contains the old
one, and a rebase rewrites the commits we carry, so every PR this workflow opened pinned
a rewritten commit and failed the "Submodule pins only move forward" step: #429 pins
5b013dc1bb75, which compare() reads as "diverged" (merge base 0aaea5a238fb), and needs
the "pin rollback" label. The Lemonade fork passes the same step because
sync-lemonade-fork.yml merges an upstream release into the fork instead of rebasing.
- Merge upstream into 1bit/main and push the merge commit, so the old tip stays an
ancestor of the new one: the pin check is satisfied and no pin is rewritten. The push
is a fast-forward, no force-with-lease.
- Keep the guards: 1bit/main must be the engine's pin; the merged tree must still carry
ds4_onebp.inc, docs/1BP.md, gguf-tools/*1bp* and the ds4.c include of ds4_onebp.inc;
and the merge must contain the old pin (git merge-base --is-ancestor, the property the
engine's check enforces) before anything is pushed.
- A conflict stops the run with the conflicting files in the error, aborts the merge and
pushes nothing. No auto-resolution.
- tools/check_pins.py is untouched, and so is the "pin rollback" bypass.
docs/dwarfstar.md and .gitmodules describe the merge.
Co-authored-by: agent <agent@local>
tools/check_pins.pyaccepts a submodule pin only when the new commit contains the old one, and a rebase rewrites the commits we carry, so every PRbump-ds4.ymlopened pinned a rewritten commit and failed theSubmodule pins only move forwardstep.#429 is exactly that:
a7f2e1eaf36c->5b013dc1bb75reads asdiverged(merge base0aaea5a238fb, ahead 10, behind 1), which is why it needs thepin rollbacklabel. The Lemonade fork passes the same step becausesync-lemonade-fork.ymlmerges an upstream release into the fork instead of rebasing.This changes
bump-ds4.ymlto do the same: merge upstream into1bit/mainand push the merge commit, which keeps the old pin an ancestor of the new one.git clonethe fork (--filter=blob:none, like the Lemonade sync),git switch 1bit/main, and keep the guard that1bit/mainis the engine's pin (... is not the engine's pin ...; reconcile them by hand).git merge --no-commit --no-ff <upstream>. A conflict stops the run with the conflicting files in the error, aborts the merge and pushes nothing; no auto-resolution.ds4_onebp.inc,docs/1BP.mdandgguf-tools/*1bp*, andds4.cmust still includeds4_onebp.inc(the same kind of post-merge checksync-lemonade-fork.ymldoes for the onebit backend). The merge must also contain the old pin (git merge-base --is-ancestor), the property the engine's own check enforces.git pushof the merge commit to1bit/main; no--force-with-lease, no rewritten pin. The old tip is still taggedds4-main-<sha12>.git log --no-merges.tools/check_pins.pyand itspin rollbackbypass are untouched.docs/dwarfstar.mdand.gitmodulesnow say merge, not rebase.#429 still needs its one-time fix by hand (the owner is doing it): the fork's
1bit/mainhas to be moved to5b013dc1bb75, and #429 merged with thepin rollbacklabel. After that,1bit/mainis the pin, the next upstream move goes through the merge path above, and no further label is needed. Until then the pin (a7f2e1eaf36c, and1bit/main) still conflicts onMakefilein this path too, so the run stops for a hand merge exactly like the rebase did - the difference is that what comes out of a hand merge is a pin that contains the old one.Validation:
Dry run of the fork step against a scratch clone of
1bit-MONSTER/ds4(all pushes stubbed, no writes to the fork): the step's shell was extracted from the workflow and run with onlygh api merge-upstreamand the twogit pushlines stubbed.1bit/main5b013dc1bb75, upstream = a commit on top offc80bd69-> merge commit whose parents are5b013dcand the upstream tip,git merge-base --is-ancestor 5b013dc HEADOK,patcheslists1BP v5 packagesonly, rc=0.ds4.oprerequisite line ->::error::antirez/ds4 <sha> does not merge cleanly into 1bit/main (Makefile); merge it by hand, rc=1, merge aborted, no outputs, nothing pushed.1bit/maina7f2e1e, upstreamfc80bd69-> same error with(Makefile).ds4_onebp.incremoved after the merge, or its include stripped fromds4.c->::error::ds4_onebp.inc is gone after the merge/::error::ds4.c no longer includes ds4_onebp.inc, rc=1.1bit/main5b013dcwith the engine pin ata7f2e1e-> the existing "not the engine's pin" error, rc=1.5b013dc1bb75->changed=false(no-op) while upstreammainisfc80bd69; pina7f2e1eaf36c->changed=true.Not run: a live scheduled run of the workflow, and the Strix Halo checks the generated bump PR asks for (GitHub's runners have no GPU).
🤖 Generated with Claude Code