Skip to content

Wire testutils into msal instrumented tests + add instrumented PR pipeline, Fixes AB#3678342#2540

Open
p3dr0rv wants to merge 11 commits into
devfrom
pedroro/instrumented-test-retry
Open

Wire testutils into msal instrumented tests + add instrumented PR pipeline, Fixes AB#3678342#2540
p3dr0rv wants to merge 11 commits into
devfrom
pedroro/instrumented-test-retry

Conversation

@p3dr0rv

@p3dr0rv p3dr0rv commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

AB#3678342

What

Makes FlakyTestRetryRule / @RetryFlakyTest (added in common) available to broker's instrumented (androidTest) suite (AADAuthenticator), and adds a PR-validation pipeline for instrumented tests.

Changes

  • androidTestLocalImplementation / androidTestDistImplementation on testutils with transitive = false. This is important here: testutils otherwise drags a second BouncyCastle line (bcprov-jdk15to18 vs the bcprov-jdk18on already present) which broke mergeLocalDebugAndroidTestJavaResource. transitive=false pulls only the rule classes.
  • pr-broker-instrumented.yml — runs AADAuthenticator:connectedLocalDebugAndroidTest on an emulator.

Depends on

Common PR (AzureAD common-for-android #3181). The wiring is harmless before that lands; @RetryFlakyTest becomes usable once the common submodule is bumped to include the rule.

…eline

- androidTest{Local,Dist}Implementation testutils with transitive=false so msal androidTest can use FlakyTestRetryRule/@RetryFlakyTest once the common submodule is bumped. transitive=false avoids a second BouncyCastle line on the instrumented classpath.

- pr-msal-instrumented.yml: PR-validation pipeline running msal:connectedLocalDebugAndroidTest on an emulator.
Copilot AI review requested due to automatic review settings July 10, 2026 23:08
@p3dr0rv
p3dr0rv requested a review from a team as a code owner July 10, 2026 23:08
@github-actions

Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds infrastructure to make FlakyTestRetryRule / @RetryFlakyTest available to MSAL’s instrumented (androidTest) suite, and introduces a dedicated PR-validation pipeline that runs MSAL instrumented tests on an emulator.

Changes:

  • Wire testutils into msal’s androidTest configurations (local + dist) with transitive = false.
  • Add pr-msal-instrumented.yml to run msal:connectedLocalDebugAndroidTest as a PR build validation pipeline and publish logs/reports.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
msal/build.gradle Adds androidTestLocalImplementation / androidTestDistImplementation dependency wiring for testutils retry utilities.
azure-pipelines/pull-request-validation/pr-msal-instrumented.yml New ADO pipeline to provision an emulator, run MSAL instrumented tests, and publish logcat + HTML reports.

Comment thread azure-pipelines/pull-request-validation/pr-msal-instrumented.yml Outdated
Comment thread azure-pipelines/pull-request-validation/pr-msal-instrumented.yml Outdated
@p3dr0rv
p3dr0rv requested a review from a team as a code owner July 14, 2026 06:43
@p3dr0rv p3dr0rv added the No-Changelog This change does not update the changelog. label Jul 16, 2026
@AzureAD AzureAD deleted a comment from github-actions Bot Jul 16, 2026
@github-actions

Copy link
Copy Markdown

❌ Work item link check failed. Description contains AB#3678342 but the Bot could not link it to an Azure Boards work item.

Click here to learn more.

@github-actions

Copy link
Copy Markdown

❌ Invalid work item number: AB#3678342

##. Work item number must be a valid integer.

Click here to learn more.

@github-actions

Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3678342 to an Azure Boards work item.

@github-actions github-actions Bot changed the title Wire testutils into msal instrumented tests + add instrumented PR pipeline Wire testutils into msal instrumented tests + add instrumented PR pipeline, Fixes AB#3678342 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

msal No-Changelog This change does not update the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants