Repository navigation
Move to Nullean.Snapshots 0.15.0 so a partial run no longer fails unit-test - #4872
Merged
Merged
Conversation
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4872/ |
Mpdreamz
force-pushed
the
fix/orphans-skip-unrun-projects
branch
from
November 16, 2026 15:42
a1cfc9d to
3942b15
Compare
| <!-- The solution's release build skips build.fsproj (the running build is its release output), so the project is not a ProjectReference: | ||
| it is built in Debug here and referenced by path to test SnapOrphans. --> | ||
| <Target Name="BuildTheBuildProject" BeforeTargets="ResolveAssemblyReferences"> | ||
| <MSBuild Projects="$(MSBuildThisFileDirectory)..\..\build\build.fsproj" Properties="Configuration=Debug" Targets="Build"> |
There was a problem hiding this comment.
Severity: P3 (Low)
This invokes Build for a dependency that is absent from the test project's restore graph. On a clean checkout, running this test project directly restores its declared project references but not build/build.fsproj, so the nested build fails with NETSDK1004 instead of running the tests. Include the dependency in restore or explicitly restore it before building, without requiring a prior solution/build-script run.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
…t-test 0.15.0 marks a filtered or skipping test run as partial in its manifest, and `snap orphans` skips such a project instead of listing its untouched snapshots. A stale manifest from a local Journeys or filtered run therefore no longer fails the orphan check of `unit-test`. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mpdreamz
force-pushed
the
fix/orphans-skip-unrun-projects
branch
from
November 16, 2026 18:04
3942b15 to
6e94fa9
Compare
Mpdreamz
enabled auto-merge (squash)
November 16, 2026 18:17
Mpdreamz
disabled auto-merge
November 16, 2026 18:18
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.
unit-testno longer fails because a test project's last run was partial: a stale manifest from a local Journeys run or a filtered run is skipped, not reported as orphaned snapshots.Affects: Automation
Prompt summary: A stale Journeys manifest in
.artifacts/.snapshots/received/makesunit-testfail the orphaned-snapshot check, and the message suggests deleting valid snapshots. Fix it in Nullean.Snapshots, not in the build.Why
snap orphansreads one run manifest per project. A run that does not run every test, such as a filtered run or a Journeys run that skips journeys, wrote a manifest naming only the snapshots it touched.unit-testthen reported every other snapshot of that project as an orphan and told the reader to delete them.What
Moves every
Nullean.Snapshots.*package,Nullean.HttpFileParserand thesnaptool to 0.15.0, which fixes this where it starts:--treenode-filter,--filter-uidor--filter, or one that skips a journey or.httpfile, marks its manifest partial.snap orphansskips a partial project with a note, and ignores verified files written after the run started.The build target is unchanged: it still runs
dotnet snap orphansafter the tests. The snapshots PRs are nullean/snapshots#107 and #108.Verify
🤖 Generated with Claude Code