Skip to content

Close the NuGet isolation review findings - #19

Merged
vfofanov merged 2 commits into
mainfrom
fix/test-nuget-isolation-review
Oct 6, 2026
Merged

vfofanov merged 2 commits into
mainfrom
fix/test-nuget-isolation-review

Conversation

@vfofanov

@vfofanov vfofanov commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #18: seven review points checked against tests/nuget-isolation.sh.

  • Start race: a run's folder (and a harvest's staging folder) is created under a temporary name and renamed once its marker is inside; the sweep skips a marker with no pid yet.
  • Kit packages in the shared folder: a run refuses a shared folder that already holds a kit-prefixed package, naming it.
  • One kit predicate, exact on id boundaries: DragoAnt.MSBuildKit matches itself and DragoAnt.MSBuildKit.X, not DragoAnt.MSBuildKitFoo; used by the snapshot, the harvest and the new refusal.
  • Failed save / failed delete: a package that cannot be moved into the shared folder is named in a NOTE; a folder that cannot be removed is retried three times, reported and left to the next run's sweep. Neither fails the run.
  • Docs: the run never restores from or writes to the machine's folder; the guard only reads it, and the text says what it cannot see.

Did not need a fix, now covered by checks: the machine's folder behind a junction/symlink or its 8.3 name was already refused (pwd -P resolves both); the script stops no process and clears no machine-wide cache.

tests/nuget-isolation.test.sh: 35 checks (was 23), new ones committed red first.

A run's folder gets its name only with the marker inside, and the
sweep skips a marker without a pid. A shared folder that holds a kit
package is refused. A kit prefix matches on id boundaries. A package
that cannot be saved and a folder that cannot be removed are reported
and left to the next run. The docs say what the guard cannot see.
@vfofanov
vfofanov marked this pull request as ready for review October 6, 2026 22:48
@vfofanov
vfofanov merged commit 5fc0acf into main Oct 6, 2026
4 checks passed
@vfofanov
vfofanov deleted the fix/test-nuget-isolation-review branch October 6, 2026 22:51
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