-
Notifications
You must be signed in to change notification settings - Fork 71
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
Refactor: better stack traces for profiling #980
Conversation
Codecov Report
@@ Coverage Diff @@
## main #980 +/- ##
==========================================
+ Coverage 90.23% 90.24% +0.01%
==========================================
Files 47 47
Lines 2694 2697 +3
==========================================
+ Hits 2431 2434 +3
Misses 263 263
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Looks good. Also note there is #937. Do youw awant to merge this PR as is or also perfrom the substitution as part of this PR? A limitation of using pre-commit with GitHub Actions is pushes by pre-commit (to fix problems) don't trigger other CI runs. To avoid that, either force push the changes afterwards, create an emtpy bump commit or install pre-commit locally so it's ran on every commit, i.e. on macos, I use |
We want styler to run on R < 4.1, I'm doing the substitution temporarily. Thanks for the hints on pre-commit. It's unfortunate that automated pushes don't trigger a CI/CD rerun. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if c0932f5 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
yes. That’s not a pre-commit specific problem I think. And the reason why there is https://pre-commit.ci (but that integration is not (yet) activated for r-lib) |
I don't understand the test failures here. |
That's a speed test that ensure caching works as expected from a performance point of view. It's an outlier, so re-runnig the test again should pass. We could also lift the threshold a bit. Up to you. Happy to merge this. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if bb30612 is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I can fix failing test later, they are just very specific benchmarks that we want to keep an eye on.
This allows replacing
%>%
with|>
which gives much much better stack traces for profiling. Also replaced one call tomap2()
which is very high in the chain, also for clearer stack traces.For #759.