-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Exclude artifacts from result handed to extension/devtools. #1400
Conversation
@@ -172,6 +185,7 @@ window.createReportPageAsBlob = function(results, reportContext) { | |||
let html; | |||
try { | |||
html = reportGenerator.generateHTML(results, reportContext); | |||
throw new Error('sdlfjksdf'); |
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.
hmm...
@@ -30,6 +30,7 @@ const _flatten = arr => [].concat(...arr); | |||
|
|||
let lighthouseIsRunning = false; | |||
let latestStatusLog = []; | |||
let latestArtifacts = undefined; |
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.
whats the lifecycle for this like for devtools and the extension? Is memory eventually cleared? The artifacts can be really big
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.
unknown. :)
I'll nuke it until we have an immediate need for it.
ptal |
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.
LGTM ✂️🔁✂️
followup from #1163
I was getting this guy:
artifacts.networkRecords
FWIW. All other artifacts are safe.reportException
to be ourjson-stringify-safe
for good defense.Introduced awindow.getLatestArtifacts
for future use by devtools, and probably the viewer/perf-server (Return artifacts from runner and move assets/artifacts saving to cli #1163).R=@brendankenny, @WeiweiAtGit