Repository navigation
Follow the third load site in the pinned-row contract test - #7748
Merged
Merged
Conversation
main is red: tests/studio/test_model_picker_contracts.py fails on every PR since #7736, which is unrelated to what those PRs change. The assertion counts the sites that pass the pinned snapshot id into the load meta, and expected exactly two: the safetensors row and the gear beside it. #7736 added a third, the collapsed single-quant GGUF row, which is a load site like the other two and correctly carries the pin. The code is right and the count was stale. Bisected to 63307b1. Counted rather than matched loosely on purpose, so a new row that forgets the pin fails here rather than silently loading from the default ref, so the count follows the code instead of being relaxed. Verified it still fails when any one of the three sites drops the pin.
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.
main has been red since #7736.
tests/studio/test_model_picker_contracts.py::test_a_pinned_cached_row_loads_from_the_id_the_backend_pinnedfails on every PR branched after it, for reasons unrelated to what those PRs change, which is how I ran into it.The assertion counts the sites that pass the pinned snapshot id into the load meta, and expected two: the safetensors row and the gear beside it. #7736 added a third, the collapsed single-quant GGUF row, and that row is a load site like the other two and correctly carries the pin. So the code is right and the count was stale.
Bisected:
3742317f7passes,63307b17f(#7736) fails.Counted rather than matched loosely on purpose, so a row that forgets the pin fails here instead of silently loading from the repo default ref. I kept it that way and moved the count, rather than relaxing it to
>= 2and giving up the property. Checked that it still fails if any one of the three sites drops the pin.