diff --git a/build/azure-pipelines/cli/test.yml b/build/azure-pipelines/cli/test.yml index 8b525845548..6e2a1c68a16 100644 --- a/build/azure-pipelines/cli/test.yml +++ b/build/azure-pipelines/cli/test.yml @@ -7,4 +7,4 @@ steps: - script: cargo test workingDirectory: cli - displayName: Run unit tests + displayName: 🧪 Run unit tests diff --git a/build/azure-pipelines/darwin/product-build-darwin-test.yml b/build/azure-pipelines/darwin/product-build-darwin-test.yml index 3c11cf09f45..c542cacaf19 100644 --- a/build/azure-pipelines/darwin/product-build-darwin-test.yml +++ b/build/azure-pipelines/darwin/product-build-darwin-test.yml @@ -23,33 +23,33 @@ steps: - ${{ if eq(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: ./scripts/test.sh --tfs "Unit Tests" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - script: npm run test-node - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run test-browser-no-install -- --browser webkit --tfs "Browser Unit Tests" env: DEBUG: "*browser*" - displayName: Run unit tests (Browser, Webkit) + displayName: 🧪 Run unit tests (Browser, Webkit) timeoutInMinutes: 30 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: ./scripts/test.sh --build --tfs "Unit Tests" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - script: npm run test-node -- --build - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run test-browser-no-install -- --build --browser webkit --tfs "Browser Unit Tests" env: DEBUG: "*browser*" - displayName: Run unit tests (Browser, Webkit) + displayName: 🧪 Run unit tests (Browser, Webkit) timeoutInMinutes: 30 - script: | @@ -77,17 +77,17 @@ steps: - ${{ if eq(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: ./scripts/test-integration.sh --tfs "Integration Tests" - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: ./scripts/test-web-integration.sh --browser webkit - displayName: Run integration tests (Browser, Webkit) + displayName: 🧪 Run integration tests (Browser, Webkit) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - script: ./scripts/test-remote-integration.sh - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: @@ -103,14 +103,14 @@ steps: ./scripts/test-integration.sh --build --tfs "Integration Tests" env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH) - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: ./scripts/test-web-integration.sh --browser webkit env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH)-web - displayName: Run integration tests (Browser, Webkit) + displayName: 🧪 Run integration tests (Browser, Webkit) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: @@ -122,7 +122,7 @@ steps: ./scripts/test-remote-integration.sh env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH) - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - script: ps -ef @@ -141,7 +141,7 @@ steps: # - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: # - script: npm run smoketest-no-compile -- --tracing # timeoutInMinutes: 20 - # displayName: Run smoke tests (Electron) + # displayName: 🧪 Run smoke tests (Electron) - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: @@ -151,14 +151,14 @@ steps: APP_NAME="`ls $APP_ROOT | head -n 1`" npm run smoketest-no-compile -- --tracing --build "$APP_ROOT/$APP_NAME" timeoutInMinutes: 20 - displayName: Run smoke tests (Electron) + displayName: 🧪 Run smoke tests (Electron) - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run smoketest-no-compile -- --web --tracing --headless env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH)-web timeoutInMinutes: 20 - displayName: Run smoke tests (Browser, Chromium) + displayName: 🧪 Run smoke tests (Browser, Chromium) - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - script: | @@ -170,7 +170,7 @@ steps: env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH) timeoutInMinutes: 20 - displayName: Run smoke tests (Remote) + displayName: 🧪 Run smoke tests (Remote) - script: ps -ef displayName: Diagnostics after smoke test run diff --git a/build/azure-pipelines/linux/product-build-linux-test.yml b/build/azure-pipelines/linux/product-build-linux-test.yml index fd272009b23..7e9325354a3 100644 --- a/build/azure-pipelines/linux/product-build-linux-test.yml +++ b/build/azure-pipelines/linux/product-build-linux-test.yml @@ -38,33 +38,33 @@ steps: - script: ./scripts/test.sh --tfs "Unit Tests" env: DISPLAY: ":10" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - script: npm run test-node - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run test-browser-no-install -- --browser chromium --tfs "Browser Unit Tests" env: DEBUG: "*browser*" - displayName: Run unit tests (Browser, Chromium) + displayName: 🧪 Run unit tests (Browser, Chromium) timeoutInMinutes: 15 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: ./scripts/test.sh --build --tfs "Unit Tests" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - script: npm run test-node -- --build - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run test-browser-no-install -- --build --browser chromium --tfs "Browser Unit Tests" env: DEBUG: "*browser*" - displayName: Run unit tests (Browser, Chromium) + displayName: 🧪 Run unit tests (Browser, Chromium) timeoutInMinutes: 15 - script: | @@ -94,17 +94,17 @@ steps: - script: ./scripts/test-integration.sh --tfs "Integration Tests" env: DISPLAY: ":10" - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: ./scripts/test-web-integration.sh --browser chromium - displayName: Run integration tests (Browser, Chromium) + displayName: 🧪 Run integration tests (Browser, Chromium) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - script: ./scripts/test-remote-integration.sh - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: @@ -121,14 +121,14 @@ steps: ./scripts/test-integration.sh --build --tfs "Integration Tests" env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH) - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: ./scripts/test-web-integration.sh --browser chromium env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)-web - displayName: Run integration tests (Browser, Chromium) + displayName: 🧪 Run integration tests (Browser, Chromium) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: @@ -141,7 +141,7 @@ steps: ./scripts/test-remote-integration.sh env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH) - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - script: | @@ -165,30 +165,30 @@ steps: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: npm run smoketest-no-compile -- --tracing timeoutInMinutes: 20 - displayName: Run smoke tests (Electron) + displayName: 🧪 Run smoke tests (Electron) - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run smoketest-no-compile -- --web --tracing --headless timeoutInMinutes: 20 - displayName: Run smoke tests (Browser, Chromium) + displayName: 🧪 Run smoke tests (Browser, Chromium) - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - script: npm run smoketest-no-compile -- --remote --tracing timeoutInMinutes: 20 - displayName: Run smoke tests (Remote) + displayName: 🧪 Run smoke tests (Remote) - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - script: npm run smoketest-no-compile -- --tracing --build "$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)" timeoutInMinutes: 20 - displayName: Run smoke tests (Electron) + displayName: 🧪 Run smoke tests (Electron) - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - script: npm run smoketest-no-compile -- --web --tracing --headless env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)-web timeoutInMinutes: 20 - displayName: Run smoke tests (Browser, Chromium) + displayName: 🧪 Run smoke tests (Browser, Chromium) - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - script: | @@ -197,7 +197,7 @@ steps: VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)" \ npm run smoketest-no-compile -- --tracing --remote --build "$APP_PATH" timeoutInMinutes: 20 - displayName: Run smoke tests (Remote) + displayName: 🧪 Run smoke tests (Remote) - script: | set -e diff --git a/build/azure-pipelines/win32/product-build-win32-test.yml b/build/azure-pipelines/win32/product-build-win32-test.yml index 1def7160023..8af78682146 100644 --- a/build/azure-pipelines/win32/product-build-win32-test.yml +++ b/build/azure-pipelines/win32/product-build-win32-test.yml @@ -25,29 +25,29 @@ steps: - ${{ if eq(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - powershell: .\scripts\test.bat --tfs "Unit Tests" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - powershell: npm run test-node - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - powershell: node test/unit/browser/index.js --browser chromium --tfs "Browser Unit Tests" - displayName: Run unit tests (Browser, Chromium) + displayName: 🧪 Run unit tests (Browser, Chromium) timeoutInMinutes: 20 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - powershell: .\scripts\test.bat --build --tfs "Unit Tests" - displayName: Run unit tests (Electron) + displayName: 🧪 Run unit tests (Electron) timeoutInMinutes: 15 - powershell: npm run test-node -- --build - displayName: Run unit tests (node.js) + displayName: 🧪 Run unit tests (node.js) timeoutInMinutes: 15 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - powershell: npm run test-browser-no-install -- --build --browser chromium --tfs "Browser Unit Tests" - displayName: Run unit tests (Browser, Chromium) + displayName: 🧪 Run unit tests (Browser, Chromium) timeoutInMinutes: 20 - powershell: | @@ -82,17 +82,17 @@ steps: - ${{ if eq(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - powershell: .\scripts\test-integration.bat --tfs "Integration Tests" - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - powershell: .\scripts\test-web-integration.bat --browser chromium - displayName: Run integration tests (Browser, Chromium) + displayName: 🧪 Run integration tests (Browser, Chromium) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - powershell: .\scripts\test-remote-integration.bat - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: @@ -109,7 +109,7 @@ steps: $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe" $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)" exec { .\scripts\test-integration.bat --build --tfs "Integration Tests" } - displayName: Run integration tests (Electron) + displayName: 🧪 Run integration tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: @@ -118,7 +118,7 @@ steps: $ErrorActionPreference = "Stop" $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)-web" exec { .\scripts\test-web-integration.bat --browser firefox } - displayName: Run integration tests (Browser, Firefox) + displayName: 🧪 Run integration tests (Browser, Firefox) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: @@ -131,7 +131,7 @@ steps: $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe" $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)" exec { .\scripts\test-remote-integration.bat } - displayName: Run integration tests (Remote) + displayName: 🧪 Run integration tests (Remote) timeoutInMinutes: 20 - powershell: .\build\azure-pipelines\win32\listprocesses.bat @@ -154,27 +154,27 @@ steps: # - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: # - powershell: npm run smoketest-no-compile -- --tracing - # displayName: Run smoke tests (Electron) + # displayName: 🧪 Run smoke tests (Electron) # timeoutInMinutes: 20 - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}: - powershell: npm run smoketest-no-compile -- --tracing --build "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)" - displayName: Run smoke tests (Electron) + displayName: 🧪 Run smoke tests (Electron) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}: - powershell: npm run smoketest-no-compile -- --web --tracing --headless env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)-web - displayName: Run smoke tests (Browser, Chromium) + displayName: 🧪 Run smoke tests (Browser, Chromium) timeoutInMinutes: 20 - ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}: - powershell: npm run smoketest-no-compile -- --tracing --remote --build "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)" env: VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH) - displayName: Run smoke tests (Remote) + displayName: 🧪 Run smoke tests (Remote) timeoutInMinutes: 20 - powershell: .\build\azure-pipelines\win32\listprocesses.bat diff --git a/build/hygiene.js b/build/hygiene.js index 88eb7aadc11..c844ebd574b 100644 --- a/build/hygiene.js +++ b/build/hygiene.js @@ -63,7 +63,7 @@ function hygiene(some, linting = true) { } // Please do not add symbols that resemble ASCII letters! // eslint-disable-next-line no-misleading-character-class - const m = /([^\t\n\r\x20-\x7E⊃⊇✔︎✓🎯✍️⚠️🛑🔴🚗🚙🚕🎉✨❗⇧⌥⌘×÷¦⋯…↑↓→→←↔⟷·•●◆▼⟪⟫┌└├⏎↩√φ]+)/g.exec(line); + const m = /([^\t\n\r\x20-\x7E⊃⊇✔︎✓🎯🧪✍️⚠️🛑🔴🚗🚙🚕🎉✨❗⇧⌥⌘×÷¦⋯…↑↓→→←↔⟷·•●◆▼⟪⟫┌└├⏎↩√φ]+)/g.exec(line); if (m) { console.error( file.relative + `(${i + 1},${m.index + 1}): Unexpected unicode character: "${m[0]}" (charCode: ${m[0].charCodeAt(0)}). To suppress, use // allow-any-unicode-next-line`