Repository navigation
Conversation
MSVC in C++20 mode initializes a function-local static std::string whose initializer is a conditional expression to an empty string, so every Windows session named its in-use lock file `sessions/.lock` and a second RStudio instance refused to start Posit Assistant with "A Posit Assistant update is in progress". Compute the id in a lambda instead, expose it for tests, and move the lock tests' common includes out of the POSIX-only block so owner-path tests compile on Windows. Addresses #18787
An empty owner id names the session lock file `.lock`, which every session with the same defect shares, and the resulting contention reads as an update in progress. Fail the acquisition with a real error instead so a regression surfaces instead of silently sharing one file. Addresses #18787
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:36 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:36 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:37 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:43 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:43 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 11, 2026 18:46 — with
GitHub Actions
Inactive
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
Member
Author
|
Will be redoing this against |
2 of 4 tasks
Member
Author
|
Superseded by #18790, which carries the same two commits based on |
This branch was previously deployed
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.
Intent
Fixes #18787.
On Windows, every RStudio session named its Posit Assistant "in use" lock file
pai/locks/sessions/.lock, so a second instance collided with the first and Posit Assistant refused to start with "A Posit Assistant update is in progress".The owner id that names the file is a function-local
static const std::stringinitialized by a conditional expression. MSVC 19.51 in C++20 mode (which the Windows build uses) initializes that static to an empty string; the same code is correct in C++17 mode, as a non-static local, or when the initializer is wrapped in a lambda. The static was introduced by #18573, which is why 2026.08 is unaffected.Approach
InstallLock::acquireInUserefuses an empty owner id with a real error, so a regression surfaces as "Unable to verify the Posit Assistant installation state" instead of silently sharing one file and reporting an update in progress.InstallLock::ownerId()as a test seam.Automated Tests
The lock tests were entirely
#ifndef _WIN32, so nothing exercised owner-path naming on Windows. This PR moves the tests' common includes out of the POSIX-only block and adds three tests that compile everywhere:<owner>.lock.lockQA Notes
Verified on Windows 11 with the local dev build; QA notes added to the issue.
Documentation
None; no user-facing behavior beyond the bug fix. NEWS entry added.
Checklist
NEWS.md