Skip to content

Add install, uninstall gate tests#7265

Open
Nigusu-Allehu wants to merge 9 commits intodevfrom
dev-nyenework-add-gate-tests
Open

Add install, uninstall gate tests#7265
Nigusu-Allehu wants to merge 9 commits intodevfrom
dev-nyenework-add-gate-tests

Conversation

@Nigusu-Allehu
Copy link
Copy Markdown
Member

@Nigusu-Allehu Nigusu-Allehu commented Apr 8, 2026

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3725
Related: https://github.com/NuGet/Client.Engineering/issues/3543

Description

Previously we added a drop for that will be used by the gate tests: #7247. And the drop has a runsetting that specifies a test catagory "Gate". This PR adds more tests to that catagory.

Two gate tests ([TestCategory("Gate")]) to NuGet.Tests.Apex

  1. InstallAndUpdatePackageFromUI_NetCoreProject_Succeeds : Verifies a package can be installed and updated to a newer version
  2. VerifyDeletedAssetsFileIsBackByReloadingProject : Verifies that auto-restore regenerates project.assets.json when
    it is deleted

Both tests are simplified single-template versions copied from NuGet.Tests.Apex.Daily.

Also removed SimpleInstallFromIVsInstaller which was added just for testing the piepline.

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.

@Nigusu-Allehu Nigusu-Allehu self-assigned this Apr 8, 2026
@Nigusu-Allehu Nigusu-Allehu changed the title Add search, install, uninstall gate tests Add Restore, install, uninstall gate tests Apr 8, 2026
@Nigusu-Allehu Nigusu-Allehu changed the title Add Restore, install, uninstall gate tests Add install, uninstall gate tests Apr 8, 2026
@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Apr 16, 2026
@Nigusu-Allehu Nigusu-Allehu force-pushed the dev-nyenework-add-gate-tests branch from 35d7c8e to 0995a8f Compare April 22, 2026 02:32
@dotnet-policy-service dotnet-policy-service Bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Apr 22, 2026
@Nigusu-Allehu Nigusu-Allehu marked this pull request as ready for review April 22, 2026 15:03
@Nigusu-Allehu Nigusu-Allehu requested a review from a team as a code owner April 22, 2026 15:03
uiwindow.InstallPackageFromUI(TestPackageName, TestPackageVersionV1);

// Assert
CommonUtility.AssertPackageInPackagesConfig(VisualStudio, project, TestPackageName, TestPackageVersionV1, Logger);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all packages.config tests.

We need/want .NET core based tests, so it needs to be a netcore class library test.

[TestMethod]
[Timeout(DefaultTimeout)]
[TestCategory("Gate")]
public async Task InstallTopLevelPackageFromUI()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you pick this one?

There's an overlap in the scenario in this method and the one from the regular apex tests.

Copy link
Copy Markdown
Member Author

@Nigusu-Allehu Nigusu-Allehu Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is Net core, and the other ones are packages config.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this test case is from the apex daily pipeline, which is not even something we see in our CI right now. It's supposed to be additional tests.

I'm assuming there's probably a net core version of this scenario in the regular apex tests.

Copy link
Copy Markdown
Member Author

@Nigusu-Allehu Nigusu-Allehu Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I missed it, but I didn't find any focused(simple install/restore) net core tests in the per commit tests. However there are PSM net core tests. Maybe we could make use of them. I will take a look.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's surprising.
We can keep this one then for simplicity. We can always move things around I guess.
Maybe we move that test into the regular pipeline since you've already determined it's stable?


[TestMethod]
[Timeout(DefaultTimeout)]
[TestCategory("Gate")]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly here, this tests the PM UI Top Level and Transitive Package differentiation.

I don't think that's something likely to be broken by partner teams, so I don't think this is a relevant test.

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.

2 participants