Skip to content

[repo-assist] Add regression test for clitool no-op install detection (#3166) - #4382

Merged
dsyme merged 1 commit into
masterfrom
repo-assist/regression-3166-clitool-noop-def8d76beb52995f
Aug 29, 2026
Merged

dsyme merged 1 commit into
masterfrom
repo-assist/regression-3166-clitool-noop-def8d76beb52995f

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This is an automated PR from Repo Assist, an AI assistant. Please review carefully before merging.

Summary

Investigated #3166 ("paket install is never a noop when a clitool is in the group").

I could not reproduce the reported behavior with the current codebase. Using a manually built paket.dll and a paket.dependencies file containing both a clitool entry and a regular NuGet package, running paket install twice in a row produced:

Paket version 1.0.0+...
Skipping resolver for group Main since it is already up-to-date
Installing into projects:
Created dependency graph (67 packages in total)
Total time taken: 9 milliseconds

The paket.lock file was byte-for-byte identical after the second run — i.e. the resolver was correctly skipped and the operation was a genuine no-op, exactly as expected.

The issue is quite old (2018) and the resolver / change-detection code (DependencyChangeDetection.fs) has had multiple fixes since then, so it looks like this was already resolved by unrelated later work.

What this PR does

Since no existing test covered the "clitool unchanged between deps-file and lock-file" no-op scenario, this PR adds one (CliToolNoopSpecs.fs) so a future regression is caught automatically, alongside the existing DependencyChangesSpecs.fs suite.

No production code changes — test-only addition.

Test Status

  • dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~CliToolNoopSpecs" -f net9 → Passed (1/1)
  • Manual end-to-end repro with built paket.dll (install run twice) confirms correct no-op behavior for clitool groups in the current codebase.

Recommendation

I'll leave a comment on #3166 recommending it be closed as already fixed, backed by this evidence. Maintainers should feel free to close the issue once this PR (or the reasoning) is reviewed.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@ae8d551f07c7ed7619f8c58c7bb4c3ac89395d38

Verified via manual end-to-end repro with the built paket binary that
'paket install' correctly no-ops on a second run when a group contains
a clitool dependency (prints 'Skipping resolver ... since it is already
up-to-date' and produces an unchanged paket.lock). The originally
reported issue appears to already be fixed by later changes to
DependencyChangeDetection.fs.

Adds a unit test covering the no-op detection path for clitool
packages in findNuGetChangesInDependenciesFile, since no existing test
covered this scenario.

Co-authored-by: Copilot <[email protected]>
@dsyme
dsyme marked this pull request as ready for review August 28, 2026 22:58
@dsyme
dsyme merged commit 8b98adb into master Aug 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant