Repository navigation
Catch the llama-prebuilt validator stubs up with rocm_gfx - #8182
Merged
danielhanchen merged 2 commits intoAug 8, 2026
Merged
danielhanchen merged 2 commits into
danielhanchen merged 2 commits into
Conversation
Both validators take a rocm_gfx keyword and the four stubs standing in for them do not, so the real call site passes it and the stub raises TypeError. It lands inside whatever assertion was running, which reddened four unrelated fallback tests on main rather than saying a parameter had moved. Adds the keyword, and a test naming the keyword-only set of each validator so the next one fails once, here, with the parameter that moved.
This was referenced Aug 8, 2026
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
What breaks
Four tests are red on
mainright now, at21f8efdfe:All four are the same thing, from
studio/install_llama_prebuilt.py:7140:validate_prebuilt_attemptsandvalidate_prebuilt_choiceboth takerocm_gfx: str | None = None, and the real call site passes it. The fourfake_validatestubs standing in for them stop atllama_backend.Nothing is wrong with the production code. The parameter was added there and the stubs were not brought along.
Why it read as four unrelated failures
The stub is patched in and then called from deep inside the fallback logic, so the
TypeErrorsurfaces inside whatever assertion happened to be running. Nothing in the output says a parameter moved, which is why four separate release-fallback tests went red at once for one reason.The fix
Add
rocm_gfx = Noneto the four stubs, and add a test that names the keyword-only parameter set of each validator. A future keyword then fails once, in that test, naming the parameter, instead of scatteringTypeErrors through unrelated assertions.I checked the guard actually discriminates: dropping
rocm_gfxfrom the expected set forvalidate_prebuilt_attemptsturns it red and leaves the other 99 green.Result
Import-hoist verifier
CLEAN / OVERALL: PASS,ruff checkclean, pre-push gate pass. Test-only change; no production file is touched, so no runtime behaviour moves on any platform.