Skip to content

Fix PR coverage comment never posting#1541

Merged
katiewasnothere merged 1 commit into
apple:mainfrom
noah-thor:coverage-action-fix
May 11, 2026
Merged

Fix PR coverage comment never posting#1541
katiewasnothere merged 1 commit into
apple:mainfrom
noah-thor:coverage-action-fix

Conversation

@noah-thor

Copy link
Copy Markdown
Contributor

There is a bug in the artifact downloading where a single artifact matching a pattern is extracted flat to the working directory without creating a subdirectory. This meant the glob pr-coverage-*/pr-number.txt never matched, silently skipping the comment step on every run.

Fixed by using merge-multiple: true with an explicit path, giving a deterministic download location regardless of artifact count.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fix the GitHub actions to post coverage numbers

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

download-artifact@v8 has a known bug (apple#426) where a single artifact
matching a pattern is extracted flat to the working directory without
creating a subdirectory. This meant the glob `pr-coverage-*/pr-number.txt`
never matched, silently skipping the comment step on every run.

Fix by using `merge-multiple: true` with an explicit `path`, giving a
deterministic download location regardless of artifact count.
@github-actions github-actions Bot added the ci label May 11, 2026
@katiewasnothere katiewasnothere merged commit cec5865 into apple:main May 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants