Repository navigation
test(desktop): separate the notch launch budget from its behaviour - #1347
Merged
Merged
Conversation
The macOS activity notch test killed Electron 35 s after spawning it, while the fixture's own 25 s watchdog started only once the main script ran. A cold Electron launch on an Intel runner that took over 10 s let the outer SIGKILL win, so the failure carried no stage. The Electron download and native addon build also ran inside the same test timeout. Build the bundles, the addon and the pinned Electron download in beforeAll. The fixture now prints each stage and a launched marker after the first page load. The test timestamps every line from the spawn and gives the launch 60 s and the behaviour after it 35 s, backing the fixture's 25 s watchdog, which now starts at launch. Failures report the stalled phase and the stage timeline, and a helper holding stdout after a kill no longer delays them. Related: #1281 Co-Authored-By: Claude Opus 5.5 <[email protected]>
nixuuu
force-pushed
the
test/desktop-notch-flake-root-cause-and-fix
branch
from
November 27, 2026 16:38
6224726 to
1819315
Compare
nixuuu
marked this pull request as ready for review
November 27, 2026 16:38
nixuuu
enabled auto-merge (squash)
November 27, 2026 16:38
This was referenced Nov 28, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 29, 2026
## Changes - Scope diagnostics assertions to their own SQL operations. Wait for the gateway to record the active turn before exercising bot connector rules. - Keep the checkout-alias lock fixture running through the rejection assertion. Track unique start commands and their acknowledgements after a worker restart, including when the link redelivers a command. - Preinstall and cache the pinned Electron binary before the native window test. Retry the install step on failure. Use the artifact downloader with interrupted-transfer retry and digest validation for native binaries. - List the first failed step and Bun test names from attempt 1. Report missing log downloads explicitly. The old skill-preview and linked-mirror failures already have fixes on `dev`. The earlier notch timeout also has separate launch and behavior budgets. This PR moves the Electron download out of that test's setup. #1341, #1412, #1347 ## Verification - `check:tmp` on the four affected integration files and the recovery script test passed all 36 tests. The four flaky cases and two recovery cases also passed 12 consecutive runs each. - Focused lint, formatting, Bash syntax and diff checks passed. Replaying the reporter against a real failed test and a real artifact failure produced the expected entries without posting comments. - PR CI covers the full gate and the native macOS/Windows checks. The automatic recovery workflow itself runs after Push CI on protected branches. Closes #1346
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.
Changes
SIGKILL35 s after spawning Electron, but the fixture's 25 s watchdog only started once its main script ran. When a cold Electron launch on the Intel macOS runner took more than 10 s, the outer kill fired first. The failure then had no stage, onlyElectron exited with SIGKILL. The pinned Electron download and the AppKit addon build also counted against the same test timeout. Passing darwin-x64 runs took anywhere from 11 s to 48 s. Two diagnostic CI runs of this branch on darwin-x64 showed the launch to the first page load varying from 3.7 s to 8.5 s, while the behaviour after it took about 5 s both times.beforeAll, outside the Electron budgets.Activity notch launchedmarker after the first page load. Its 25 s watchdog now starts at that marker.app.exithangs. A failure reports the stalled phase and the full stage timeline. After a kill, a helper process that still holds stdout can delay the result by at most 3 s.docs/desktop.mddescribes the two budgets and the timeline.Verification
did not launchfor a hang before launch anddid not finish after launchingfor a hang after it, and released a pipe held by a leftover child within the grace period.Copy audit: no UI text changed.
Related: #1281
🤖 Generated with Claude Code