Repository navigation
ci: Stop uploading duplicate tarballs to the release artifact - #25688
Conversation
size-limit report 📦Compared: 987e22f (PR test merge using develop at 6df508e) Against: 6df508e (develop) · base run #63271 ✅ Baseline matches: this diff contains only this PR's changes.
|
JPeer264
left a comment
There was a problem hiding this comment.
Uffs that's a lot of MB to download. Thx for fixing
| with: | ||
| name: ${{ github.sha }} | ||
| retention-days: 90 | ||
| # Do not use `packages/**/*.tgz`: it follows the workspace links in `node_modules` and uploads duplicate tarballs. |
There was a problem hiding this comment.
i think this comment is redundant likely?
There was a problem hiding this comment.
Why redundant? Without it, there's no info about why this glob has to look like it does now and not have the /**/ lookup.
There was a problem hiding this comment.
I am personally up for both. On the one hand you see that right away, on the other hand the git history and PR has more info. IMO both are valid - I'll also vote more for an inline comment as this is increasing the artifact quite a lot
There was a problem hiding this comment.
Maybe we can rephrase it to watch out for deeper globs and warn
There was a problem hiding this comment.
Or I just add an exclusion, that's self-explaining and not just a comment:
!${{ github.workspace }}/packages/**/node_modules/**
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 63 successful. See the run.
Successful checks
|
(cherry picked from commit 7fb94b4)
Since the move to pnpm, the
packages/**/*.tgzglob in the release artifact upload also follows the workspace links inpackages/*/node_modules.The 11.9.0 artifact grew from 31 MB to 689 MB, with 852 tarballs instead of 47 (433 copies of
sentry-core-11.9.0.tgz).Craft publishes every matching tarball in parallel. That crashed the publish runner after only
@sentry/corewent out. Check out the runs: getsentry/publish#9980This PR changes the glob to
packages/*/*.tgz, which matches only the tarball in each package folder.