Fix false “no unit-test or coverage files found” failure in release Unit Tests job#2889
Merged
Conversation
Contributor
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: size-xs Label Categories
For more information, see |
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job "Unit Tests"
Fix false “no unit-test or coverage files found” failure in release Unit Tests job
Jun 4, 2026
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the release workflow’s Unit Tests job to avoid a false failure caused by a find | grep -q guard running under set -o pipefail, where grep -q can terminate early and trigger a broken pipe error.
Changes:
- Replaced the pipe-based “any files under builds/” check with a
find ... -print -quitprobe to avoid SIGPIPE/pipefail flakiness.
| # Defense-in-depth: fail attribution stays on Unit Tests rather | ||
| # than the downstream deploy-docs job ("Artifact not found"). | ||
| if ! find builds -type f | grep -q .; then | ||
| if [ -z "$(find builds -type f -print -quit)" ]; then |
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.
The release workflow’s Unit Tests job was failing despite Vitest passing and generating reports. The failure came from the artifact-presence guard in
release.yml, not from Vite/Vitest output generation itself.Root cause
.github/workflows/release.yml, the guard used:find builds -type f | grep -q .underset -o pipefailgrep -qexits early after first match, which triggers a broken pipe onfind(find: write error), making the pipeline non-zero and falsely tripping the failure path.Fix
if [ -z "$(find builds -type f -print -quit)" ]; then ... fibuilds/is truly empty) and removes pipefail/SIGPIPE flakiness.Config alignment review (no code changes)
vitest.config.jsalready targetsbuilds/coverageandbuilds/test-resultswith configured reporters/output files.