Repository navigation
Unbreak Repo tests (CPU) on main: two stale frontend-contract harnesses - #8067
Closed
danielhanchen wants to merge 5 commits into
Closed
danielhanchen wants to merge 5 commits into
danielhanchen wants to merge 5 commits into
Conversation
test_desktop_titlebar_separates_navigation_from_sidebar_brand asserted the
exact import line:
import { ArrowLeft, ArrowRight } from "lucide-react";
#8016 added Minus, Square and X to that import for the window chrome, so the
literal string no longer appears and the test has been failing on main since.
The test only cares that the two history arrows are imported and rendered, not
about who else shares the import, so match the named specifiers instead.
Verified the contract still bites: dropping ArrowLeft/ArrowRight from the
import still fails the test.
This was referenced Aug 7, 2026
#8007 added mlxRuntimeStateFrom to chat-adapter.ts. The sliced region the harness compiles imports it, so all 16 scenarios in test_chat_autoload_failure_gate.py fail on main with the harness's own "add a stub to PREAMBLE" assertion. Stub mirrors ../lib/mlx-runtime-state. No scenario here loads an MLX model, so only the non-MLX branch is reached, but the symbol has to exist.
… fix-titlebar-import-assert
Member
Author
|
Superseded by #8072, which merged and fixes the same two harnesses plus |
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.
Repo tests (CPU)is red on main for two independent reasons, both of them test harnesses that went stale when frontend code moved under them. Neither is a product bug, and both fail every open PR that merges main.1. Titlebar contract asserts an exact import line
#8016 added
Minus,SquareandXto that import for the window chrome:so the literal string no longer appears. The test cares that the two history arrows are imported and rendered, not about who else shares the import, so it now matches the named specifiers via a small
_named_importshelper.2. Chat autoload harness is missing an
mlxRuntimeStateFromstub#8007 added
mlxRuntimeStateFromtochat-adapter.ts. The sliced region the harness compiles imports it, so all 16 scenarios intest_chat_autoload_failure_gate.pyfail with the harness's own assertion:Added a stub mirroring
../lib/mlx-runtime-state. No scenario here loads an MLX model, so only the non-MLX branch is reached, but the symbol has to exist.Verification
On a clean
origin/maincheckout both reproduce: 1 failure intest_desktop_reliability_frontend_contract.pyand 16 intest_chat_autoload_failure_gate.py. With this change the two files are 42 passed.The relaxed titlebar assertion still bites: removing
ArrowLeft, ArrowRightfrom the import fails the test again. A contract that can no longer fail would be worse than a brittle one.