Normalize coverage artifacts and expose build outputs#9
Conversation
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
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. Comment |
There was a problem hiding this comment.
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
.xcresultbundles (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.
♻️ 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
📚 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.