-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not clean enough.
There was a problem hiding this comment.
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 ...
There was a problem hiding this comment.
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! :)
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
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 the 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 |
@brendankenny figured it out :) maybe we should have a --skip-test flag for smokes |
no on this one after #9672? |
No description provided.