-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] update yarn timeout for GitHub workflow on Windows
Yarn 1.x seems to have an issue with timing on windows and mac when running. Source: yarnpkg/yarn#8242 (comment) Increase timeout for Windows only. Issue: n/a Signed-off-by: Kawika Avilla <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,11 +103,14 @@ jobs: | |
run: | | ||
npm uninstall -g yarn | ||
npm i -g [email protected] | ||
yarn config set network-timeout 600000 -g | ||
yarn cache clean | ||
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223 | ||
# Increase network timeout for Windows, retry once if bootstrap fails | ||
- name: Run bootstrap | ||
run: yarn osd bootstrap | ||
run: | | ||
yarn cache clean | ||
yarn config set network-timeout 1000000 -g | ||
yarn osd bootstrap || yarn osd bootstrap | ||
- name: Run linter | ||
id: linter | ||
|
@@ -212,14 +215,17 @@ jobs: | |
run: | | ||
npm uninstall -g yarn | ||
npm i -g [email protected] | ||
yarn config set network-timeout 600000 -g | ||
yarn cache clean | ||
- name: Setup chromedriver | ||
run: node scripts/upgrade_chromedriver.js | ||
|
||
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223 | ||
# Increase network timeout for Windows, retry once if bootstrap fails | ||
- name: Run bootstrap | ||
run: yarn osd bootstrap | ||
run: | | ||
yarn cache clean | ||
yarn config set network-timeout 1000000 -g | ||
yarn osd bootstrap || yarn osd bootstrap | ||
- name: Build plugins | ||
run: node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers 10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters