e2e: fix reticulate multi-session race by explicitly selecting session#14902
Merged
Conversation
…n before executing code console.executeCode() resolves its target session by foreground/MRU per-language, not by session id. With two concurrent reticulate Python sessions, code could land in the wrong (non-visible) session, making the Variables pane checks race intermittently. Explicitly select the intended session before executing code, restoring behavior dropped in the #10887 stability refactor.
|
E2E Tests 🚀 Why these tags?
More on automatic tags from changed files. |
testlabauto
approved these changes
Jul 16, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Fixes an intermittent race in the reticulate multi-session e2e test where code could execute against the wrong Python session.
console.executeCode()resolves its target by foreground/MRU session per language, not by session idsessions.select()) before executing code inverifyReticulateFunctionality/triage-e2e-test; repro'd locally by running both reticulate specs concurrently (2/4 failures unfixed, 8/8 passing fixed)QA Notes
@:reticulate @:web @:ark