Repository navigation
Stop the restarted hided when an agent tab groups test ends - #609
Merged
Merged
Conversation
startGroups returned a copy of its group with a stop closure over the original object, so the restart test's new daemon, set on the copy, was never stopped: it outlived the test, and on Windows its open checkout kept the fixture folder busy when Herdr's teardown removed it (EBUSY). stop now reads the daemon from the object it returns.
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
startGroupsinweb/e2e/agent-tab-groups.spec.tsreturned{ ...group, stop: () => { group.daemon.stop(); herdr.stop(); } }:stopclosed over the original object, while "the area layout and its divider ratio survive a hided restart" setsgroup.daemon = await group.daemon.restart()on the returned copy.So
stopstopped the old daemon, already gone, and the restarted hided ran on until the worker exited.On Windows it kept the checkout open, and Herdr's teardown failed to remove the fixture folder:
EBUSY: resource busy or locked, rmdir '...\fixture'on both attempts in nightly run 37391023049 (Windows full, shard 1/4).stopnow reads the daemon from the object it returns.Review
web/e2e/agent-tab-groups.spec.tsonly; the other specs that restart hided (s3,s6,s7,cmdk,theme,view-bookmarks, ...) assign the new daemon to the variable or object their stop reads, andsidebar-menus, the other spec with a stop closure, never restarts.Evidence
group.stop()in the restart test polled the restarted daemon's pid for 5 s. Oldstop: alive in 3 of 3 runs. This change: gone in 3 of 3, and the test passes each time.pnpm --dir web lint(eslint and the e2e size budget) andpnpm --dir desktop typecheckpass.@platform, so after Run only the OS-difference desktop tests on Linux and Windows nightly #566 no Windows lane runs it.