Repository navigation
Move ScopedFileSystem to 0.7.2 and Snapshots to 0.14 - #4864
Merged
Merged
Conversation
ComputeConfigurationHash checked file.Exists on the injected file system and then read the bytes with File.ReadAllBytes, which uses the real disk. A test with a MockFileSystem passed only when the real config-runtime folder for the hash already existed on the machine. It now reads through file.FileSystem. Production behaviour is the same, because it runs on the real file system. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ScopedFileSystem 0.7.2 has a net11.0 build that implements the hard link members of System.IO.Abstractions 23, which held back System.IO.Abstractions, Snapshots and Pagefind.Net. They move together: System.IO.Abstractions 23, Snapshots and HttpFileParser 0.14, Pagefind.Net 0.6 and the snap tool 0.14. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
akira28
approved these changes
Nov 16, 2026
Member
Author
|
typeload exception wasn't due to missing net11 but interface mismatched with System.IO.Abstractions 23 |
Mpdreamz
enabled auto-merge (squash)
November 16, 2026 11:32
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4864/ |
Mpdreamz
added a commit
that referenced
this pull request
Nov 16, 2026
Main took ScopedFileSystem, Snapshots and System.IO.Abstractions in #4864. This branch keeps main's versions and its own ModelContextProtocol 2.4. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Takes ScopedFileSystem 0.7.2, Snapshots 0.14, Pagefind.Net 0.6 and System.IO.Abstractions 23, which were held back until ScopedFileSystem worked on net11.0. No verified snapshot changes.
Affects: Internals only
Prompt summary: Bump ScopedFileSystem 0.7.2 and Snapshots now that the net11.0 fix is released.
Why
#4833 held these back. ScopedFileSystem 0.7.1 had no net11.0 build, so it failed with a
TypeLoadExceptionagainst System.IO.Abstractions 23, and Snapshots 0.12 and Pagefind.Net 0.6 need that version. nullean/scoped-filesystem#31 added the build and 0.7.2 is on nuget.What
Dependency bumps
ScopedFileSystem 0.7.2, System.IO.Abstractions and its testing helpers 23.0.0, Snapshots and HttpFileParser 0.14.0, Pagefind.Net 0.6.0, and the
snaptool 0.14.0. I took Snapshots 0.14, two releases past the 0.12 that was first held back, because the whole family moves together. Argh and Make.Fs 0.30, Proc 0.22.1 and curb 0.15 are also out; they are not part of this PR.A latent bug the bump showed
AssemblerBuildStampService.ComputeConfigurationHashcheckedfile.Existson the injected file system and then read the bytes with the staticFile.ReadAllBytes, which uses the real disk.Compute_ValidCheckouts_ReturnsStamp, which uses aMockFileSystem, passed only while the realconfig-runtime/<hash>folder existed on the machine. The new package versions changed the hash, so the folder was missing and the test failed every time. The method now reads throughfile.FileSystem. In production that is the real file system, so nothing changes there.Verify
mise install mise run test mise run journeys:testAll 8,969 unit tests pass. The journeys project passes 90 and skips the 10 live ones, with no pending snapshots. The change to
AssemblerBuildStamp.cshas no test of its own besides the one that failed.