Separate printing logic from bundle logic#1110
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
73a9e5a to
aada234
Compare
aada234 to
58a8525
Compare
|
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? |
|
@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 |
|
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? |
What if we add a proper progress bar? 😉 |
|
Does flipping the axis of progress from vertical to horizontal help JuliaC? :P |
c1aee48 to
3ea0729
Compare
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: |
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>
3ea0729 to
5e3d715
Compare
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.