-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 performance experiment server #1189
refactor performance experiment server #1189
Conversation
opn(`http://localhost:${port}/reports/${filename}`); | ||
}); | ||
}); | ||
return performanceXServer.hostExperiment(flags, results).then(opn); |
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'll have to wait for the morning to take a full look, but love this already :)
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.
Thanks :)
server no longer save any file to disk\nserver now can be closed by ctrl-c properly\nimproved code simplicity\n
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 is great, and a huge improvement.
Small nit, but otherwise, let's land this!
(we'll have to sort out the conflicts between this and your other)
* @return {!Promise<string>} Promise that resolves when server is closed | ||
*/ | ||
let lhResults; | ||
function hostExperiment(lighthouseParams, results) { |
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.
right now this seems more like serveReport
or serveAndOpenReport
. Once experiments are in place, then I think we could rename the entry method's name.
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.
Thanks. Already renamed it to serveAndOpenReport.
Main changes: