Repository navigation
test(doop): stabilise shard-4 browser tests (probe wait, 30s poll) (CHE-6913) [squash] - #64
Merged
congvc-bot-x99[bot] merged 6 commits intoNov 19, 2026
Conversation
congvc-bot-x99
Bot
force-pushed
the
agent/x99-claude-sonnet/che-6913-d44200bfe43a
branch
from
November 18, 2026 03:43
e1a03a4 to
5fa6eff
Compare
congvc-dev
force-pushed
the
agent/x99-claude-sonnet/che-6913-d44200bfe43a
branch
from
November 18, 2026 04:29
5fa6eff to
d3a0ca7
Compare
|
All contributors have signed the CLA ✍️ ✅ |
added 6 commits
November 18, 2026 21:46
…CanvasBrowser (CHE-6913)
…imports (CHE-7020) Chrome aborts in-flight requests with net::ERR_NETWORK_CHANGED when host network interfaces change. The module script in drawing.html then never sets window.drawingHarness and no wait recovers. Print pageerror/requestfailed/ readyState on a stall and load the page again (3 tries, 8s ready wait).
…E-7021) The first seedPanel wait timed out at the 5 s puppeteer default on CI shard 2 (run 44129413615, job 134202011472). Widen the file default and the one explicit 5 s poll to 12 s, under the 15 s per-test limit.
congvc-bot-x99
Bot
force-pushed
the
agent/x99-claude-sonnet/che-6913-d44200bfe43a
branch
from
November 18, 2026 14:47
d3a0ca7 to
ac5a685
Compare
congvc-bot-x99
Bot
deleted the
agent/x99-claude-sonnet/che-6913-d44200bfe43a
branch
November 19, 2026 17:54
congvc-bot-x99 Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
…-6841) cheese/main carries its own flake fix (doop-design#433) and the ci-policy R1 push-trigger rule, so the #64 commits are dropped here and the test files take main's version. Smoke routes gain /api/agent-runners and /api/fonts and follow the new /api/model-account view.
An error occurred while trying to automatically change base from
agent/tofu/che-5548-2644b627ca4a
to
cheese/main
November 23, 2026 09:29
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.
Status
Draft. Stacked CHE-6913 fix into the PR #56 branch (base stays the #56 branch; no main merge). Rebased onto PR #56 head
e9b8b03f59c6; head is now5fa6eff730f7. The 6 fix commits keep identicalgit patch-id --stablebefore and after the rebase (CHE-7021 test-first waiver is by patch-id and still applies). Earlier head references below (5b555097caeb,e4fa705a0848,e1a03a4ec172) are the pre-rebase commits; their CI evidence does not cover the new head. CI proof on the new head: NOT-RUN until 3 consecutive runs finish.Change
Head 5b55509 = PR #56 head f22074a + the 30 s waits from PR #57 (45ea29ff3555) + two test-infrastructure changes.
The test change is in
tests/pageCanvasBrowser.test.ts, "follows another element link and browser history within the same mounted canvas". Afterhistory.back()the test now waits until the element toolbar showsh1, before it navigates to?frame=target.The second change is in
vite.config.ts:test.expect.poll.timeoutis now 30 s. Vitest's default is 1 s.tests/drawingBrowser.test.tshas 28expect.pollcalls that use the default.Second flake (drawingBrowser)
test (4)failed with "Hook timed out in 30000ms" in the drawingBrowserbeforeEach.beforeEachstepsgoto,harnessandtoolstook 3 to 6 s. One test failed becauseexpect.pollgave up after the 1 s default ("keeps fast layer drags and cancellation correct while doop:move-hit is delayed"). Same file with the 30 s poll default: 83 of 83 passed.Cause (observed, not the shared Chromium)
#onefirst. FrameView's probe effect re-picks#onea few ms later, after the next render.focusFrameclears the selection, then the late probe effect picks#oneagain, with the store atnull.inspectorOpen && !selectedElementand times out.FOCUSFRAME (final, clear) 1882, thenPROBEEFFECT pick #one cur= null 1890. In passing runs the probe effect ran at 1864, before the final clear.?frame=target,selectedElementstill#one. No throttling or hidden page.Evidence
Same command for both:
taskset -c 10,11 bun run test tests/pageCanvasBrowser.test.ts -t "follows another", 15 runs each, on X99.Blast Radius
Only
tests/pageCanvasBrowser.test.tschanges. No app code. A wrong wait makes this one test time out; CItest (3)andtest (4)show it.Proof level: 3 (the browser test ran against the real app locally). CI proof of three consecutive shard-4 passes on this head is NOT-RUN until the runs finish.
Refs CHE-6913
CHE-7020: drawingBrowser beforeEach stall (head e4fa705)
Cause, from a local stall on X99 (readyState complete, harness never set):
requestfailed: .../src/lib/cssValues.ts net::ERR_NETWORK_CHANGED, 36 such lines in one stalled run (cssValues.ts,LayerKindIcon.tsx,FlexLayoutControls.tsx,ImageFill.tsx,InteractionsPanel.tsx, ...). Chrome aborts in-flight requests when the host's network interfaces change. Docker files in the same run (compatIsolationDocker.test.ts, 35 s in the CI log) create and drop bridges, which matches the CI stalls (CI network change is inferred, not logged yet). An aborted module import leaves the page loaded andwindow.drawingHarnessunset; no wait recovers.page.gotofinishing in 0.5 s fits this.Fix:
loadWithRetryintests/stepStall.tsloads the fixture again when the harness is not set within 8 s (3 tries), and prints pageerror / requestfailed / readyState on each retry. Test-only change.Test-first,
npx vitest run tests/stepStall.test.ts:2 failed | 4 passed(loads again when not ready; throws last error with diagnosis).5 passed.drawingBrowser.test.tslocally: stall in 2 of 3 runs before the change (stalled > 20000 ms), 0 stalls in 2 runs after. Those 2 runs each had 1 different test-body failure (82 of 83). CI proof of 3 passes on this head: NOT-RUN.CHE-7021: elementPanelBrowser 5 s waits (head e1a03a4)
tests/elementPanelBrowser.test.ts: newWAIT_MS = 12_000replaces the 5 spage.setDefaultTimeoutand the one{ timeout: 5000 }poll. Test-only. 12 s is under the 15 s per-test limit.Red (weaker evidence, WAIVED, not PASS): run 44129413615, job 134202011472:
TimeoutError: Waiting failed: 5000ms exceededatseedPanel(elementPanelBrowser.test.ts:230), first image-settings test. Not reproducible on demand: local runs pass in 0.5 to 0.7 s unloaded and under CPU contention; two synthetic stalls (busy page thread, slow head stylesheet) stayed green at 5 s, so they were dropped.Green: local
npx vitest run tests/elementPanelBrowser.test.ts53 of 53. CI run 44210758533 attempts 1, 2, 3 on this head:test (2)andtestssuccess each time.