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

build(smokehouse): bundle smoke test runner #9873

Merged
merged 15 commits into from
Feb 20, 2020
Merged

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Oct 21, 2019

Bundles smokehouse for consumption in LR / DevTools.

Googlers: see cl/275909869 / doc

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

I have a fear that all this firehouse stuff is going to be touchable exclusively by googlers :)

maybe we could get some fileoverviews so even if we're not able to make changes we can still understand why it shouldn't be deleted :)

@brendankenny
Copy link
Member

I have a fear that all this firehouse stuff is going to be touchable exclusively by googlers :)

agreed, and that makes the testing system more fragile and harder to change in the future.

Doing some decoupling to make it so non-googlers don't have to care about the tests they can't see was part of the motivation for #9843, and I think we should consider making decisions on the architecture proposed there as a blocker for this.

@vercel vercel bot temporarily deployed to Preview January 15, 2020 00:30 Inactive
@connorjclark
Copy link
Collaborator Author

The first post was updated with the relevant doc (@patrickhulce, nothing has changed since you last reviewed the doc)

@patrickhulce
Copy link
Collaborator

I'm not sure I'm the best reviewer for this PR @connorjclark since I have no insight into the companion consumption code. Any googlers want to swap PRs for this one @exterkamp @paulirish ?

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

All of the smokehouse-bin generic changes seem fine to me, but I can't really speak to the consumption of the reworked firehouse frontend which seems to be the important part of this change

lighthouse-cli/test/smokehouse/frontends/firehouse.js Outdated Show resolved Hide resolved
* @param {Smokehouse.FirehouseOptions} options
*/
async function runFirehouse(options) {
const {smokehouse, urlFilterRegex, skip, modify} = options;
Copy link
Collaborator

Choose a reason for hiding this comment

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

these all get set by the person consuming firehouse, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yup

const fs = require('fs');
const path = require('path');

const distDir = path.join(__dirname, '..', 'dist');
Copy link
Collaborator

Choose a reason for hiding this comment

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

I find it humorous how this one is carefully crafted with path and then the others are just concated and then relative to cwd 😆

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it isn't the only build file that does this :) if it hasn't annoyed anyone enough to fix it yet...

@patrickhulce patrickhulce removed their assignment Feb 17, 2020
@connorjclark
Copy link
Collaborator Author

@exterkamp has seen the internal usage, so wdyt shane?

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

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

This LGTM. From an LR consumption perspective it seems good.

@vercel vercel bot temporarily deployed to Preview February 19, 2020 00:22 Inactive
Co-Authored-By: Patrick Hulce <patrick.hulce@gmail.com>
package.json Outdated Show resolved Hide resolved
@connorjclark connorjclark changed the title build(firehouse): bundle smoke test runner build(smokehouse): bundle smoke test runner Feb 19, 2020
@connorjclark connorjclark reopened this Feb 20, 2020
@devtools-bot devtools-bot merged commit d15b81c into master Feb 20, 2020
@devtools-bot devtools-bot deleted the firehouse-bundle branch February 20, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants