Skip to content

Conversation

@patrickhulce
Copy link
Collaborator

Summary
Implements the onlyAudits/onlyCategories/skipAudits functionality for the FR config. This will unlock smoketest running in FR navigation runner.

Related Issues/PRs
ref #12805 #11313

@patrickhulce patrickhulce requested a review from a team as a code owner July 20, 2021 15:44
@patrickhulce patrickhulce requested review from adamraine and removed request for a team July 20, 2021 15:44
@google-cla google-cla bot added the cla: yes label Jul 20, 2021
notApplicableAudits,
} = getAuditsBreakdown(lhr);
// TODO(FR-COMPAT): This assertion can be removed when full compatibility is reached.
expect(auditResults.length).toMatchInlineSnapshot(`59`);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand why this went down. There are no explicit filters for the timespan tests right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah sorry forgot to comment, this went down because we now filter the config by default of any audits that aren't included in any categories (except full-page-screenshot). the manual audits in a11y were all trimmed because we had logic that didn't display them, but nothing that removed their JSON from the payload.


// Some audits are used by the report for additional information.
// Keep these audits unless they are *directly* skipped with `skipAudits`.
const filterResistantAuditIds = ['full-page-screenshot'];
Copy link
Contributor

Choose a reason for hiding this comment

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

One of the TODOs you removed mentioned Stacks, it's not a base artifact in FR. Should we include here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, that TODO was actually solved by a previous update to filtering, but the TODO was missed in another file :)

This is a set of audit IDs that should be kept even if they're not in the onlyAudits/onlyCategories list. Extra artifacts are never kept unless they are base artifacts.

@patrickhulce patrickhulce merged commit ccb8478 into master Jul 22, 2021
@patrickhulce patrickhulce deleted the fr_config_filtering branch July 22, 2021 22:38
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.

3 participants