Skip to content

Conversation

@adamread
Copy link
Contributor

@adamread adamread commented Dec 3, 2021

The inspector issues gatherer is now collecting all of the issues that will be reported via the devtools protocol.
The tests directly related to the issues gatherer have been updated, but there are still some other tests only tangentally related that are now broken.

Summary

This is an update to the inspector issues gatherer and audit to cover all of the issues currently reported via the devtools protocol and shown in the issues panel. Part of the goal of this change is to update the gatherer and audit to require less maintenance for future updates.

A bunch of issues have been added to the issues panel since the original lighthouse implementation.

Related Issues/PRs

Issue #13147

The inspector issues gatherer is now collecting all of the issues that will be reported via the devtools protocol.
The tests directly related to the issues gatherer have been updated, but there are still some other tests only tangentally related that are now broken.
@adamread
Copy link
Contributor Author

adamread commented Dec 3, 2021

This change has broken a bunch of other tests in Sample JSON, Security, and Fraggle Rock. It would be good to get some feedback before I go and update all the tests too.

The inspector issues gatherer is now collecting all of the issues that will be reported via the devtools protocol.
The tests directly related to the issues gatherer have been updated, but there are still some other tests only tangentally related that are now broken.
- sorted the properties of the gatherer artefact
- sorted the properties of the artifact type
- using 'x' in obg && obj.x && obj.x.y instead of hasOwnProperty to appease typescript
- added comment on why wasmCrossOriginModuleSharingIssue is special
- updated artifact property name in is-on-https test
@brendankenny brendankenny changed the title core(issues-panel): Updated inspector issues gatherer to collect all current issues. core(issues-panel): update inspector issues gatherer to collect all current issues. Dec 13, 2021
@adamraine
Copy link
Contributor

Looks like clientHintIssueDetails is a new one now. Caught by our notifier in #13502.

…fail.

- Updated the version of devtools-protocol to get the ClientHintIssueDetails definition.
- Updated the chromium sync test to include the clientHintIssue
- Updated the gatherer and artifact with clientHintIssue
- everything else was updated based on failing unit and smoke tests
@adamread
Copy link
Contributor Author

Updated the gatherer and updated the version of devtools-protocol to include clientHintIssueDetails and updated everything else to fix the breaking tests.

@connorjclark - Do the sample artifacts get checked in too?

@adamread adamread marked this pull request as ready for review December 20, 2021 21:42
@adamread adamread requested a review from a team as a code owner December 20, 2021 21:42
@connorjclark
Copy link
Collaborator

Yes, but we have a command to isolate changes to the sample artifacts to just a single artifact. try this:

# in case you have local changes
git checkout origin/master -- lighthouse-core/test/results/artifacts

yarn update:sample-artifacts InspectorIssues

@connorjclark connorjclark changed the title core(issues-panel): update inspector issues gatherer to collect all current issues. core(inspector-issues): collect all current issues Jan 11, 2022
@connorjclark connorjclark changed the title core(inspector-issues): collect all current issues core(inspector-issues): collect all issue types Jan 11, 2022
Copy link
Collaborator

@connorjclark connorjclark left a comment

Choose a reason for hiding this comment

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

LGTM! It'll be nice to finally get back up-to-date with these.

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.

4 participants