Skip to content

re-enable the View() close/open race playwright test - #18035

Merged
kevinushey merged 2 commits into
mainfrom
bugfix/view-during-closeall
Jun 22, 2026
Merged

kevinushey merged 2 commits into
mainfrom
bugfix/view-during-closeall

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Intent

Addresses #17738.

Re-enables the View() variant of the source-pane open-during-close race test, and fixes a build-tooling gap that blocked GWT builds in secondary git worktrees.

Summary

  • Re-enable the test (close_open_race.test.ts): the View() / documentCloseAllNoSave variant exercises the same race as the file.edit test, but through Source.onShowData (the data viewer iframe) instead of onFileEdit. It was left as test.fixme when bugfix: file.edit during in-flight closeAllSourceDocs silently dropped #17740 landed, because at that time the data viewer iframe still failed to finish loading even with the WindowFrame.onEnsureVisible HIDE-state recovery. The data-viewer mount path has since been reworked and the race no longer reproduces -- the test now passes reliably (20/20 in a --repeat-each=10 stress run on macOS Desktop, alongside the existing file.edit test).

  • src/gwt/build.xml panmirror fallback: make builds resolve gitignored deps from the primary git worktree #18030 gave lib.dir and node.dir a ${git.main.worktree} fallback so a fresh worktree can borrow the primary checkout's gitignored dependencies, but panmirror.dir was missed. Without it, ant draft in a secondary worktree fails with ${panmirror.dir} does not exist. This adds the same fallback (additive; the local ./lib/... path still wins when present, so primary/CI builds are unaffected). This was a prerequisite for building and running the test above in a worktree.

Test plan

  • ant draft succeeds in a secondary worktree (previously failed on panmirror.dir).
  • npm run test:desktop-dev -- tests/panes/editor/close_open_race.test.ts -- both tests pass.
  • --repeat-each=10 -- 20/20 passed, no flakes.

Completes #18030: lib.dir and node.dir gained a ${git.main.worktree} fallback so a fresh git worktree can borrow the primary checkout's gitignored deps, but panmirror.dir did not. Add the same fallback so 'ant draft' (and the cmake-driven GWT build) work in a secondary worktree instead of failing with '${panmirror.dir} does not exist'.
The View()/documentCloseAllNoSave variant of the source-pane open-during-close race (#17738) was left as test.fixme when #17740 landed, because the data viewer iframe failed to finish loading even with the WindowFrame HIDE-state recovery. The data-viewer mount path has since been reworked and the race no longer reproduces -- the test passes reliably (20/20 stress runs on macOS desktop).
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jun 22, 2026
@github-actions

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
399 0 18 1
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit 28534971c7cb382ca44b92a23d190b11399c9e0c · Run #136

@github-actions

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
403 0 15 2
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · Windows Server 2025 x64 · commit 28534971c7cb382ca44b92a23d190b11399c9e0c · Run #136

@kevinushey
kevinushey requested a review from gtritchie June 22, 2026 16:21

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevinushey
kevinushey merged commit 06228f5 into main Jun 22, 2026
15 checks passed
@kevinushey
kevinushey deleted the bugfix/view-during-closeall branch June 22, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants