Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vscode e2e tests #13906

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Fix vscode e2e tests #13906

merged 1 commit into from
Apr 19, 2024

Conversation

StephenWeatherford
Copy link
Contributor

@StephenWeatherford StephenWeatherford commented Apr 19, 2024

Caused by a bug in node 18 and 20 which were caused by recent security fixes, see node-red/node-red#4652. Short version, it's no longer valid to use spawnSync without"shell:true".

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

github-actions bot commented Apr 19, 2024

Test this change out locally with the following install scripts (Action run 8760742897)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 8760742897
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 8760742897"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 8760742897
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 8760742897"

Copy link
Contributor

github-actions bot commented Apr 19, 2024

Test Results

    64 files   -     35      64 suites   - 35   22m 50s ⏱️ - 23m 45s
10 853 tests  -     20  10 852 ✅  -     20  1 💤 ±0  0 ❌ ±0 
25 556 runs   - 12 843  25 554 ✅  - 12 842  2 💤  - 1  0 ❌ ±0 

Results for commit 4be47f0. ± Comparison against base commit a2d5557.

♻️ This comment has been updated with latest results.

let result = cp.spawnSync(cliPath, extensionInstallArguments, {
encoding: "utf-8",
stdio: "inherit",
shell: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "shell: true" is the actual fix, the rest is formatting or debugging info.

@StephenWeatherford StephenWeatherford enabled auto-merge (squash) April 19, 2024 21:30
Copy link
Contributor

@shenglol shenglol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenWeatherford StephenWeatherford merged commit 959dbbb into main Apr 19, 2024
44 checks passed
@StephenWeatherford StephenWeatherford deleted the sw/fix-vscode-e2e branch April 19, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants