Skip to content

Gate Aspire doctor and failure logs when tests are skipped - #1505

Open
afscrome wants to merge 1 commit into
mainfrom
afscrome-gate-aspire-doctor-step
Open

Gate Aspire doctor and failure logs when tests are skipped#1505
afscrome wants to merge 1 commit into
mainfrom
afscrome-gate-aspire-doctor-step

Conversation

@afscrome

@afscrome afscrome commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an explicit id to the Run tests step in .github/workflows/tests.yaml
  • gate failure diagnostics with steps.run-tests.outcome != 'skipped'
  • prevent Aspire doctor, npm log upload, and TypeScript app host log upload from running when tests never started

Why

This avoids some misleading errors where at first glance you may think that aspire doctor caused the CI failure, but it was really just a knock on from the tooling setup failure.

image

Prevent Aspire doctor and failure log uploads from running when the Run tests step is skipped by gating those steps on the run-tests outcome.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 2, 2026 10:14
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1505

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1505"

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

This PR updates the CI test workflow to avoid running failure diagnostics that assume tests executed when the job fails before the test step begins.

Changes:

  • Adds an explicit step id (run-tests) to the “Run tests” step.
  • Gates failure-only diagnostics (npm logs, TypeScript AppHost logs, aspire doctor) on the test step not being skipped.

@afscrome afscrome changed the title Gate Aspire doctor/log uploads when tests are skipped Gate Aspire doctor and failure logs when tests are skipped Aug 2, 2026
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.

2 participants