-
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
core(fr): convert base artifacts to gatherer artifacts #12129
Conversation
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, just a couple comments. but since this is so big I think a second person should review too.
Co-authored-by: Connor Clark <[email protected]>
…e into fr_base_artifacts
@adamraine you interested in giving this a second look? :) |
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
@@ -93,7 +95,7 @@ describe('Fraggle Rock API', () => { | |||
|
|||
const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr); | |||
// TODO(FR-COMPAT): This assertion can be removed when full compatibility is reached. | |||
expect(auditResults.length).toMatchInlineSnapshot(`65`); | |||
expect(auditResults.length).toMatchInlineSnapshot(`67`); |
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.
Weren't there 3 gatherers added that can do snapshot mode? InstallabilityErrors
, Stacks
, and WebAppManifest
?
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.
yes great catch! turns out quite a few of the artifact ids were misspelled. we have 7 more artifacts now 🎉
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 added typechecking to the new default-config that will ensure all artifact IDs used in strings are typechecked against our usages
@@ -95,7 +95,7 @@ describe('Fraggle Rock API', () => { | |||
|
|||
const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr); | |||
// TODO(FR-COMPAT): This assertion can be removed when full compatibility is reached. | |||
expect(auditResults.length).toMatchInlineSnapshot(`67`); | |||
expect(auditResults.length).toMatchInlineSnapshot(`72`); |
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.
There were 4 misspellings but this jumped from 67 to 72. Is that because more than 1 audit use the same artifact?
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.
yep!
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.
LGTM2
Summary
Converts most of the base artifacts so that they're runnable in fraggle rock as regular gatherers, but preserves the current base behavior in the legacy path as well.
environment.js
off of driver.url
as a shared property of the FRTransitionalContextRelated Issues/PRs
ref #11313