Skip to content

Normalize coverage artifacts and expose build outputs#9

Merged
PSchmiedmayer merged 3 commits into
mainfrom
fix/coverage-artifact-layout
Jul 13, 2026
Merged

Normalize coverage artifacts and expose build outputs#9
PSchmiedmayer merged 3 commits into
mainfrom
fix/coverage-artifact-layout

Conversation

@PSchmiedmayer

@PSchmiedmayer PSchmiedmayer commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

♻️ Current situation & Problem

SchmiedmayerLab/NutriSight#1 exposed a layout mismatch in the reusable coverage workflow. A single artifact is extracted directly into the download destination, while multiple artifacts retain artifact-named wrapper directories. The workflow assumed only the wrapped layout, so a valid xcresult could not be found.

The reusable build workflow inferred its result bundle and artifact names correctly, but did not expose them to downstream jobs. Callers therefore had to duplicate an inferred name when invoking the coverage workflow.

⚙️ Release Notes

  • Normalize single and multiple xcresult artifact layouts before conversion.
  • Support both direct and wrapped lcov artifact layouts.
  • Validate downloaded coverage inputs and report clear errors for invalid bundles.
  • Expose resolved result_bundle and artifact_name outputs from the reusable xcodebuild workflow.

📚 Documentation

The coverage workflow now documents the single-artifact extraction behavior inline and stages downloads outside the checked-out repository. Callers can pass the build output to coverage through needs..outputs.artifact_name while existing literal names and glob patterns remain supported.

✅ Testing

Code of Conduct & Contributing Guidelines

By creating and submitting this pull request, I agree to follow the Code of Conduct and Contributing Guidelines.

  • I agree to follow the Code of Conduct and Contributing Guidelines.

Copilot AI review requested due to automatic review settings July 13, 2026 08:28
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@PSchmiedmayer, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 4 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: afc2613a-82a9-4c09-b9a2-854e9aa8f9bd

📥 Commits

Reviewing files that changed from the base of the PR and between 5484c49 and 5251e4c.

📒 Files selected for processing (2)
  • .github/workflows/coverage.yml
  • .github/workflows/xcodebuild.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PSchmiedmayer PSchmiedmayer changed the title Normalize downloaded coverage artifact layouts Normalize coverage artifacts and expose build outputs Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 reusable coverage.yml workflow to normalize downloaded coverage artifact layouts so both single-artifact (flattened) and multi-artifact (wrapped) download layouts can be processed reliably before converting/uploading coverage.

Changes:

  • Downloads coverage artifacts into ${{ runner.temp }} to avoid staging inside the checked-out repository.
  • Adds validation and layout normalization for .xcresult bundles (flattened vs. wrapped extraction).
  • Improves lcov path resolution to support both direct-file and wrapped-directory artifact layouts.

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

Comment thread .github/workflows/coverage.yml Outdated
Comment thread .github/workflows/coverage.yml
@PSchmiedmayer PSchmiedmayer self-assigned this Jul 13, 2026
@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Jul 13, 2026
@PSchmiedmayer
PSchmiedmayer merged commit 3d02da3 into main Jul 13, 2026
10 of 11 checks passed
@PSchmiedmayer
PSchmiedmayer deleted the fix/coverage-artifact-layout branch July 13, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants