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(release): delete lighthouse pristine folder to keep it fresh #9664

Closed
wants to merge 1 commit into from

Conversation

paulirish
Copy link
Member

No description provided.

if [[ ! -e lighthouse-pristine/ ]]; then
git clone [email protected]:GoogleChrome/lighthouse.git lighthouse-pristine
fi
# Delete the folder if it already exists. We need it super fresh
Copy link
Collaborator

Choose a reason for hiding this comment

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

:( that's what git clean -fdx is supposed to accomplish, does it not work?

Copy link
Member Author

Choose a reason for hiding this comment

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

not clean enough.

Copy link
Collaborator

Choose a reason for hiding this comment

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

patrick, for context @exterkamp ran into an inexplicable bug (dbw smokes failing because /zone.js request was 404ing, only via test.sh) which resolved itself after the first time the folder was deleted. We were never able to repro again ...

Copy link
Collaborator

Choose a reason for hiding this comment

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

hm, that's so weird. alright then thanks for the explanation! :)

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.

some optional improvements for your consideration

git clone [email protected]:GoogleChrome/lighthouse.git lighthouse-pristine
fi
# Delete the folder if it already exists. We need it super fresh
rm -rf lighthouse-pristine
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be able to get rid of pretty much all the git commands after this then


git clone [email protected]:GoogleChrome/lighthouse.git lighthouse-pristine
cd lighthouse-pristine/

if [[ -n "$(git status --porcelain)" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we move this warning about the rm -rf to prevent accidental deletion?

@brendankenny
Copy link
Member

brendankenny commented Sep 13, 2019

patrick, for context @exterkamp ran into an inexplicable bug (dbw smokes failing because /zone.js request was 404ing, only via test.sh) which resolved itself after the first time the folder was deleted. We were never able to repro again ...

last time I ran the release scripts (maybe 5.0? I think I just did it manually for 5.2 :) I think I remember the zone.js issue being something different.

Was the error happening in theyarn smoke call or the npm explore lighthouse -- npm run smoke call in test.sh? I think the second one would be caused by the fact that static-server serves zone.js out of node_modules/, but since zone.js is in LH's devDeps it wouldn't be installed for the test of the module tarball.

You can see this in a random directory with just the version on npm if you do

npm init -y
npm install lighthouse
npm explore lighthouse -- npm run smoke pwa # no problem
npm explore lighthouse -- npm run smoke dbw # extra console error due to zone.js 404

@connorjclark
Copy link
Collaborator

@brendankenny figured it out :)

maybe we should have a --skip-test flag for smokes

@brendankenny
Copy link
Member

brendankenny commented Sep 13, 2019

no on this one after #9672?

@brendankenny brendankenny deleted the rmrf branch September 17, 2019 22:21
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.

5 participants