Skip to content

Restore independent PR pipeline + pool-aware MI identity + net462/472 unit tests#3935

Merged
iarekk merged 2 commits into
masterfrom
iarekk/ado-net-framework-unit-tests
Jul 13, 2026
Merged

Restore independent PR pipeline + pool-aware MI identity + net462/472 unit tests#3935
iarekk merged 2 commits into
masterfrom
iarekk/ado-net-framework-unit-tests

Conversation

@iarekk

@iarekk iarekk commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Re-lands the pipeline work reverted in #3936 (#3933 + #3934), plus fixes the managed-identity (MI) E2E identity so the test passes on every pipeline that runs it.

1. Restore reverted work

  • 4-stage PR pipeline (Build / Integration / E2E / Managed Identity E2E), MI stage on the MSALMSIV2 pool.
  • Extra unit-test assemblies in the ADO unit glob + Sidecar E2E/integration exclusion filter.

2. Pool-aware MI identity (the reason for the revert)

The MI E2E test hardcoded a UAMI client id. Each build pool has a different identity assigned, so a single constant can't work everywhere — the DevEx id4s-official pipeline (Wilson pool) failed with "Identity not found" when master carried the msiv2uami id.

Fix: the test reads the id from IDWEB_MI_UAMI_CLIENTID and falls back to the Wilson-pool identity:

  • Default (fallback) = 45344e7d (Msal_Integration_tests, Wilson pool) → id4s-official needs no changes.
  • Override = 6325cd32 (msiv2uami, MSALMSIV2 pool), set in template-run-managed-identity-e2e-tests.yaml → used by the Id.Web PR MI stage and the IdWeb OneBranch official MI job (both consume that template).

3. .NET Framework unit tests

VSTest@2 can't discover the net462/net472 xUnit tests on hosted agents, so add dotnet test -f net472 steps mirroring the GitHub Action. Not running net462

@iarekk
iarekk requested a review from a team as a code owner July 9, 2026 20:00
@gladjohn

gladjohn commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

BLOCKING MERGE

Comment thread build/template-test-unit.yaml
@iarekk
iarekk force-pushed the iarekk/ado-net-framework-unit-tests branch from 24c9053 to cad4c43 Compare July 10, 2026 13:27
@iarekk iarekk changed the title Run .NET Framework unit tests (net462/net472) in the ADO PR build Restore independent PR pipeline + pool-aware MI identity + net462/472 unit tests Jul 10, 2026
Comment thread build/template-test-unit.yaml Outdated
iarekk and others added 2 commits July 10, 2026 16:15
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>
@iarekk
iarekk force-pushed the iarekk/ado-net-framework-unit-tests branch from cad4c43 to 21422b3 Compare July 10, 2026 15:20
@iarekk
iarekk requested review from bgavrilMS and gladjohn July 10, 2026 15:44
@iarekk
iarekk merged commit f4de024 into master Jul 13, 2026
9 checks passed
@iarekk
iarekk deleted the iarekk/ado-net-framework-unit-tests branch July 13, 2026 09:28
iarekk added a commit that referenced this pull request Jul 13, 2026
The ADO PR pipeline now runs the full unit test matrix (incl. net462/472)
after #3935, making the dotnetcore.yml GitHub Action redundant. Remove it
and rely on the ADO check for PR validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Jul 19, 2026
github-actions Bot pushed a commit to EelcoLos/nx-tinkering that referenced this pull request Jul 21, 2026
Pinned
[Microsoft.Identity.Web](https://github.com/AzureAD/microsoft-identity-web)
at 4.13.2.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.Identity.Web's
releases](https://github.com/AzureAD/microsoft-identity-web/releases)._

## 4.13.2

## What's Changed
* Apply reserved-header handling on the request-clone path and cover all
X-MS-TOKEN- headers by @​iNinja in
AzureAD/microsoft-identity-web#3915
* Restore independent PR pipeline + pool-aware MI identity + net462/472
unit tests by @​iarekk in
AzureAD/microsoft-identity-web#3935
* Post-release 4.13.0: changelog and public API shipped move by
@​neha-bhargava in
AzureAD/microsoft-identity-web#3937
* Remove redundant 'Run unit tests' GitHub Action by @​iarekk in
AzureAD/microsoft-identity-web#3939
* Apply consistent redirect-URI validation on AccountController.SignIn
by @​iNinja in
AzureAD/microsoft-identity-web#3940
* Fix duplicate logging of MsalUiRequiredException (in-repo copy of
#​3910) by @​iarekk in
AzureAD/microsoft-identity-web#3941
* Use MSAL's recent UserFIC API for agentic flows by @​Avery-Dunn in
AzureAD/microsoft-identity-web#3842
* Restore CustomizeHttpRequestMessage to run after the authorization
header by @​neha-bhargava in
AzureAD/microsoft-identity-web#3943
* Bump Microsoft.IdentityModel.Tokens.Saml from 5.7.0 to 8.19.1 by
@​dependabot[bot] in
AzureAD/microsoft-identity-web#3909
* Revert #​3909: keep OWIN Saml/WsFederation on 5.7.0 by @​iarekk in
AzureAD/microsoft-identity-web#3944
* Bump Microsoft.Identity.Abstractions from 12.4.0 to 12.5.0 by
@​neha-bhargava in
AzureAD/microsoft-identity-web#3947
* Add OnBeforeAuthHeaderCreation / OnAfterAuthHeaderCreation hooks to
DownstreamApi by @​neha-bhargava in
AzureAD/microsoft-identity-web#3942
* Update IdentityModelV5Version and SamlPackageVersion to 5.7.1 in proj…
by @​trwalke in
AzureAD/microsoft-identity-web#3950
* Rename retired MSALMSIV2 agent pool to MISEManagedIdentity by
@​gladjohn with @​Copilot in
AzureAD/microsoft-identity-web#3949
* Improve IDW10109 error handling for credential loading failures by
@​Avery-Dunn in
AzureAD/microsoft-identity-web#3946
* Bump MSAL dependencies to 4.86.1 in central props by @​gladjohn with
@​Copilot in AzureAD/microsoft-identity-web#3953
* Bump the notsecurity group with 3 updates by @​dependabot[bot] in
AzureAD/microsoft-identity-web#3954


**Full Changelog**:
AzureAD/microsoft-identity-web@4.13.0...4.13.2

Commits viewable in [compare
view](AzureAD/microsoft-identity-web@4.13.0...4.13.2).
</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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