-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
core(runner): independent gather and audit functions #13569
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
627356d
core(runner): independent gather and audit functions
adamraine cd390a4
+ runner state
adamraine 90e31dc
Revert "+ runner state"
adamraine f7f206d
rn
adamraine 57935d6
shared opts
adamraine 34c1a02
log msg
adamraine e631034
fix tests
adamraine 2e01dfa
runner
adamraine b9fffaa
lr test
adamraine 1f22fa6
sample
adamraine e868c3e
Merge branch 'master' into fr-defer-audit-runner
adamraine e54eabb
comments
adamraine e4a2ca2
Merge branch 'fr-defer-audit-runner' of github.com:GoogleChrome/light…
adamraine 291ae9a
sync
adamraine 69d5f98
new func
adamraine 1757426
timings
adamraine ec46509
Merge branch 'master' into fr-defer-audit-runner
adamraine 900f948
core(runner): store gather timing on artifacts (#13587)
adamraine 7c0d9e2
Merge branch 'master' into fr-defer-audit-runner
adamraine 1b05363
Merge branch 'master' into fr-defer-audit-runner
adamraine 7eec630
tests: timing smoke test (#13614)
adamraine 6c961ee
Merge branch 'master' into fr-defer-audit-runner
adamraine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix tests
- Loading branch information
commit e6310346f95ede2019b31ea5b5c752a661b869c1
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This might encounter issues in a flows as we move forward with #13364. I don't know if a flow step is guaranteed to query the correct timing entry from the logger.
@brendankenny this might be a reason to use a
Runner
instance instead. We could store timing information on that instance instead of querying the logger.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.
It's not causing any issues right now because
log.takeTimingEntries
clears everything between each flow step. I'll investigate this in the next part. There's probably a way to remember timings for each step without adding state toRunner
.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.
FWIW it's not clear what
total
should mean going forward. Right now it's the total of the LH run that just completed, so if run with-A
, the-G
timings are in theentries
array, but not included in the total. That would be changed here, and I kind of prefer the old way, but I'm not sure if thetotal
timing of-A
runs is important enough to care (if e.g. you're trying to optimizing something, you're likely looking at some other timing or tool).In a user flow, is the amount of time to gather and audit a particular step the most meaningful interpretation of "total"? Seems ok.
Should add some total tests if we're making a decision.
Also it's worth pointing out that
total
was a placeholder while we figured outentries
and only kept it around because it was kind of useful afterentries
landed, so the only bar to clear here is "kind of useful" :)