Skip to content
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(bootup-time): exclude _lighthouse-eval.js #15678

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

connorjclark
Copy link
Collaborator

Fixes issue reported here.

@connorjclark connorjclark requested a review from a team as a code owner December 8, 2023 21:08
@connorjclark connorjclark requested review from adamraine and removed request for a team December 8, 2023 21:08
@@ -109,6 +109,9 @@ class BootupTime extends Audit {
settings.throttling.cpuSlowdownMultiplier : 1;

const executionTimings = getExecutionTimingsByURL(tasks, networkRecords);
// Exclude our own tasks.
executionTimings.delete('_lighthouse-eval.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this inside getExecutionTImingsByURL?

Copy link
Collaborator Author

@connorjclark connorjclark Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure. i think @brendankenny wanted this data intact for work-for-interaction. also, getExecutionTimingsByURL is in a lib folder, so we should try not to add overly lh-specific things there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, getExecutionTimingsByURL is in a lib folder, so we should try not to add overly lh-specific things there

Yes, this basically sums it up, but my opinion isn't strongly held. It's a balance between the expectation of _lighthouse-eval.js being filtered out and the expectation of all tasks in a period of a trace being accounted for. If there really was six seconds of a trace blocked by evaluate but it's filtered out, you might have trouble tracking down what's going on in the resulting audits, while if _lighthouse-eval.js isn't filtered out, it announces itself in the audit results.

@connorjclark connorjclark merged commit 5b395a3 into main Dec 8, 2023
29 checks passed
@connorjclark connorjclark deleted the rm-lh-eval-bootup branch December 8, 2023 23:39
@mo-maher
Copy link

Hi I'm still seeing this in my report, is that injected into my site ?
pagebug

@connorjclark
Copy link
Collaborator Author

connorjclark commented Dec 16, 2023

This has not been released to PSI yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants