Skip to content

Fix passing -O1 to build from cargo test #738

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

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

TheBlueMatt
Copy link
Collaborator

In 9e03087 we started setting
opt-level only on profile.test and not profile.dev. When that
commit was authored I tested only that rustc was being called with
opt-level set in its flags, not that the resulted run ran at the
speed I expected. It seems profile.test isn't applied properly to
dependencies or so, resulting in tests running much slower than
they do at profile.dev.opt-level=1.

In 9e03087 we started setting
`opt-level` only on profile.test and not profile.dev. When that
commit was authored I tested only that rustc was being called with
opt-level set in its flags, not that the resulted run ran at the
speed I expected. It seems profile.test isn't applied properly to
dependencies or so, resulting in tests running much slower than
they do at profile.dev.opt-level=1.
@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #738 into main will decrease coverage by 0.59%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #738      +/-   ##
==========================================
- Coverage   91.94%   91.34%   -0.60%     
==========================================
  Files          37       37              
  Lines       20108    21964    +1856     
==========================================
+ Hits        18489    20064    +1575     
- Misses       1619     1900     +281     
Impacted Files Coverage Δ
lightning/src/util/logger.rs 59.67% <0.00%> (-36.99%) ⬇️
lightning/src/util/config.rs 69.04% <0.00%> (-30.96%) ⬇️
lightning/src/ln/peer_handler.rs 54.74% <0.00%> (-3.70%) ⬇️
lightning/src/routing/network_graph.rs 91.09% <0.00%> (-3.14%) ⬇️
lightning/src/util/events.rs 24.54% <0.00%> (-3.05%) ⬇️
lightning/src/chain/chainmonitor.rs 97.10% <0.00%> (-2.90%) ⬇️
lightning/src/util/chacha20poly1305rfc.rs 97.95% <0.00%> (-2.05%) ⬇️
lightning/src/ln/msgs.rs 90.07% <0.00%> (-1.98%) ⬇️
lightning/src/ln/wire.rs 66.15% <0.00%> (-1.85%) ⬇️
lightning/src/ln/chan_utils.rs 95.97% <0.00%> (-1.40%) ⬇️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8566486...e808d50. Read the comment docs.

@ariard
Copy link

ariard commented Oct 10, 2020

Code Review ACK e808d50

master: cargo test 1272.28s user 66.04s system 557% cpu 3:59.86 total
branch #738 : cargo test 273.84s user 17.60s system 365% cpu 1:19.85 total

@TheBlueMatt TheBlueMatt merged commit df778b6 into lightningdevkit:main Oct 10, 2020
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.

3 participants