Conversation
|
Review requested:
|
|
Testing with only 10 seems a bit low, I've started a test with more: https://github.com/aduh95/node/actions/runs/35836595280 |
|
From my test, the results is that on 256 runs with
Worth noting that even the minimal time on the ARM runner costs more than the average slim runner usage (which includes the ones that timed out at 15 minutes). A more concerning result is that the resulting tarball does not seem to be deterministic at all, oscillating between 119 MiB and 131 MiB 🤔 |
|
@aduh95 Thanks for running the larger test! This suggests the timeout rate on On cost, do you know roughly how often For the tarball size difference, one possibility is the runner memory difference: |
|
Another option could be to keep https://github.com/inoway46/node/actions/runs/35888707875
Would keeping |
|
Follow-up testing: |
|
I find this approach much more interesting, thanks for sharing your findings. It doesn’t seem that GH makes us pay for the size of artefacts (if we reach the limit faster, I guess they’ll simply keep fewer items from older runs, which is definitely not a big deal), so not only we win by getting fewer timeouts, but we also have to pay less. So I’m definitely +1 on any size increase that ends up with an even greater percentage of time gain. |
|
If the larger artifact size is acceptable, |
|
Run a few more tests (https://github.com/aduh95/node/actions/runs/36052019083):
The sweet spot seems to be between compression levels 5 and 6 (probably because a larger artifact takes longer to upload), I suggest we go with 5. |
|
Also tested for the "slim" tarballs used by
Here compression level 5 looks worse than both 6 and 4, so 🤷 maybe pick 6 after all (or I suppose we could pick different values for each workflow) |
|
Thanks for running these comparisons! Given the |
Make source-tarball gzip compression configurable, keeping level 9 as the default. Use level 6 in build-tarball and test-shared to reduce tarball creation time with a small increase in archive size. Refs: nodejs#66228 (comment) Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
b467b4c to
85bfa90
Compare
Make source-tarball gzip compression configurable, keeping level 9 as the default. Use level 6 in build-tarball and test-shared to reduce tarball creation time with a small increase in archive size. Refs: nodejs#66228 (comment) Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
85bfa90 to
ec3486d
Compare
Make source-tarball gzip compression configurable, keeping level 9 as the default. Use level 6 in build-tarball and test-shared to reduce tarball creation time with a small increase in archive size. Refs: nodejs#66228 (comment) Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
ec3486d to
cf9b95d
Compare
|
Can you split this in two commits? E.g. one |
Make gzip compression configurable for source, header, and binary tarballs. Keep level 9 as the default. Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Use gzip level 6 in build-tarball and test-shared to reduce tarball creation time with a small increase in archive size. Refs: nodejs#66228 (comment) Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
cf9b95d to
40bf6b7
Compare
|
Updated the remaining gzip invocations and split the changes into two commits. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66228 +/- ##
==========================================
+ Coverage 90.29% 90.33% +0.04%
==========================================
Files 790 789 -1
Lines 272880 273493 +613
Branches 52103 52280 +177
==========================================
+ Hits 246385 247062 +677
+ Misses 16936 16900 -36
+ Partials 9559 9531 -28 🚀 New features to boost your workflow:
|
Failed to resume CIFull Auto Start CI output |
Make source-tarball gzip compression configurable, keeping level 9 as
the default. Use level 6 in build-tarball and test-shared to reduce
tarball creation time with a small increase in archive size.
Benchmark results:
Refs: #64972 (comment)