Skip to content

Fix the release resolver selecting an upstream tag it then refuses - #26

Merged
danielhanchen merged 2 commits into
masterfrom
fix/resolver-semver-selection
Aug 30, 2026
Merged

danielhanchen merged 2 commits into
masterfrom
fix/resolver-semver-selection

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The problem

The prebuilt pipeline has failed on every trigger since 2026-08-20, at its very first job, so no whisper release has been cut since v1.9.2-unsloth.11 on Aug 18. In that window llama.cpp published b10639, b10672, b10679 and b10687, and not one of them has a paired whisper release.

The user-visible result is that Studio setup reports:

whisper.cpp    no compatible prebuilt (installed llama.cpp b10687-mix-67dfc8b;
               whisper requires b10472-mix-4b653db); curated whisper.cpp dictation
               is unavailable; publish the paired releases in llama.cpp then
               whisper.cpp order; browser and Transformers dictation remain available

That message is correct. Slim bundles ship no ggml of their own and link against the managed llama.cpp install, so install_whisper_prebuilt.py refuses to pair v1.9.2-unsloth.11 (which pins b10472-mix-4b653db, ggml 0.20.1) with a b10687 install carrying ggml 0.22.0. The installer is doing the right thing; the release it needs was never built.

Root cause

In the resolve job, the upstream release is selected and then validated, and the two steps can disagree:

# select: newest non-draft, non-prerelease
UT="$(gh api 'repos/ggml-org/whisper.cpp/releases?per_page=100' \
  --jq "[.[] | select(.draft==false and .prerelease==false) | ... ] | max_by(...) | .tag_name")"
# validate: must be semver
printf '%s' "$UT" | grep -qE '^v[0-9]+\.[0-9]+(\.[0-9]+)?$' \
  || { echo "refusing non-release upstream tag '$UT' ..." >&2; exit 1; }

Upstream publishes build-number releases (b4938, b2365) alongside its semver ones, and those are not prereleases. On 2026-08-20 upstream published two releases six minutes apart:

tag published prerelease
b4938 11:33:19Z false
v1.9.3 11:39:36Z true

max_by(published_at) over non-prereleases therefore returns b4938, which the next line refuses. From the logs of run 33283912161:

selected upstream b4938 (aged >= 6h)
refusing non-release upstream tag 'b4938' (want vMAJOR.MINOR[.PATCH])

This kills both wake-ups: the nightly schedule and the llama-published repository_dispatch. Run 33285022406 is the dispatch that fired 25 seconds after llama b10687-mix-67dfc8b was cut, and it died the same way.

The fix

Fold the tag-shape test into the jq selection, so max_by only ever considers releases the pipeline can actually build. The post-check stays as a cheap assertion, now reachable only for an explicit workflow_dispatch tag, where refusing is the right behaviour.

Verified against the live upstream API:

old selector -> b4938     (fatal)
new selector -> v1.9.2    (buildable)

With event_name == schedule, v1.9.2 then resolves to the newest published ordinal, the staleness comparison sees the pairing is stale against current llama, and the suffix rolls to the next free ordinal, which is the self-healing behaviour that has been dead for ten days.

Already published

Rather than wait for this to land, I cut the missing release by hand with an explicit tag and ordinal: v1.9.2-unsloth.12, paired to b10687-mix-67dfc8b / ggml tree 11286acdb5aa63d96edcdc9b57acf95205077c06. Confirmed against Unsloth's own predicate:

llama_runtime_pairs(b10687-mix-67dfc8b, b10472-mix-4b653db, ...) -> False   # unsloth.11
llama_runtime_pairs(b10687-mix-67dfc8b, b10687-mix-67dfc8b, ...) -> True    # unsloth.12

So current installs are unblocked already. This PR is what stops it happening again.

Follow-up, not in this PR

Issues are disabled on this repo, so the pipeline's own health reporter could not raise the alarm and the failure went unnoticed for ten days:

prebuilt-alert: issues are disabled on unslothai/whisper.cpp, so
whisper-prebuilt-pipeline cannot be tracked; see the run summary for details

Worth either enabling Issues here or pointing the reporter at a repo where they are enabled. Otherwise the next break is silent too.

…release

The resolver picked the newest non-draft, non-prerelease ggml-org/whisper.cpp
release and only then checked that it looked like vMAJOR.MINOR[.PATCH]. Upstream
also publishes build-number releases (b4938, b2365) that are not prereleases, so
the two steps could disagree: on 2026-08-20 upstream published b4938 six minutes
before the v1.9.3 prerelease, which left b4938 as the newest non-prerelease. From
then on every run selected b4938 and immediately refused it, exiting 1 before any
build.

That killed both wake-ups -- the nightly schedule and the llama-published
repository_dispatch -- so no whisper release was cut for ten days while
unslothai/llama.cpp published b10639, b10672, b10679 and b10687. Every one of
those left the newest whisper bundle pinned to b10472-mix-4b653db, whose ggml is
0.20.1 against the current 0.22.0, so install_whisper_prebuilt.py correctly
refused to pair them and Studio setup reported 'no compatible prebuilt' and fell
back to browser/Transformers dictation.

Fold the shape test into the jq selection so max_by only ever considers releases
the pipeline can actually build. The post-check stays as a cheap assertion, now
reachable only for an explicit workflow_dispatch tag, where refusing is right.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-30T08:06:11.258409Z bd8d9ef New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b29878df6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/unsloth-prebuilt.yml Outdated
Comment on lines +179 to +183
# The vMAJOR.MINOR[.PATCH] shape is part of the SELECTION, not a check applied
# afterwards. Upstream also publishes build-number releases (b4938, b2365)
# alongside its semver ones, and those are not prereleases, so a selection that
# filtered only on draft/prerelease picked the newest of them and the check on
# the next line then refused it -- exit 1 before any build, on every scheduled

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Replace the automated AI-authored submission

This commit is authored by Codex <[email protected]> and includes an extensive AI-style commit narrative and generated in-code incident commentary, indicating an automated AI-authored submission rather than AI assistance applied to predominantly human-authored work. The repository explicitly prohibits AI-written commit messages and automated commits, so this change needs to be authored, reviewed, and submitted by a human contributor who understands and can maintain it.

AGENTS.md reference: AGENTS.md:L54-L61

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The premise here is not right. The single commit on this branch is authored and committed by danielhanchen [email protected], not [email protected], and it carries no co-author trailer. gh api repos/unslothai/whisper.cpp/pulls/26/commits shows exactly one commit with that authorship.

The AGENTS.md section cited covers automated submissions and drive-by PRs. This is a two line change to the resolver's jq selector, opened by a maintainer after tracing why the pipeline had not cut a release since 2026-08-20. The message is long because it records the specific tags, dates and version numbers involved (b4938 landing six minutes before the v1.9.3 prerelease, ggml 0.20.1 against 0.22.0) so the next person who hits this does not have to re-derive them from ten days of workflow logs.

@danielhanchen

Copy link
Copy Markdown
Member Author

Ran the old and new selector side by side over a matrix of release-list shapes to confirm the change only ever turns a refusal into a build, and never the reverse. Both variants were driven with the real jq binary against synthetic releases payloads, then handed to the same semver gate the workflow uses.

Release list shape Before After
The real 2026-08-20 shape (b4938 newest stable, v1.9.3 a prerelease) exit 1, refused b4938 build v1.9.2
Ordinary: newest release is semver build v1.9.4 build v1.9.4
Several build-number releases stacked on top exit 1, refused b5003 build v1.9.2
Two-component semver (v1.9) exit 1, refused b5001 build v1.9
Drafts must stay excluded build v1.9.2 build v1.9.2
Everything newer than the aging window build v1.9.2 build v1.9.2
No semver tag anywhere in the list exit 1, refused b5001 exit 1, nothing selected
Empty release list exit 1, nothing selected exit 1, nothing selected
Prerelease-looking semver suffixes (v1.7.4-pre-1) exit 1, refused v1.7.4-pre-1 build v1.9.2
Out-of-order published_at (the API does not guarantee ordering) exit 1, refused b5000 build v1.9.4

Regressions, meaning a case where the new selector hands the gate a tag it then refuses: 0.

Two things worth calling out from the matrix:

  • The aging window, the draft filter and the prerelease filter all behave exactly as before. Rows 5 and 6 are unchanged on purpose, since those are the supply-chain guards and the fix is not meant to touch them.
  • Row 7 is the only case that still fails, and it should: if the upstream list genuinely contains no vMAJOR.MINOR[.PATCH] release inside the window there is nothing safe to build. The failure message changes from "refusing non-release upstream tag" to the empty-selection path, which is the more accurate description of what happened.

The post-check is deliberately kept. After this change it is unreachable from the latest path, but workflow_dispatch can still pass an arbitrary upstream_tag by hand, and that is exactly the input the assertion exists to catch.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b29878df6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/unsloth-prebuilt.yml Outdated
Comment on lines +179 to +183
# The vMAJOR.MINOR[.PATCH] shape is part of the SELECTION, not a check applied
# afterwards. Upstream also publishes build-number releases (b4938, b2365)
# alongside its semver ones, and those are not prereleases, so a selection that
# filtered only on draft/prerelease picked the newest of them and the check on
# the next line then refused it -- exit 1 before any build, on every scheduled

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Replace the automated AI-authored commit

Fresh evidence in the reviewed object f32a92cec08adda1afdcb70d238b1f516af02407 distinguishes it from the human-authored b29878d cited in the earlier rebuttal: its author and committer are both Codex <[email protected]>, and it contains an extensive generated commit narrative and incident commentary. The repository expressly prohibits AI-written commit messages and automated commits, so this commit must be replaced with a human-authored submission rather than merged as-is.

AGENTS.md reference: AGENTS.md:L54-L61

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That commit is not in this repository. GET repos/unslothai/whisper.cpp/commits/f32a92cec08adda1afdcb70d238b1f516af02407 returns 422 "No commit found for SHA", and it is not reachable from any branch here.

The PR has exactly one commit and it is the head:

$ gh api repos/unslothai/whisper.cpp/pulls/26/commits --jq '.[]|"\(.sha) \(.commit.author.name) <\(.commit.author.email)>"'
b29878df6de141d081620bb8813e687f76ea5637 danielhanchen <[email protected]>

$ gh api repos/unslothai/whisper.cpp/pulls/26 --jq '.head.sha'
b29878df6de141d081620bb8813e687f76ea5637

Author and committer are both danielhanchen, with no co-author trailer, and nothing has been pushed to the branch since the previous round. There is no second object to compare against, so there is no new evidence here to act on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant