Repository navigation
Wait for vite to serve before the titlebar, find, shortcuts and settings smokes navigate - #12501
Merged
Merged
Conversation
…ngs smokes navigate
Member
Author
|
@codex review |
Codex Review SummaryThis 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. Hooray! 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
Frontend build + bundle sanityfailed on #12475 (a sidebar IME fix) in the titlebar smoke:start_vite()intests/studio/_playwright_robust.pyreturns as soon asnpm run devis spawned, not once vite listens. Most drivers follow it withwait_for_smoke_page(url, entry, proc=server).tests/studio/playwright_titlebar_blur.py(added in #12433) navigates straight away, so it races vite's startup. Three older drivers do the same:playwright_find_in_page.py,playwright_keyboard_shortcuts.pyandplaywright_settings_tabs.py.Locally, main's titlebar driver fails 3 out of 3 runs with exactly that
ERR_CONNECTION_REFUSED. In CI it usually wins the race only because the dev server comes up fast enough.Change
wait_for_smoke_pageon their own page and entry module (smoke-titlebar-blur-main.tsx,smoke-find-in-page-main.tsx,smoke-shortcuts-main.tsx,smoke-settings-main.tsx) right afterstart_vite. The titlebar driver only waits when it started the server, soSMOKE_URLstill works.wait_for_smoke_pagealso stops early if vite exits, instead of polling out its timeout.tests/studio/test_playwright_server_lifecycle.py::test_every_driver_that_starts_vite_waits_for_it_to_serveparses everytests/studio/playwright_*.pyand fails if a driver callsstart_vitewithoutwait_for_smoke_pageorwait_for_health. It also asserts it found a realistic number ofstart_vitecallers, so it cannot pass by scanning the wrong place.Verification
playwright_titlebar_blur.pyERR_CONNECTION_REFUSED, 3 of 3 runsplaywright_find_in_page.pyplaywright_keyboard_shortcuts.pyplaywright_settings_tabs.pyThe new guard run against main's drivers fails, naming all four.
tests/studio/test_playwright_server_lifecycle.py(36 passed) andtests/test_formatter_fixed_point.pypass.