Repository navigation
Remove the Posit Assistant cross-session install lock - #18920
Merged
Merged
Conversation
Installs now publish a new version slot and never modify a directory another session could be running from, so the lock from #18276 no longer protects anything. Delete ChatInstallLock and its tests, the installLock() accessor, the MutationScope around performInstall(), and the in-use acquire/release around the chat backend and agent starts. The e2e seed no longer skips a locks/ directory. The two non-locking #18276 fixes in SessionAssistant.cpp stay: onError does not clear agent tracking state, and the helper environment is set with setenv rather than appended. Addresses #18658.
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 |
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.
Addresses #18658.
Step 4 of the plan in #18658. Since #18892, an install publishes a new version slot and never modifies a directory another session could be running from, so the lock added in #18276 no longer protects anything.
What changes
ChatInstallLock.{hpp,cpp}andChatInstallLockTests.cppare deleted (1,713 lines), along with theinstallLock()accessor, its owner-id helper, andkPositAiLocksDirName.performInstall()no longer takes aMutationScope, so an install or update is no longer refused while another session is running Posit Assistant.locks/directory, and the harness test's lock assertions are gone.Two #18276 fixes that are not about locking stay in
SessionAssistant.cpp:onErrordoes not clear agent tracking state on a stream error, and the helper launch environment is set withsetenvrather than appended. #18276 made no changes undercore/, so nothing else becomes unused.Without the lock, concurrent
selectSlot()writes from sessions on different protocols can drop one another'sselected.jsonentry. #18658 accepts this ("Lost-selection downgrade is accepted, not made durable"), andChatSelector.hppdocuments it.Testing
277 tests pass.
npx playwright test tests/harness/pai-seed.test.tspasses.