Skip to content

Conversation

@connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Jan 10, 2023

  • Removes full-page-screenshot audit
  • Make FullPageScreenshot a legacy base artifact. Remains a regular FR artifact. this was a bad idea because in legacy bf-cache-failures (which is disabled for FR) needs to happen LAST, so this became too hacky to run FPS code at just the right time in legacy afterPass.
  • Puts the same data in lhr.fullPageScreenshot
  • Add disableFullPageScreenshot setting and --disable-full-page-screenshot CLI flag
  • Excludes FPS artifact from config artifact filtering based on audits, instead uses the new setting
  • FPS is now very similar to Stacks, in terms of how it is run in LH

@connorjclark connorjclark requested a review from a team as a code owner January 10, 2023 01:26
@connorjclark connorjclark requested review from brendankenny and removed request for a team January 10, 2023 01:26
type: 'string',
describe: 'The path to the budget.json file for LightWallet.',
},
'disable-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.

This is a bit long, I think we can shorten to --disable-screenshot

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are so many screenshots that could refer to.

*/
initFeatures(lhr) {
this.json = lhr;
this._fullPageScreenshot = Util.getFullPageScreenshot(lhr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to store this on the object? getFullPageScreenshot isn't an expensive operation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Typechecking. It needed to be set to a variable somewhere to do type narrowing.

@connorjclark connorjclark changed the title core: remove full-page-screenshot audit, replace with top-level property core: remove full-page-screenshot audit, move to top-level property Jan 13, 2023
@connorjclark connorjclark changed the title core: remove full-page-screenshot audit, move to top-level property core(full-page-screenshot): remove audit, move to top-level of LHR Jan 13, 2023
@connorjclark connorjclark changed the title core(full-page-screenshot): remove audit, move to top-level of LHR core(full-page-screenshot): remove audit, move to top-level Jan 13, 2023
@connorjclark connorjclark merged commit 62783de into main Jan 13, 2023
@connorjclark connorjclark deleted the kill-fps-audit branch January 13, 2023 22:29
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