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

misc: do not publish lighthouse-cli/test except smokehouse #12415

Merged
merged 4 commits into from
May 1, 2021

Conversation

connorjclark
Copy link
Collaborator

ref #8084

image

afterthought ... would this break something in publisher-ads? maybe we should keep the smokerunner files but get rid of the fixtures n stuff?

@connorjclark connorjclark requested a review from a team as a code owner April 27, 2021 23:16
@connorjclark connorjclark requested review from patrickhulce and removed request for a team April 27, 2021 23:16
@google-cla google-cla bot added the cla: yes label Apr 27, 2021
@@ -35,8 +35,9 @@ mkdir -p /tmp/lighthouse-local-test
cd /tmp/lighthouse-local-test

npm init -y
npm install "$LH_PRISTINE_ROOT/lighthouse-$VERSION.tgz"
cd node_modules/lighthouse/lighthouse-cli/test/ && npm install lodash.clonedeep && cd ../../../../
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this command was accidentally installing all our devDeps

idk why I had it cd to that particular folder 🤣

@brendankenny
Copy link
Member

brendankenny commented Apr 27, 2021

@brendankenny
Copy link
Member

(they use all their own tests, though)

@connorjclark
Copy link
Collaborator Author

connorjclark commented Apr 28, 2021

keeping just the code is only ~50 kB ✅

image

@@ -22,8 +22,9 @@ lighthouse-logger/
!lighthouse-core/scripts/manual-chrome-launcher.js
!lighthouse-core/scripts/download-chrome.sh

# keep smokehouse tests, etc
!lighthouse-cli/test
Copy link
Collaborator

Choose a reason for hiding this comment

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

was this a noop previously? it seems like we never actually said to ignore this folder, so why did we negate it... 🤔

Copy link
Member

Choose a reason for hiding this comment

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

I think it was just to make it explicit, more important when release was just a checklist, not a script, so missing tests might not be noticed.

@@ -19,7 +19,12 @@ const log = require('lighthouse-logger');
const {runSmokehouse} = require('../smokehouse.js');
const {server, serverForOffline} = require('../../fixtures/static-server.js');

const coreTestDefnsPath = require.resolve('../test-definitions/core-tests.js');
let coreTestDefnsPath = '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

does path.join(__dirname, '../test-definitions/core-tests.js') work instead? this try/catch feels a bit awkward

Copy link
Collaborator Author

@connorjclark connorjclark Apr 28, 2021

Choose a reason for hiding this comment

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

yes but i was opting to not change the string value.

idc either way. trial by emoji. 👍 for try/catch 👎 for not

.npmignore Show resolved Hide resolved
@connorjclark connorjclark changed the title misc: do not publish lighthouse-cli/test misc: do not publish lighthouse-cli/test except smokehouse Apr 28, 2021
@brendankenny
Copy link
Member

@connorjclark any chance you could land this?

Looking at the publisher-ads use of smokehouse in #12415 (comment) I had an idea to make it less ugly, but it would bump into this PR. Plus it's always a good time to trim our install size :)

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