Skip to content

Fix CI failure when GeneratedTestAssets directory doesn't exist#15556

Merged
nohwnd merged 2 commits into
microsoft:mainfrom
nohwnd:fix-pipeline-error
Mar 24, 2026
Merged

Fix CI failure when GeneratedTestAssets directory doesn't exist#15556
nohwnd merged 2 commits into
microsoft:mainfrom
nohwnd:fix-pipeline-error

Conversation

@nohwnd
Copy link
Copy Markdown
Member

@nohwnd nohwnd commented Mar 24, 2026

We don't always run with generated test assets, don't fail when they don't exist.

Add -ErrorAction SilentlyContinue to Remove-Item calls for the
GeneratedTestAssets directory in the CI pipeline. The directory may not
exist on first run or on certain pipeline configurations, causing the
pipeline to fail with a 'Cannot find path' error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 24, 2026 06:12
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

Updates the Azure Pipelines configuration to prevent CI failures when the artifacts/tmp/GeneratedTestAssets directory is missing during cleanup steps.

Changes:

  • Adds -ErrorAction SilentlyContinue to Remove-Item cleanup steps to avoid failing when the target path doesn’t exist.

Comment thread azure-pipelines-official.yml Outdated
Comment thread azure-pipelines-official.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 24, 2026 07:04
@nohwnd nohwnd added the 🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it". label Mar 24, 2026
@nohwnd nohwnd enabled auto-merge (squash) March 24, 2026 07:04
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

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

Comment thread azure-pipelines-official.yml
Comment thread azure-pipelines-official.yml
Comment thread azure-pipelines-official.yml
Comment thread azure-pipelines-official.yml
Comment thread azure-pipelines-official.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚢 Ship it! Add to PRs where owner approves automated PR, but cannot approve because they "wrote it".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants