Skip to content

Remove the Posit Assistant slot manifest - #18986

Merged
gtritchie merged 5 commits into
mainfrom
developer/remove-slot-manifest
Sep 29, 2026
Merged

gtritchie merged 5 commits into
mainfrom
developer/remove-slot-manifest

Conversation

@gtritchie

@gtritchie gtritchie commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Removes .slot-manifest.json from Posit Assistant slot installs. The manifest recorded each file's size and SHA-256. Every time a slot was resolved, RStudio re-checked the recorded sizes and walked the tree looking for symlinks. The slot mechanism hasn't shipped yet, so there are no existing manifests to stay compatible with.

The manifest isn't needed to catch interrupted installs. A package is extracted into a dot-prefixed staging directory, and allocateSlot() verifies it and then renames it to its slot name, so a partial install never appears under a name the resolver reads.

A slot now verifies when:

  • it is a real directory, not a symlink or junction
  • protocol.json declares a protocol and package.json declares a version
  • dist/client exists, and dist/server/main.js and dist/client/index.html are non-empty

The e2e seeder (fixtures/pai-seed.ts) no longer writes a manifest, and its tests no longer check for one.

Tradeoff: if a slot loses a file other than those checked, after install, it still verifies. Before, it would have been skipped in favour of another slot or a fresh download; now the backend fails when it runs. A normal install of the same version also reuses the slot rather than replacing it, so only a forced reinstall repairs it. This is the same level of checking the unversioned installs (posit-assistant-path, the administrator's pai/bin, the bundled copy) have always had.

Addresses #18658.

Note

This was some overengineering that snuck in and I missed initially. Removing to simplify the code and make it easier for admins to manually install Posit Assistant in the future.

Slot verification no longer requires a .slot-manifest.json recording
every file's size and SHA-256. Publishing a slot is already a rename
from a private staging directory after extraction completes, so an
interrupted install never appears under a slot name; the manifest's
remaining value (noticing files removed after install) did not justify
the per-resolve stat walk, the symlink hardening, or the unused hashes.

A slot now verifies when it is a real directory, its expected files
exist and are non-empty, and its package.json and protocol.json declare
a version and protocol. The e2e seeder no longer writes a manifest.

Addresses #18658.
@gtritchie gtritchie added this to the 2026.10 (Blue Mistflower) milestone Sep 28, 2026
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

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

Passed Failed Skipped Flaky
3335 0 191 4
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 838 0 39 0
✅ desktop-macos 844 0 34 0
✅ desktop-windows 835 0 44 4
✅ server-linux 788 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 cc54cbffff328834ac8bae2b75c020d6d81a4a5a - Run #1279

…-manifest

# Conflicts:
#	src/cpp/session/modules/chat/ChatInstallation.hpp
@gtritchie
gtritchie merged commit f300603 into main Sep 29, 2026
1 of 7 checks passed
@gtritchie
gtritchie deleted the developer/remove-slot-manifest branch September 29, 2026 16:04
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