Skip to content

Run missing unit test projects in the ADO PR build - #3934

Merged
Iarek Kovtunenko (iarekk) merged 2 commits into
masterfrom
iarekk/ado-unit-test-coverage
Jul 9, 2026
Merged

Iarek Kovtunenko (iarekk) merged 2 commits into
masterfrom
iarekk/ado-unit-test-coverage

Conversation

@iarekk

Copy link
Copy Markdown
Contributor

The ADO PR build's unit-test step only globbed Microsoft.Identity.Web.Test.dll, so four unit test projects that the dotnetcore.yml GitHub Action already runs were never executed in the ADO run:

Project Tests
Microsoft.Identity.Web.UI.Test (net8/net9) 16
Sidecar.Tests (net10) 126
OidcIdpSignedAssertionProviderTests (net9) 3
CustomSignedAssertionProviderTests (net9) 1

All four are part of Microsoft.Identity.Web.sln and are already built by the Build stage's full multi-TFM build, so this just adds them to the unit-test testAssemblyVer2 glob. No new build steps.

The unit-test VSTest step only ran Microsoft.Identity.Web.Test.dll,
skipping four projects the GitHub Action already covers: UI.Test,
Sidecar.Tests (126 tests), OidcIdp and CustomSignedAssertion provider
tests. All are built by the full solution build, so add them to the
unit-test glob.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iarekk
Iarek Kovtunenko (iarekk) marked this pull request as ready for review July 9, 2026 18:41
@iarekk
Iarek Kovtunenko (iarekk) requested a review from a team as a code owner July 9, 2026 18:41
Sidecar.Tests contains SidecarEndpointsE2ETests and SidecarIntegrationTests
that need a live sidecar and are filtered out in the GitHub Action. They
failed on the hosted ADO agent. Add the same VSTest filter so only the
in-memory Sidecar tests run, matching GH parity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iarekk
Iarek Kovtunenko (iarekk) merged commit 8c128e0 into master Jul 9, 2026
9 checks passed
@iarekk
Iarek Kovtunenko (iarekk) deleted the iarekk/ado-unit-test-coverage branch July 9, 2026 19:22
Copilot AI added a commit that referenced this pull request Jul 9, 2026
…est template, original MI client ID; delete 5 added template files
Gladwin Johnson VR (gladjohn) pushed a commit that referenced this pull request Jul 9, 2026
* Initial plan

* Revert PRs #3933 and #3934: restore single-job pipeline, aggregated test template, original MI client ID; delete 5 added template files

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Iarek Kovtunenko (iarekk) added a commit that referenced this pull request Jul 10, 2026
Restores the 4-stage PR pipeline and extra unit-test coverage from
#3933/#3934 (reverted in #3936), with two fixes so the managed-identity
E2E test runs on every pool that consumes these tests:

- TokenAcquirer MI test now reads the UAMI client id from
  IDWEB_MI_UAMI_CLIENTID, falling back to the Msal_Integration_tests
  identity (45344e7d) assigned to the Wilson pool used by the
  id4s-official pipeline. That pipeline needs no changes.
- template-run-managed-identity-e2e-tests.yaml sets IDWEB_MI_UAMI_CLIENTID
  to the msiv2uami identity (6325cd32) assigned to the MSALMSIV2 pool,
  so the Id.Web PR pipeline and IdWeb OneBranch official MI job use it.

Also re-adds the net462/net472 dotnet test steps that VSTest@2 cannot
discover on hosted agents.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Iarek Kovtunenko (iarekk) added a commit that referenced this pull request Jul 10, 2026
Restores the 4-stage PR pipeline and extra unit-test coverage from
#3933/#3934 (reverted in #3936), with two fixes so the managed-identity
E2E test runs on every pool that consumes these tests:

- TokenAcquirer MI test now reads the UAMI client id from
  IDWEB_MI_UAMI_CLIENTID, falling back to the Msal_Integration_tests
  identity (45344e7d) assigned to the Wilson pool used by the
  id4s-official pipeline. That pipeline needs no changes.
- template-run-managed-identity-e2e-tests.yaml sets IDWEB_MI_UAMI_CLIENTID
  to the msiv2uami identity (6325cd32) assigned to the MSALMSIV2 pool,
  so the Id.Web PR pipeline and IdWeb OneBranch official MI job use it.

Also re-adds the net472 dotnet test step that VSTest@2 cannot discover
on hosted agents.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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