Skip to content

Skip Helix tests when build step fails#54232

Merged
marcpopMSFT merged 1 commit into
release/8.0.1xxfrom
marcpopMSFT-notestsonfailedbuild
May 8, 2026
Merged

Skip Helix tests when build step fails#54232
marcpopMSFT merged 1 commit into
release/8.0.1xxfrom
marcpopMSFT-notestsonfailedbuild

Conversation

@marcpopMSFT
Copy link
Copy Markdown
Member

Remove 'condition: succeededOrFailed()' from all 'Run Tests in Helix' steps in eng/build.yml and eng/build-pr.yml. Without an explicit condition, Azure Pipelines defaults to 'succeeded()', which skips the test step when the preceding build step fails. This avoids wasting Helix resources on tests that cannot succeed.

Remove 'condition: succeededOrFailed()' from all 'Run Tests in Helix'
steps in eng/build.yml and eng/build-pr.yml. Without an explicit
condition, Azure Pipelines defaults to 'succeeded()', which skips the
test step when the preceding build step fails. This avoids wasting
Helix resources on tests that cannot succeed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 7, 2026 23:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SDK’s Azure Pipelines templates to avoid running Helix test submissions when the preceding build step fails, reducing wasted Helix capacity on runs that are unlikely to succeed.

Changes:

  • Removed condition: succeededOrFailed() from all “Run Tests in Helix” steps in eng/build.yml.
  • Removed condition: succeededOrFailed() from all “Run Tests in Helix” steps in eng/build-pr.yml.

Reviewed changes

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

File Description
eng/build.yml Removes the explicit “run even on failure” condition from Helix test steps so they only run on successful builds.
eng/build-pr.yml Same change as eng/build.yml, applied to PR builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcpopMSFT
Copy link
Copy Markdown
Member Author

btw, tested internally and worked perfectly: https://dev.azure.com/dnceng/internal/_build/results?buildId=2969902&view=results The build failed, finished in 18 minutes, and no tests were run

@marcpopMSFT marcpopMSFT merged commit 1f51f28 into release/8.0.1xx May 8, 2026
26 checks passed
@marcpopMSFT marcpopMSFT deleted the marcpopMSFT-notestsonfailedbuild branch May 8, 2026 17:58
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