Skip to content

docs: what a hand-raised pin bump must carry (branch name, derived data) - #675

Merged
bong-water-water-bong merged 2 commits into
mainfrom
1bit/docs-pin-bump-recipe
Oct 31, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
1bit/docs-pin-bump-recipe

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Both lessons come from #672, where I raised a llama.cpp pin bump by hand and hit both traps; neither was written
down, so the next person would hit them the same way. Docs only — no code, no pin.

1. The hardware gate silently does not run

hw-gate.yml's job fires when the head branch starts with bump-hrx/ or the PR carries the hw-gate label:

if: github.event_name == 'workflow_dispatch' ||
    (…head.repo.full_name == github.repository &&
     (…action != 'labeled' || label.name == 'hw-gate') &&
     (contains(labels.*.name, 'hw-gate') || startsWith(head.ref, 'bump-hrx/')))

My branch was 1bit/bump-hrx-5e6388a5, so the job reported hw_gate: skipping — which in a list of ticks reads like a
pass. The label had to be added after the fact to make it run. docs/hw-gate.md ("When it runs") now says a hand-raised
bump must use the workflow's own branch name or the label, and that skipping is not a result.

2. The data derived from the pinned backends has to move with the pin

  • registry/architectures.json is generated by tools/registry_build.py with the submodules at their pins; at
    5e6388a5a the fork maps DeepseekV41ForCausalLM → deepseek41, so the file gains a class and a pin string
    (registry_pins otherwise fails with "llama.cpp (hrx) recorded at …, pinned at …").
  • a class that starts being mapped usually has a reviewed entry saying it is not an alias
    (registry/significant.json), and --check-gaps refuses the silent map until a person records a mapped_ok reason;
  • the watcher's own expectation moves too: tests/census_watch_test.py listed that class as reviewed report-only, and
    census_watch (ctest 35) fails until it is asserted as covered instead.

docs/releases.md now carries those three bullets next to the per-bump check table, plus the branch-name rule — which
matters twice over, because scripts/weekly.sh's bumps stage also only picks up bump-* heads, so a differently
named branch is invisible to the Sunday run as well.

Not merged

Opened for the orchestrator. No build impact: two Markdown files, tools/copyright.py --check rc=0.

engine#672 is the worked example of both traps, and neither was written down.

**The gate silently does not run.** hw-gate.yml's job fires for a head branch starting with
`bump-hrx/` or for a PR carrying the `hw-gate` label. A bump raised by hand on any other branch
name ("1bit/bump-hrx-<sha>" in that PR) reads `hw_gate: skipping`, which looks like a pass in a
list of ticks; the label had to be added after the fact. docs/hw-gate.md now says so where it
lists the three triggers.

**The derived data has to move with the pin.** registry/architectures.json is generated from the
pinned backends; at the new pin DeepSeek-V4.1-Flash became mapped, which meant a reviewed entry
in registry/significant.json ('mapped_ok', or --check-gaps refuses the silent map) and the
watcher's expectation in tests/census_watch_test.py, or registry_pins and census_watch fail at
the new pin. docs/releases.md now lists that next to the per-bump checks, together with the
branch-name rule (weekly.sh's bumps stage also only picks up bump-* heads, so a differently
named branch is invisible to the Sunday run too).

Docs only; no code, no pin.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY (posted as a comment: GitHub refuses --request-changes/--approve on a PR owned by the same account). Docs-only, both lessons traced back to the code they describe, and one precision nit.

1. "The hardware gate silently does not run" — verified against hw-gate.yml on main:

60:  (github.event.action != 'labeled' || github.event.label.name == 'hw-gate') &&
61:  (contains(github.event.pull_request.labels.*.name, 'hw-gate') ||
62:   startsWith(github.event.pull_request.head.ref, 'bump-hrx/')))

so bump-hrx/ or the label, exactly as the paragraph says, and #672's own history bears it out: hw_gate: skipped on 1214c6dc7 (branch 1bit/bump-hrx-5e6388a5), then hw_gate: success on the head that merged (6a2c5aacd). The "reads like a pass in a list of ticks" line is the right lesson — it cost me a wrong answer too.

The scripts/weekly.sh half is also true and is the bigger consequence, worth keeping in the text: the bumps stage dispatches on bump-hrx/*, bump-lemonade/*, bump-laya/*, bump-ds4/* (scripts/weekly.sh:182-187) and its own header says it "verifies each open bump-* PR here", so a hand-raised bump on a differently-named branch is invisible to the Sunday run as well as to the gate.

2. "Carry the data derived from the pinned backends" — verified, and #672 is the worked example:

  • registry/architectures.json is generated: tools/registry_build.py writes it, and --check-pins refuses a moved pin until it has been re-run (that was the registry_pins failure I posted on #672; it passes on main now, rc=0, "records the committed pins").
  • registry/significant.json + mapped_ok: tools/registry_build.py:182-195 exempts a reviewed class only for a non-empty mapped_ok, and the --check-gaps message (line 203) names registry/significant.json ('mapped_ok') — exactly as written here.
  • the census expectation: #672's squash carried tests/census_watch_test.py +19/-2, and registry/significant.json shows the class going from "watch": "report" to "watch": "report", "mapped_ok": "…" with the justification (fork #156, LLM_ARCH_DEEPSEEK41, src/models/deepseek41.cpp), while architectures.json went 293 → 294 mapped. So "DeepSeek-V4.1-Flash went from reviewed report-only to mapped" is the record, not a summary of it.

One precision nit. The docs/releases.md bullet says "branch it bump-<name>/<sha> or add the hw-gate label - hw-gate.yml runs on bump-hrx/* or on that label". Two different rules are being compressed: weekly.sh accepts any bump-*, but hw-gate.yml accepts only bump-hrx/ (line 62 has no other prefix). For a non-HRX bump that sentence now reads as though bump-lemonade/<sha> would satisfy the gate. Suggest: "branch it bump-hrx/<sha> for an HRX bump (the other workflows use bump-lemonade/, bump-ds4/, …; scripts/weekly.sh matches any bump-*, but hw-gate.yml matches only bump-hrx/), or add the hw-gate label".

Nothing else to check: docs only, build and all four Analyze jobs plus CodeQL SUCCESS on this head, hw_gate skipped as expected for a docs change, no code or pin touched.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY — stands at this head (ac61d32f9), unchanged since my review posted here. The one nit (the docs/releases.md sentence that reads as if bump-lemonade/<sha> would satisfy hw-gate.yml, which only matches bump-hrx/ or the label) is a follow-up, not a blocker. Nothing further from me.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Oct 31, 2026

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY — at head ac61d32f9, the current head. Labelled tprs-ready. Evidence is in the 01:11Z review on this thread; the one nit (the bump-<name>/<sha> sentence that reads as if bump-lemonade/<sha> satisfies hw-gate.yml) is a follow-up, not a blocker.

@bong-water-water-bong
bong-water-water-bong merged commit a425c1f into main Oct 31, 2026
7 of 8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/docs-pin-bump-recipe branch October 31, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant