Skip to content

Fix failing EndToEnd VS integration tests - #7658

Merged
zivkan merged 6 commits into
devfrom
dev-zivkan-migrate-failed-e2e-tests
Aug 28, 2026
Merged

zivkan merged 6 commits into
devfrom
dev-zivkan-migrate-failed-e2e-tests

Conversation

@zivkan

@zivkan zivkan commented Aug 26, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: VS test pipeline

Description

I looked at the NuGet.Client-VS pipeline runs, and targeted tests that were failing most regularly

Removed PowerShell E2E test Outcome
Test-BuildIntegratedProjectGetPackageTransitive Deleted as duplicate. Existing regular Apex test NetCoreTransitivePackageReferenceLimitAsync already covers transitive packages through project references.
Test-AmbiguousStartupProject Migrated to GetProjectFromPMCWithAmbiguousProjectNames_UsesStartupProjectAfterSolutionReload.
Test-InstallPackageWithValuesFromPipe Migrated to InstallPackageFromPMCPipelineInputAsync.
Test-InstallPackageThrowsIfMinClientVersionIsNotSatisfied Migrated to InstallPackageFromPMCWhenMinClientVersionIsNotSatisfied_FailsAsync.
Test-WPFPackageVersionNoInclusiveLowerBoundNU1604 Migrated to RestoreWpfProjectWithUnversionedPackageReference_ReportsNU1604Async.
Test-CreateVsPathContextUsesAssetsFileIfAvailable Migrated to IVsPathContextProvider_WithAssetsFile_UsesRestoredGlobalPackagesFolderAsync.
Test-UpdatePackageThrowsIfMinClientVersionIsNotSatisfied Migrated to UpdatePackageFromPMCWhenMinClientVersionIsNotSatisfied_FailsAsync.
Test-UwpPackageRefClassLibraryCreate Deleted without replacement. This was an obsolete UWP project-creation smoke test, and we explicitly decided not to migrate it.

In addition, an existing Apex test failed in one of my test runs, possibly because the implicit restore on load didn't complete before the test tried to read some info, so added a "wait for restore" which hopefully makes it more reliable.

Finally, waiting 2-3 hours for a CI run was slow, so I had copilot write itself an AGENTS.md doc on how to run the Apex tests locally, so it could be validated in seconds, allowing faster iterations.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@zivkan
zivkan requested a review from a team as a code owner August 26, 2026 22:39
@zivkan

zivkan commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

/azp run NuGet.Client CI

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@zivkan
zivkan enabled auto-merge (squash) August 27, 2026 22:53
@zivkan
zivkan merged commit 46aee09 into dev Aug 28, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-migrate-failed-e2e-tests branch August 28, 2026 00:13
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.

3 participants