Skip to content

Backport e2e flake hardening to rel-autumn-hawkbit - #18795

Merged
gtritchie merged 2 commits into
rel-autumn-hawkbitfrom
test/backport-e2e-flake-hardening
Sep 12, 2026
Merged

gtritchie merged 2 commits into
rel-autumn-hawkbitfrom
test/backport-e2e-flake-hardening

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Backports af7ab6b (#18789) from main. That commit hardened five specs
traced to specific races in a cross-platform run; four of them apply here.

  • resetToUntitled kept a dirty untitled placeholder. The placeholder is
    shared across specs, so text a previous spec left in it survived the reset;
    the next saveAllSourceDocs then raised a modal Save File prompt for the
    pathless doc, and its glass panel blocked every later click.
    SourceColumnManager now only reuses a clean untitled doc,
    waitForSourcePaneReset requires one, and closeSourceAndDeleteFile drops
    the saveAllSourceDocs it never needed (the file is deleted on the next
    line). Adds source_pane_reset.test.ts, which fails without the
    SourceColumnManager change.

  • closeProjectIfOpen could sit behind "Save workspace image?". The sessions
    run with save_workspace: never, but ApplicationQuit's saveAction_
    holds its saveAsk() default until the backend's SaveActionChangedEvent
    lands, so a project closed seconds after it opened prompts anyway.
    dismissSaveWorkspacePrompt clears it.

  • The vimrc mid-session spec clicked the editor straight after
    newSourceDoc, which only dispatches the command, so the click landed on
    the outgoing document's unrendered ace_content. Waits for the new editor.

  • The ghost-text specs treated "No completions available" as something to
    wait out. It is terminal -- nothing re-asks -- so a declined suggestion
    cost the full 30s budget. Re-requests instead.

Notes for review

The fifth spec in #18789, the console-keybindings startup race, is omitted:
its feature (#18761, custom editor keybindings in the console) is not on this
branch, so neither is the spec. That was the only cherry-pick conflict; the
rest applied byte-identical to main.

This carries one non-test change, SourceColumnManager.onDocumentResetToUntitled.
DocumentResetToUntitledEvent is dispatched only from ApplicationAutomation,
the window.rstudio automation bridge, so no user-reachable path sees the
changed behavior. The accompanying isDirty(EditingTarget) extraction
preserves the existing dirty != null && dirty logic.

source_pane_reset.test.ts lands on a branch that does not have the stale
source column fix (#18736 / #18737, currently main-only). The dirty-untitled
case routes into the existing create-then-close path, which never reaches zero
tabs -- the state that bug needs -- and that path already runs on this branch,
so the two should not interact.

Verified: tsc --noEmit and ant javac both clean. The specs themselves have
not been run on this branch.

Cherry-picked from af7ab6b (#18789) on main. That commit hardened five
specs; the console-keybindings one is dropped here because its feature
(#18761, custom editor keybindings in the console) is not on this branch,
so neither is the spec.

- resetToUntitled kept a DIRTY untitled placeholder. The placeholder is
  shared across specs, so text a previous spec left in it survived the
  reset; the next saveAllSourceDocs then raised a modal Save File prompt
  for the pathless doc, and its glass panel blocked the console.
  SourceColumnManager now only reuses a clean untitled doc,
  waitForSourcePaneReset requires one, and closeSourceAndDeleteFile drops
  the saveAllSourceDocs it never needed.

- closeProjectIfOpen could sit behind "Save workspace image?".
  ApplicationQuit's saveAction_ holds its saveAsk() default until the
  backend's SaveActionChangedEvent lands, so a project closed seconds
  after it opened prompts anyway. Dismiss it.

- The vimrc mid-session spec clicked the editor straight after
  newSourceDoc, so the click landed on the outgoing document's unrendered
  ace_content. Wait for the new editor.

- The ghost-text specs treated "No completions available" as something to
  wait out. It is terminal, so a declined suggestion cost the full 30s
  budget. Re-request instead.

Adds source_pane_reset.test.ts, which fails without the
SourceColumnManager change.
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
2591 0 184 4
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 650 0 38 2
✅ desktop-macos 656 0 33 2
✅ desktop-windows 657 0 39 0
✅ server-linux 598 0 44 0
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

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


All platforms - commit 5c13443b43f4448c57e6b2c1d38b825c19db3aeb - Run #961

@gtritchie
gtritchie merged commit d4811dc into rel-autumn-hawkbit Sep 12, 2026
34 checks passed
@gtritchie
gtritchie deleted the test/backport-e2e-flake-hardening branch September 12, 2026 03:29

This branch was previously deployed

1 inactive deployment
e2e-playwright — 5c13443b Deployed Sep 12, 2026 by gtritchie via windows / e2e-desktop-windows (1) #961
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.

1 participant