Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Shrink published Rust debug info#3247

Merged
Porges merged 4 commits into
mainfrom
shrink-debug
Jun 29, 2023
Merged

Shrink published Rust debug info#3247
Porges merged 4 commits into
mainfrom
shrink-debug

Conversation

@Porges

@Porges Porges commented Jun 28, 2023

Copy link
Copy Markdown
Member

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:

  • Use debug=1 instead of debug=true (equivalent to debug=2); this should be sufficient for our needs
  • On Linux, compress debug information after building
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

codecov-commenter commented Jun 28, 2023

Copy link
Copy Markdown

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           

@Porges Porges changed the title Shrink the debug info Shrink published Rust binaries Jun 28, 2023
@Porges Porges changed the title Shrink published Rust binaries Shrink published Rust debug info Jun 28, 2023
@Porges Porges marked this pull request as ready for review June 28, 2023 23:43
@Porges Porges enabled auto-merge (squash) June 28, 2023 23:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants