Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: debug build with release-profile level of debug symbols #2047

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Mar 28, 2023

Before (nix build #.debug.workspaceBuild, uncompressed => compressed):

fedimint-workspace-build> /*stdin*\            : 17.83%   (  9.16 GiB =>   1.63 GiB, /nix/store/mfy5k84rxqfh3x7ss3wwnyxf8z1zv752-fedimint-workspace-build-0.0.1/target.tar.zst)

After:

fedimint-workspace-build> /*stdin*\            : 17.46%   (  6.57 GiB =>   1.15 GiB, /nix/store/j7gh6rsi65g2ld3z3wkqdn8ymfyjl7j4-fedimint-workspace-build-0.0.1/target.tar.zst)

According to https://users.rust-lang.org/t/keeping-debug-info-but-smaller/55009/3 debug=1 is the same level that release build uses, which should be adequate for CI.

BTW. If you're curious, debug=0 produces:

fedimint-workspace-build> /*stdin*\            : 18.85%   (  4.04 GiB =>    779 MiB, /nix/store/4f5niazddwy5gk00bnzspxsph0iwp3ch-fedimint-workspace-build-0.0.1/target.tar.zst)

Before (`nix build #.debug.workspaceBuild`, uncompressed => compressed):

```
fedimint-workspace-build> /*stdin*\            : 17.83%   (  9.16 GiB =>   1.63 GiB, /nix/store/mfy5k84rxqfh3x7ss3wwnyxf8z1zv752-fedimint-workspace-build-0.0.1/target.tar.zst)
```

After:

```
fedimint-workspace-build> /*stdin*\            : 17.46%   (  6.57 GiB =>   1.15 GiB, /nix/store/j7gh6rsi65g2ld3z3wkqdn8ymfyjl7j4-fedimint-workspace-build-0.0.1/target.tar.zst)
```

According to https://users.rust-lang.org/t/keeping-debug-info-but-smaller/55009/3
`debug=1` is the same level that release build uses, which should be
adequate to our needs. If anyone ever complains I'll introduce
a new custom build level.
@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2023

Codecov Report

Patch coverage has no change and project coverage change: 0.01 🎉

Comparison is base (aea5464) 61.76% compared to head (d230bf5) 61.77%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2047       /-   ##
==========================================
  Coverage   61.76%   61.77%    0.01%     
==========================================
  Files         144      144              
  Lines       28882    28882              
==========================================
  Hits        17838    17843        5     
  Misses      11044    11039       -5     

see 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dpc dpc force-pushed the try-debug-info-1 branch from 2f52115 to f06433e Compare March 28, 2023 05:15
@dpc dpc changed the title chore: debug build with release-mode level of debug symbols chore: debug build with release-profile level of debug symbols Mar 28, 2023
Move `debug=1` to a custom `ci` build profile, to leave the debug
mode as it was before.
@dpc dpc force-pushed the try-debug-info-1 branch from f06433e to d230bf5 Compare March 28, 2023 05:38
Copy link
Contributor

@jkitman jkitman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, does this have any downsides?

@dpc
Copy link
Contributor Author

dpc commented Mar 28, 2023

LGTM, does this have any downsides?

I don't see any, but chances are I'm just missing something. :D

It's not going to be difficult to revert though, so should be fine.

@justinmoon justinmoon merged commit f9c67c0 into fedimint:master Mar 29, 2023
@dpc dpc deleted the try-debug-info-1 branch March 29, 2023 01:41
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.

4 participants