mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
CI: Reduce log spam in CI to fix errors with Buildkite reporting (#34262)
This commit is contained in:
parent
5f80ab65f3
commit
ceb72ab5bf
@ -8,7 +8,7 @@ echo "# Note: NODE_ENV only used for build command"
|
||||
|
||||
echo "--- Yarn install in root"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
NODE_ENV='' yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
NODE_ENV='' yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
cd "$1"
|
||||
echo "--- browserslist"
|
||||
|
||||
@ -4,8 +4,8 @@ set -e
|
||||
|
||||
echo "--- yarn"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --cwd dev/release --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
yarn --mutex network --cwd dev/release --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
echo "--- generate"
|
||||
yarn gulp generate
|
||||
|
||||
@ -4,12 +4,12 @@ set -e
|
||||
|
||||
echo "--- yarn in root"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
cd "$1"
|
||||
echo "--- yarn"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
echo "--- test"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ set -e
|
||||
|
||||
echo "--- yarn in root"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
echo "--- generate"
|
||||
yarn gulp generate
|
||||
|
||||
@ -8,7 +8,7 @@ tar -xf client.tar.gz -C .
|
||||
|
||||
echo "--- Yarn install in root"
|
||||
# mutex is necessary since CI runs various yarn installs in parallel
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
echo "--- Run integration test suite"
|
||||
yarn percy exec yarn _cover-integration "$@"
|
||||
|
||||
@ -11,7 +11,7 @@ echo "--- yarn root"
|
||||
# mutex is necessary since frontend and the management-console can
|
||||
# run concurrent "yarn" installs
|
||||
# TODO: This is no longer needed since the management console was removed.
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000
|
||||
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
|
||||
|
||||
MAYBE_TIME_PREFIX=""
|
||||
if [[ "${CI_DEBUG_PROFILE:-"false"}" == "true" ]]; then
|
||||
|
||||
@ -339,7 +339,7 @@ func clientChromaticTests(autoAcceptChanges bool) operations.Operation {
|
||||
stepOpts := []bk.StepOpt{
|
||||
withYarnCache(),
|
||||
bk.AutomaticRetry(3),
|
||||
bk.Cmd("yarn --mutex network --frozen-lockfile --network-timeout 60000"),
|
||||
bk.Cmd("yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent"),
|
||||
bk.Cmd("yarn gulp generate"),
|
||||
bk.Env("MINIFY", "1"),
|
||||
}
|
||||
|
||||
10
package.json
10
package.json
@ -30,12 +30,12 @@
|
||||
"_test-integration": "TS_NODE_PROJECT=client/web/src/integration/tsconfig.json mocha --parallel=$CI --retries=1 --jobs=2",
|
||||
"test-integration": "yarn _test-integration \"./client/web/src/integration/**/*.test.ts\"",
|
||||
"test-browser-integration": "yarn workspace @sourcegraph/browser run test-integration",
|
||||
"_cover-integration": "nyc --hook-require=false yarn _test-integration",
|
||||
"cover-integration": "nyc --hook-require=false yarn test-integration",
|
||||
"cover-browser-integration": "nyc --hook-require=false yarn workspace @sourcegraph/browser test-integration",
|
||||
"_cover-integration": "nyc --hook-require=false --silent yarn _test-integration",
|
||||
"cover-integration": "nyc --hook-require=false --silent yarn test-integration",
|
||||
"cover-browser-integration": "nyc --hook-require=false --silent yarn workspace @sourcegraph/browser test-integration",
|
||||
"test-lighthouse": "SOURCEGRAPH_API_URL=https://sourcegraph.com lhci collect && lhci open",
|
||||
"test-e2e": "TS_NODE_PROJECT=client/web/src/end-to-end/tsconfig.json mocha ./client/web/src/end-to-end/**/*.test.ts",
|
||||
"cover-e2e": "nyc --hook-require=false --silent=true yarn test-e2e",
|
||||
"cover-e2e": "nyc --hook-require=false --silent yarn test-e2e",
|
||||
"storybook": "yarn workspace @sourcegraph/storybook run start",
|
||||
"storybook:dll": "yarn workspace @sourcegraph/storybook run start:dll",
|
||||
"storybook:branded": "yarn workspace @sourcegraph/branded run storybook",
|
||||
@ -45,7 +45,7 @@
|
||||
"storybook:search-ui": "yarn workspace @sourcegraph/search-ui run storybook",
|
||||
"storybook:wildcard": "yarn workspace @sourcegraph/wildcard run storybook",
|
||||
"build-storybook": "yarn workspace @sourcegraph/storybook run build",
|
||||
"cover-storybook": "nyc --hook-require=false yarn jest client/storybook/src/coverage",
|
||||
"cover-storybook": "nyc --hook-require=false --silent yarn jest client/storybook/src/coverage",
|
||||
"deduplicate": "yarn-deduplicate -s fewer",
|
||||
"release": "cd dev/release && yarn run release",
|
||||
"docsite:serve": "./dev/docsite.sh -config doc/docsite.json serve -http=localhost:5080",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user