Repository navigation
Auto-load harness: inline isOtherCacheSnapshot from source so the scenarios run on main again - #17816
Merged
Merged
Conversation
… from source #17673 made isAutoLoadableLocalRow admit another cache's snapshot rows through isOtherCacheSnapshot, imported from model-picker/inventory/local-cache-snapshot.ts. test_chat_autoload_failure_gate.py slices that region of chat-adapter.ts into a harness and its import guard flagged the new name, failing 85 of 86 scenarios on main. Inline the shipped function (and the looksLikeLocalPath it calls) the same way the harness already inlines server-model-wait.ts and load-request.ts, so the scenarios run the real rule.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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.
Summary
tests/studio/test_chat_autoload_failure_gate.pyhas failed 85 of 86 scenarios onmainsince #17673 ("Show loadable Hugging Face snapshots from custom folders in Select Model"). It shows up inRepo tests (CPU, studio), first on the staging run of #16717:#17673 is correct.
isAutoLoadableLocalRownow admits another cache's snapshot rows throughisOtherCacheSnapshot(fromfeatures/model-picker/inventory/local-cache-snapshot.ts). The harness slices that region ofchat-adapter.tsand supplies its imports itself, and its import guard flagged the new name as intended.Change (test only)
The harness now inlines the shipped
isOtherCacheSnapshot, plus thelooksLikeLocalPathit calls, read from source. It already inlinesserver-model-wait.tsandload-request.tsthe same way. A hand-written stub would let the scenarios drift from the rule auto-load actually applies. If the function stops being a top-levelexport function, the extraction asserts and names the file.Verification
test_chat_autoload_failure_gate.py04ce4572)Every
tests/studiofile that readschat-adapter.ts(16 files): 446 passed.