Skip to content

e2e: reload before R override test to fix flakiness#13799

Open
midleman wants to merge 3 commits into
mainfrom
mi/include-exclude
Open

e2e: reload before R override test to fix flakiness#13799
midleman wants to merge 3 commits into
mainfrom
mi/include-exclude

Conversation

@midleman
Copy link
Copy Markdown
Contributor

@midleman midleman commented May 27, 2026

Summary

Adds an explicit window reload at the start of the R override interpreter test. The test was flaky on first attempt but passed on retry, suggesting the override setting wasn't fully applied by the time the session start was attempted.

  • Only touches R - Can Override Interpreter Discovery; other 5 tests untouched

QA Notes

@:web @:interpreter

The R override test was flaky on first attempt but consistently passed on
retry. Adding an explicit window reload before the assertion gives the
override setting a clean state to apply against.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:web @:interpreter

readme  valid tags

midleman and others added 2 commits May 27, 2026 11:56
The runtime discovery cache is stored at StorageScope.APPLICATION and
survives window reloads, so R installs registered before the override
setting was written stayed registered. A worker retry effectively wipes
this cache via a fresh user-data-dir, which is why retry passed. Clearing
the cache before the reload reproduces that state explicitly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
In web mode the Positron server process survives window reloads, so
runtimes registered before the override setting was written remain in
the runtime service registry. Only a Playwright worker restart wipes
this state, which the test harness can't trigger between tests. Reverts
the clear-cache + reload workaround in the R test (which didn't address
the underlying server-side state) and drops the WEB tag from the entire
Override describe.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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