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
🏗 Clean up build cache on Travis #22926
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,19 +77,19 @@ jobs: | |
script: | ||
- unbuffer node build-system/pr-check/remote-tests.js | ||
after_script: | ||
- build-system/sauce_connect/stop_sauce_connect.sh | ||
- ps -ef | ||
- stage: test | ||
name: "End to End Tests" | ||
script: | ||
- unbuffer node build-system/pr-check/e2e-tests.js | ||
after_script: | ||
- ps -ef | ||
cache: | ||
directories: | ||
- node_modules | ||
- build-system/tasks/e2e/node_modules | ||
- build-system/tasks/visual-diff/node_modules | ||
- sauce_connect | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the directory to which |
||
- validator/node_modules | ||
- validator/nodejs/node_modules | ||
- validator/webui/node_modules | ||
- $HOME/.cache/pip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Travis' native From the logs, this line suggests that a cached install location is being used (even though, as you pointed out, the cache is updated at the end of the build). Curious: does the install time stay the same when caching is disabled? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting repo! By removing it from the cache, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, good catch on your part in noticing the much slower |
||
yarn: true |
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.
This was intentionally duplicated because when a test task fails, the sauce connect proxy isn't stopped by the Travis job due to
execOrDie
. When tests pass, the secondafter_script
call is a no-op.