microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 199 forks source link

Shrink published Rust debug info #3247

Closed Porges closed 1 year ago

Porges commented 1 year ago

I noticed these were getting very big and impacting our CI time due to copying huge artifacts. Presumably this would be slowing down copying in the live environment as well.

Two changes have been made:

Binary Before with debug=1 after compression
onefuzz-agent (Linux) 170 MB 83 MB 30 MB
onefuzz-task (Linux) 284 MB 134 MB 46 MB
onefuzz_agent.pdb (Windows) 89 MB 42 MB
onefuzz_task.pdb (Windows) 150 MB 63 MB
onefuzz-deployment.zip 364 MB 286 MB 285 MB

Overall the compressed release-artifacts reduced from 374 → 297 MB.

Build speed improvements (latest build on main vs this PR):

Step Before After
agent upload-artifact 26s/32s/45s 16s/15s/20s
package download-artifact 1m 57s 26 s
package upload-artifact 2m 8s 1m 35s
codecov-commenter commented 1 year ago

Codecov Report

Merging #3247 (65c405c) into main (042fc24) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3247   +/-   ##
=======================================
  Coverage   29.65%   29.65%           
=======================================
  Files         332      332           
  Lines       39290    39290           
=======================================
  Hits        11651    11651           
  Misses      27639    27639