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

cli(fr): add --fraggle-rock flag #12805

Merged
merged 2 commits into from
Jul 20, 2021
Merged

cli(fr): add --fraggle-rock flag #12805

merged 2 commits into from
Jul 20, 2021

Conversation

patrickhulce
Copy link
Collaborator

@patrickhulce patrickhulce commented Jul 20, 2021

Summary

  • Exposes the fraggle rock navigation runner on the CLI.
  • Threads through the CLI flag settings overrides to the config.

Happy to add whatever public caveats others think is wise to minimize accidental usage at this stage (currently just [EXPERIMENTAL] on the CLI flag). Hopefully this gets us more internal usage, I know I'll be trying it out a bit more :) It's not at complete parity yet, but the basic default usage should be working at this point.

Next steps:

Related Issues/PRs
ref #11313

@patrickhulce patrickhulce requested a review from a team as a code owner July 20, 2021 02:43
@patrickhulce patrickhulce requested review from adamraine and removed request for a team July 20, 2021 02:43
@google-cla google-cla bot added the cla: yes label Jul 20, 2021
const fraggleRock = require('../lighthouse-core/fraggle-rock/api.js');
const puppeteer = require('puppeteer');
// @ts-expect-error - FIXME: lighthouse-logger is greedy and takes over `debug` for all packages
require('debug').enable('-puppeteer:*');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please pull up this require to reduce an extra complication when automating the conversion to ESM.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh is that happening imminently? I don't want this line to exist for more than a week (PR already in progress to make it unnecessary)

If you're referring to puppeteer, I was hoping to avoid injecting puppeteer into the default dependencies for an experimental flag due to the extra postinstall hooks. const puppeteer = await import('puppeteer') should be OK, right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh is that happening imminently?

No, just a mechanical code review suggestion I have these days when I see require :)

const puppeteer = await import('puppeteer') should be OK, right?

Yeah

@patrickhulce patrickhulce merged commit 1abc363 into master Jul 20, 2021
@patrickhulce patrickhulce deleted the fr_cli_flag branch July 20, 2021 20: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