ci(inference-providers): bump doc-builder pin to InferenceSnippet prerender fix#2531
Merged
Merged
Conversation
…render fix The inference-providers doc build crashes when a provider/task section has no snippet in the kit's `@huggingface/inference` (e.g. `together` + `automatic-speech-recognition`, supported by the generator's 4.13.18 but not the kit's pinned 4.13.15): the InferenceSnippet component dereferences `clients.length` on undefined → SvelteKit 500 → build fails on main and every PR. Bump the pinned doc-builder ref for both build workflows to the fix (huggingface/doc-builder#791), which defaults `clients` to `[]` so the prerender no longer crashes on an unsupported combo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
#791 merged; point both build workflows at the resulting doc-builder main commit (bcff59f) instead of the fix-branch head. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keep all three inference-providers workflows on the same doc-builder main commit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wauplin
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The inference-providers doc build has been red on
mainand every PR. Root cause is a@huggingface/inferenceversion skew between the two halves of the pipeline:@latest=4.13.18) →together+automatic-speech-recognitionis supported (added in4.13.16), so it emits that section.4.13.15) → that combo is not supported →getInferenceSnippetsreturns[]→InferenceSnippet.sveltedereferencesclients.lengthonundefined→TypeError→ SvelteKit500→ build fails on/providers/together.The hub-docs generator guard (#2527) can't fix this: the generator is ahead of the renderer, so it correctly keeps the section while the renderer crashes. The fix had to be in doc-builder.
What
Bump the pinned
doc-builderref tobcff59f(doc-buildermain, including huggingface/doc-builder#791), which defaultsclientsto[]so the prerender renders an unsupported combo as empty instead of crashing the build. All three inference-providers workflows are moved together to stay in sync:api_inference_build_documentation.yml(main build)api_inference_build_pr_documentation.yml(PR build)api_inference_upload_pr_documentation.yml(upload step)Verification
Reproduced the exact CI crash locally (docs with the
together/ASR section + kit resolving@huggingface/inference@4.13.15):TypeError: Cannot read properties of undefined (reading 'length')→Error: 500 /providers/together→ exit 1.providers/togetherprerenders, noTypeError.Notes / follow-ups
maincommitbcff59fca682130d2e7271ca8589911b7ac0b8bf.4.13.15, thetogether/ASR section renders as an empty snippet widget. Bumping the kit's@huggingface/inferenceto a current release (which also moves@huggingface/tasks^0.20.12→^0.21.x) would make it render the actual snippet — a separate maintainer decision.🤖 Generated with Claude Code