-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support diffing session info's from GHA logs #68
Conversation
Codecov Report
@@ Coverage Diff @@
## main #68 +/- ##
==========================================
- Coverage 82.59% 79.69% -2.91%
==========================================
Files 13 14 +1
Lines 678 719 +41
==========================================
+ Hits 560 573 +13
- Misses 118 146 +28
Continue to review full report at Codecov.
|
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 great, one more small comment.
R/github-actions.R
Outdated
timestamped_lines <- unlist(strsplit(raw_log$message, split = "\r\n")) | ||
lines <- sub("^.+Z ", "", timestamped_lines) | ||
start_pos <- grep("##[group]Session info", lines, fixed = TRUE) | ||
endgroups <- grep("##[endgroup]", lines, fixed = TRUE) |
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.
I think these would be more robust if we just searched for
─ Session info ──
and also the ascii variant of this. I think some other sessioninfo parsers are doing that.
Some recent action versions don't have the ##[group]
prefix I think, and we might also change this.
OK I made the requested changes. |
Thanks, this is going to be great! |
Add support to
session_diff()
fornew
andold
to be URLs that link to a GitHub Actions job.Currently session diff works best when comparing sessions for two jobs of the same "flavour", because you don't pick up differences in package source. This has nothing to do with GHA, but is something I've really noticed while working on this, because I do really want to do cross-flavour comparisons. I have another idea for that which is proposed in #69.
Here it is in action, comparing two adjacent GHA runs for readr, both on ubuntu-18.04 (release), showing that the differences in the library are magrittr and rlang.
Created on 2022-01-29 by the reprex package (v2.0.1.9000)