GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Make NuGet walk tests ignore the host package cache by mikolalysenko · Pull Request #2037 · SocketDev/socket-patch Conversation
|
| setup | main | this PR |
|---|---|---|
host ~/.nuget/packages holds zz.hostpkg/9.9.9 and newtonsoft.json/13.0.3 |
solution_roots_… FAILED every run, an_uncovered_… intermittent |
100/100 module runs green (host also holding `serilog/3.1.1`) |
no ~/.nuget (CI-like) |
150/150 green | 150/150 + 50/50 green |
So in CI this is latent: no failure reproduced in 150 CI-like runs. The fix makes the tests hermetic for dev machines and removes the cross-test env race. cargo clippy -p socket-patch-core --all-features -D warnings (CI's command) is clean, and rustfmt shows no diff on the touched file. With --all-targets, my local clippy reports 39 lints that main has too; none are in this file.
None. Every test still runs where it ran before (test jobs, PR and merge queue).
https://claude.ai/code/session_011f9aeRytjzpRh8AHn2i5Qh
Generated by Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Two project-mode crawl tests that check an unscoped walk (solution_roots_and_unrestored_projects_keep_the_walk and an_uncovered_sub_project_keeps_the_walk) also crawl search root 3, the global packages folder from NUGET_PACKAGES / DOTNET_CLI_HOME / ~/.nuget/packages. They failed on any machine with a package in ~/.nuget/packages (#2023). They weren't #[serial] either, so they raced the serial tests that point NUGET_PACKAGES and HOME at their own warm folders: with a host package planted, the walk test passed or failed depending on which serial test ran alongside it. Run both crawls through a crawl_local helper. It points NUGET_PACKAGES at an empty tempdir under EnvGuard, and both tests are now #[serial]. Also move the two nuget_home env tests from bare set_var/remove_var onto EnvGuard, so a failed assertion can't leak the variable into later tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011f9aeRytjzpRh8AHn2i5Qh
|
bugbot run Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Review follow-up. An empty global packages folder made the two walk tests stop checking that search root 3 is walked. crawl_local now seeds it with one package, [email protected]: unscoped walks must list it, and scoped crawls must leave it out. Dropping root 3 from crawl_roots now fails three tests. The four scoped crawl tests now also go through crawl_local and are #[serial]. They were still reading the host or a parallel test's global folder, and passed only because `seen` dedups by purl. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011f9aeRytjzpRh8AHn2i5Qh
|
bugbot run Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d089d69. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Labeled Ready for review by the burn-down agent.
Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Final review briefWhat it does. A test-only fix for #2023. The project-mode NuGet crawl tests now point Risk: low. Only the Look here
Verified
Changes I made: none. Open questions: none. Auto-merge is armed, so approving sends this PR straight to the merge queue. Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
#2031 landed on main at 01:23 UTC, after the f5b0374 cut-off these notes were written against, and changes user-visible Go behavior: it completes the go.work handling #2011 introduced (bypassed replaces stay refs; an unread root go.work no longer withholds the root go.mod) and stops the in-memory hosted engine from probing the process cwd for Go workspaces. The other PRs merged since f5b0374 (#2002, #2034, #2035, #2037) change no shipped behavior and need no note. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011f9aeRVgqkQL2WXrHEqeDJ
Co-Authored-By: Claude <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
NuGet crawler test crawls the host's ~/.nuget/packages and fails on dev machines
There was an error while loading. Please reload this page.