Skip to content

Separate printing logic from bundle logic#1110

Merged
topolarity merged 3 commits into
masterfrom
ct/split-summary
Jun 9, 2026
Merged

Separate printing logic from bundle logic#1110
topolarity merged 3 commits into
masterfrom
ct/split-summary

Conversation

@topolarity

@topolarity topolarity commented Jun 2, 2026

Copy link
Copy Markdown
Member

This allows downstream consumers like JuliaC to report sizes more accurately after deleting / stripping libraries or deleting artifacts, etc. or to skip printing these entirely for automated CLI usage.

It's also a nice re-factor anyway.

Drafted by Claude Opus 🤖 and touched up + reviewed by me.

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.33028% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.13%. Comparing base (ae30359) to head (5e3d715).

Files with missing lines Patch % Lines
ext/TerminalSpinners.jl 20.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1110      +/-   ##
==========================================
+ Coverage   85.43%   86.13%   +0.69%     
==========================================
  Files           3        3              
  Lines         831      887      +56     
==========================================
+ Hits          710      764      +54     
- Misses        121      123       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@topolarity topolarity force-pushed the ct/split-summary branch 2 times, most recently from 73a9e5a to aada234 Compare June 3, 2026 16:12
Comment thread src/PackageCompiler.jl Outdated
Comment thread src/PackageCompiler.jl Outdated
@KristofferC

KristofferC commented Jun 3, 2026

Copy link
Copy Markdown
Member

Is it overkill to have the printer be passed into as a function so that the printing actually happens at the same time things are bundled? I kind of like that experience instead of nothing happening for 10s and then the terminal just got a full blast of stuff.

@topolarity

topolarity commented Jun 3, 2026

Copy link
Copy Markdown
Member Author

Is it overkill to have the printer be passed into as a function so that the printing actually happens at the same time things are bundled? I kind of like that experience instead of nothing happening for 10s and then the terminal just got a full blast of stuff.

Hmm, that's challenging to make work with the JuliaC workflow where we'll strip / remove artifacts downstream so the printing really does have to happen after-the-fact

Any ideas?

@topolarity

Copy link
Copy Markdown
Member Author

@KristofferC I'd like to merge this soon, so that I can use it for some additional JuliaC CI in JuliaLang/julia

Let me know if you object - happy to try a different approach

@KristofferC

Copy link
Copy Markdown
Member

Well, my thinking is right now that the printing also works sort of like a progress bar, copying a lot of artifacts usually takes some time and seeing artifact by artifact getting copied visually gives a sense of progress and avoids it looking like PackageCompiler got stuck. Is it possible to keep that "feeling" while still working for the JuliC use case?

@topolarity

topolarity commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

Is it possible to keep that "feeling" while still working for the JuliC use case?

What if we add a proper progress bar? 😉

@KristofferC

Copy link
Copy Markdown
Member

Does flipping the axis of progress from vertical to horizontal help JuliaC? :P

@topolarity

Copy link
Copy Markdown
Member Author

Does flipping the axis of progress from vertical to horizontal help JuliaC? :P

Yes, it does - because then the progress doesn't have to print library / artifact sizes that are incorrect for your final bundle

Just pushed a pair of commits, so let me know what you think. It's not a proper progress bar, but hopefully it's enough to feel OK: Package Compiler: bundling artifacts (3/8): Cuda_jll

topolarity and others added 3 commits June 8, 2026 11:25
This allows downstream consumers like JuliaC to report sizes more
accurately after deleting / stripping libraries or deleting
artifacts, etc.

It's also a nice re-factor anyway.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@topolarity topolarity merged commit e499bad into master Jun 9, 2026
41 of 49 checks passed
@topolarity topolarity deleted the ct/split-summary branch June 9, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants