Skip to content

fix(CI): use single quotes for pushing test result artifacts on Windows agents#3350

Merged
Dave Shoup (shouples) merged 5 commits intomainfrom
djs/e2e-fix-windows-results
Mar 30, 2026
Merged

fix(CI): use single quotes for pushing test result artifacts on Windows agents#3350
Dave Shoup (shouples) merged 5 commits intomainfrom
djs/e2e-fix-windows-results

Conversation

@shouples
Copy link
Copy Markdown
Contributor

@shouples Dave Shoup (shouples) commented Mar 27, 2026

I'm not sure when the behavior started, but we recently started seeing failures from the Windows agents in CI when they attempted to push test results as Semaphore artifacts (via test-results publish ...):
image

This turned out to be a problem with how the filenames were being handled, which is now working as expected:
image

Copilot AI review requested due to automatic review settings March 27, 2026 14:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Semaphore CI Windows job scripts to use single-quoted strings when publishing test results, improving command-line argument handling on Windows agents.

Changes:

  • Switch test-results publish --name arguments from double quotes to single quotes in Windows PowerShell epilogues.
  • Apply the same quoting adjustment in both the main pipeline and the Playwright E2E pipeline.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.semaphore/semaphore.yml Uses single quotes for --name when publishing E2E + Webview test results on Windows.
.semaphore/playwright-e2e.yml Uses single quotes for --name when publishing E2E test results on Windows.

Comment thread .semaphore/playwright-e2e.yml Outdated
@sonarqube-confluent
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

if (Test-Path $TestResultE2EFileName) {
$fileInfo = Get-Item $TestResultE2EFileName
Write-Output "Publishing E2E test results from $($fileInfo.FullName) ($($fileInfo.Length) bytes)"
$TestResultName = 'VS Code ({0}) Extension Tests: E2E (win32 x64)' -f $Env:VSCODE_VERSION
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Subtle change to also show the VSCODE_VERSION param value in the job name instead of hard-coding stable

Comment thread .semaphore/semaphore.yml
Comment on lines +401 to +404
options:
- "all"
- "linux"
- "windows"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Small unrelated change that made testing this in promotions easier since it now appears as a dropdown (like the standalone task):

Image

@shouples Dave Shoup (shouples) marked this pull request as ready for review March 27, 2026 21:06
@shouples Dave Shoup (shouples) requested a review from a team as a code owner March 27, 2026 21:06
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@shouples Dave Shoup (shouples) merged commit 0607d83 into main Mar 30, 2026
14 of 15 checks passed
@shouples Dave Shoup (shouples) deleted the djs/e2e-fix-windows-results branch March 30, 2026 14:01
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.

3 participants