Enable MTP Test Retry in Pipelines#5596
Open
mikaelweave wants to merge 3 commits into
Open
Conversation
- Add AllowPtrToDetectTestRunRetryFiles: true as a job-level variable to all test jobs (SQL, Cosmos, export, and build/unit test jobs) - Re-enable failTaskOnFailedTests: true in all PublishTestResults@2 tasks (removes workaround for microsoft/testfx#7167 now that cross-platform support is fixed via azure-pipelines-agent#5496 and azure-pipelines-tasks#21934) - Add --report-trx to unit test arguments in build.yml (non-coverage path) for consistency with coverage path Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The SQL and Cosmos integration test jobs run tests via DotNetCoreCLI@2 'command: test', which auto-publishes results (publishTestResults defaults to true). That built-in publish is not retry-aware, so each MTP retry attempt surfaced as its own test run (e.g. 'R5 SQL Integration Tests_1' failed and '_2' passed) in addition to the merged retry-aware run published by the explicit PublishTestResults@2 task. Set publishTestResults: false on the test tasks so the explicit retry-aware PublishTestResults@2 task is the sole publisher, removing the duplicate and failed-attempt test runs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5596 +/- ##
==========================================
- Coverage 77.61% 77.30% -0.32%
==========================================
Files 983 996 +13
Lines 36005 36550 +545
Branches 5469 5541 +72
==========================================
+ Hits 27947 28254 +307
- Misses 6710 6927 +217
- Partials 1348 1369 +21 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Enables the Microsoft Testing Platform Azure retry feature on all test jobs, now that Linux support has been fixed in the upstream Azure Pipelines infrastructure:
microsoft/azure-pipelines-agent#5496 — agent now detects *.retry.trx\ files on Linux
microsoft/azure-pipelines-tasks#21934 — \PublishTestResultsV2\ reads \AllowPtrToDetectTestRunRetryFiles\ from env on Linux
AB#189958
Testing
Describe how this change was tested.
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)