Repository navigation
Remove the Posit Assistant slot manifest - #18986
Merged
Merged
Conversation
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.
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 |
…-manifest # Conflicts: # src/cpp/session/modules/chat/ChatInstallation.hpp
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.
Removes
.slot-manifest.jsonfrom 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:
protocol.jsondeclares a protocol andpackage.jsondeclares a versiondist/clientexists, anddist/server/main.jsanddist/client/index.htmlare non-emptyThe 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'spai/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.