revert(ci): skip coverage artifact upload on fork PRs#1296
revert(ci): skip coverage artifact upload on fork PRs#1296muddlebee merged 1 commit intoTracer-Cloud:mainfrom
Conversation
- Restore upload-artifact if: exclude fork PRs (pushes and same-repo PRs unchanged). - Fork PRs still run full pytest with coverage; only artifact retention is skipped.
|
🛸 Aliens watching our repo just upgraded @muddlebee's threat level to: do not engage — too competent. 👽 👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome. |
Greptile SummaryThe PR adds a fork-detection guard to the Confidence Score: 5/5Safe to merge — single-line CI condition change with correct logic for all three event paths. No bugs, no security concerns, and no custom-rule violations. The fork-detection expression follows the standard GitHub Actions pattern and handles push, same-repo PR, and fork PR cases correctly. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[CI: Upload coverage step] --> B{matrix.os == 'ubuntu-latest'?}
B -- No --> Z[Skip upload]
B -- Yes --> C{github.event_name != 'pull_request'?}
C -- Yes
push to main --> U[Upload artifact]
C -- No
PR event --> D{head.repo.fork == false?}
D -- Yes
same-repo PR --> U
D -- No
fork PR --> Z
Reviews (1): Last reviewed commit: "ci: skip coverage artifact upload on for..." | Re-trigger Greptile |

Summary
Reverts the widening of the Upload coverage step from #1291 so fork PRs no longer upload
htmlcov/and.coverageas Actions artifacts.Behavior
--covand terminal/html reports in the job log; only the artifact upload is skipped (reduces storage/noise for fork workflows).Related
Follow-up to #1291 coverage-upload change.