Skip to content

Commit 1d2d69e

Browse files
committed
chore: remove workaround for npm scripts argument parsing
Refs nodejs/node@f99aa74
1 parent 164badf commit 1d2d69e

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

.github/workflows/pr-win32-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
for ($i = 1; $i -le 3; $i++) {
123123
try {
124-
npm exec -- -- npm-run-all -lp "electron ${{ env.VSCODE_ARCH }}" "playwright-install"
124+
npm exec -- npm-run-all -lp "electron ${{ env.VSCODE_ARCH }}" "playwright-install"
125125
break
126126
}
127127
catch {
@@ -230,19 +230,19 @@ jobs:
230230
if: ${{ inputs.electron_tests }}
231231
timeout-minutes: 20
232232
shell: pwsh
233-
run: npm run smoketest-no-compile -- -- --tracing
233+
run: npm run smoketest-no-compile -- --tracing
234234

235235
- name: 🧪 Run smoke tests (Browser, Chromium)
236236
if: ${{ inputs.browser_tests }}
237237
timeout-minutes: 20
238238
shell: pwsh
239-
run: npm run smoketest-no-compile -- -- --web --tracing --headless
239+
run: npm run smoketest-no-compile -- --web --tracing --headless
240240

241241
- name: 🧪 Run smoke tests (Remote)
242242
if: ${{ inputs.remote_tests }}
243243
timeout-minutes: 20
244244
shell: pwsh
245-
run: npm run smoketest-no-compile -- -- --remote --tracing
245+
run: npm run smoketest-no-compile -- --remote --tracing
246246

247247
- name: Diagnostics after smoke test run
248248
shell: pwsh

build/azure-pipelines/win32/product-build-win32-test.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ parameters:
1111
type: string
1212

1313
steps:
14-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
15-
- powershell: npm exec -- -- npm-run-all -lp "electron $(VSCODE_ARCH)" "playwright-install"
14+
- powershell: npm exec -- npm-run-all -lp "electron $(VSCODE_ARCH)" "playwright-install"
1615
env:
1716
GITHUB_TOKEN: "$(github-distro-mixin-password)"
1817
displayName: Download Electron and Playwright
@@ -22,14 +21,12 @@ steps:
2221
- powershell: .\scripts\test.bat --build --tfs "Unit Tests"
2322
displayName: 🧪 Run unit tests (Electron)
2423
timeoutInMinutes: 15
25-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
26-
- powershell: npm run test-node -- -- --build
24+
- powershell: npm run test-node -- --build
2725
displayName: 🧪 Run unit tests (node.js)
2826
timeoutInMinutes: 15
2927

3028
- ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}:
31-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
32-
- powershell: npm run test-browser-no-install -- -- --build --browser chromium --tfs "Browser Unit Tests"
29+
- powershell: npm run test-browser-no-install -- --build --browser chromium --tfs "Browser Unit Tests"
3330
displayName: 🧪 Run unit tests (Browser, Chromium)
3431
timeoutInMinutes: 20
3532

@@ -122,22 +119,19 @@ steps:
122119
condition: succeededOrFailed()
123120

124121
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}:
125-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
126-
- powershell: npm run smoketest-no-compile -- -- --tracing --build "$(agent.builddirectory)\test\VSCode-win32-$(VSCODE_ARCH)"
122+
- powershell: npm run smoketest-no-compile -- --tracing --build "$(agent.builddirectory)\test\VSCode-win32-$(VSCODE_ARCH)"
127123
displayName: 🧪 Run smoke tests (Electron)
128124
timeoutInMinutes: 20
129125

130126
- ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }}:
131-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
132-
- powershell: npm run smoketest-no-compile -- -- --web --tracing --headless
127+
- powershell: npm run smoketest-no-compile -- --web --tracing --headless
133128
env:
134129
VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)\test\vscode-server-win32-$(VSCODE_ARCH)-web
135130
displayName: 🧪 Run smoke tests (Browser, Chromium)
136131
timeoutInMinutes: 20
137132

138133
- ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }}:
139-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
140-
- powershell: npm run smoketest-no-compile -- -- --tracing --remote --build "$(agent.builddirectory)\test\VSCode-win32-$(VSCODE_ARCH)"
134+
- powershell: npm run smoketest-no-compile -- --tracing --remote --build "$(agent.builddirectory)\test\VSCode-win32-$(VSCODE_ARCH)"
141135
env:
142136
VSCODE_REMOTE_SERVER_PATH: $(agent.builddirectory)\test\vscode-server-win32-$(VSCODE_ARCH)
143137
displayName: 🧪 Run smoke tests (Remote)

build/azure-pipelines/win32/product-build-win32.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,11 @@ steps:
256256
echo "##vso[task.setvariable variable=EsrpCliDllPath]$Version\net6.0\esrpcli.dll"
257257
displayName: Find ESRP CLI
258258
259-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
260259
- powershell: |
261260
. build/azure-pipelines/win32/exec.ps1
262261
$ErrorActionPreference = "Stop"
263262
mkdir -Force .build/node-cpuprofile
264-
exec { npx deemon --detach --wait -- -- npx zx build/azure-pipelines/win32/codesign.js }
263+
exec { npx deemon --detach --wait -- npx zx build/azure-pipelines/win32/codesign.js }
265264
env:
266265
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
267266
NODE_DEBUG: "net,child_process"
@@ -278,11 +277,10 @@ steps:
278277
VSCODE_TEST_ARTIFACT_NAME: ${{ parameters.VSCODE_TEST_ARTIFACT_NAME }}
279278

280279
- ${{ if ne(parameters.VSCODE_CIBUILD, true) }}:
281-
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
282280
- powershell: |
283281
. build/azure-pipelines/win32/exec.ps1
284282
$ErrorActionPreference = "Stop"
285-
exec { npx deemon --attach -- -- npx zx build/azure-pipelines/win32/codesign.js }
283+
exec { npx deemon --attach -- npx zx build/azure-pipelines/win32/codesign.js }
286284
condition: succeededOrFailed()
287285
env:
288286
NODE_DEBUG: "net,child_process"

0 commit comments

Comments
 (0)