Skip to content

Commit 5724349

Browse files
committed
ci: fail on "npm WARN deprecated"
Problem: "npm WARN deprecated" warnings do not fail CI. Since winston was updated, the only remaining warning is for `querystring`, which is blocked until we update aws-sdk-js. Solution: Fail CI for "npm WARN deprecated" warnings, but make an exception for `querystring`.
1 parent 8d6c0f2 commit 5724349

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

buildspec/shared/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
# - "waiting for browser": from `ssoAccessTokenProvider.test.ts`, unclear how to fix it.
99
# - "Webview is disposed": only happens on vscode "minimum" (1.68.0)
1010
# - "HTTPError: Response code …": caused by github rate-limiting.
11-
_ignore_pat='Timed-out waiting for browser login flow\|HTTPError: Response code 403\|HTTPError: Response code 404'
11+
# - "npm WARN deprecated querystring": transitive dep of aws sdk v2 (check `npm ls querystring`), so that's blocked until we migrate to v3.
12+
_ignore_pat='Timed-out waiting for browser login flow\|HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring'
1213
if [ "$VSCODE_TEST_VERSION" = 'minimum' ]; then
1314
_ignore_pat="$_ignore_pat"'\|Webview is disposed'
1415
fi

buildspec/shared/linux-pre_build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ if [ "$TOOLKITS_CODEARTIFACT_DOMAIN" ] && [ "$TOOLKITS_CODEARTIFACT_REPO" ] && [
2222
fi
2323

2424
# TODO: move this to the "install" phase?
25-
# TODO: fail in CI
26-
npm 2>&1 ci | run_and_report 0 'npm WARN deprecated' 'Deprecated dependencies must be updated.'
25+
npm 2>&1 ci | run_and_report 2 'npm WARN deprecated' 'Deprecated dependencies must be updated.'

0 commit comments

Comments
 (0)