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(lantern): never exclude main document from graphs #5124

Merged
merged 4 commits into from
May 5, 2018

Conversation

patrickhulce
Copy link
Collaborator

@patrickhulce patrickhulce commented May 4, 2018

should fix the travis flake we've been seeing on extension tests cannot find node ID 02u309rjfja0fsdjflajsfd

@patrickhulce patrickhulce changed the title [WIP] Fix travis flake core(lantern): never exclude main document from graphs May 4, 2018
@patrickhulce
Copy link
Collaborator Author

patrickhulce commented May 4, 2018

@paulirish @brendankenny no longer WIP, it's 10/10 so far on passing extension test so lookin' good

* @return {LH.WebInspector.NetworkRequest}
*/
static findMainDocument(records) {
// TODO(phulce): handle more edge cases like client redirects, or plumb through finalUrl
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

adding finalUrl to all calls of request* is just insane work atm, should be easier after a refactor to pass in artifacts and make that dance a little easier

@patrickhulce
Copy link
Collaborator Author

if you fellas wanna take a look we can have a lot more green builds ;)

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM

I'm kind of worried this is a future potential issue if we don't always remember to get the main resource in a graph, but it's also reasonable to want to take subgraphs that don't have the main resource in it. So I'm not sure how to make the correct way the default way without making usability awkward in a different way.

@patrickhulce patrickhulce merged commit 335ceda into master May 5, 2018
@patrickhulce patrickhulce deleted the fix_travis_flake branch May 5, 2018 16:17
kdzwinel pushed a commit to kdzwinel/lighthouse that referenced this pull request Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants