Skip to content

Fix ci build#15515

Merged
nohwnd merged 2 commits intomicrosoft:mainfrom
nohwnd:fix-ci-build
Mar 19, 2026
Merged

Fix ci build#15515
nohwnd merged 2 commits intomicrosoft:mainfrom
nohwnd:fix-ci-build

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Mar 19, 2026

Description

Please add a meaningful description for this change.
Ensure the PR has required unit tests.

Related issue

Kindly link any related issues. E.g. Fixes #xyz.

  • I have ensured that there is a previously discussed and approved issue.

Copilot AI review requested due to automatic review settings March 19, 2026 11:17
@nohwnd nohwnd merged commit 8c06876 into microsoft:main Mar 19, 2026
1 of 4 checks passed
@nohwnd
Copy link
Member Author

nohwnd commented Mar 19, 2026

only affects internal pipeline

Copy link
Contributor

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

Updates the build script’s test-runner argument composition to address CI test filtering/parameter passing.

Changes:

  • Splits filter construction from --ignore-exit-code 8 handling into separate variables.
  • Passes the composed external arguments via /p:TestRunnerExternalArguments=....
Comments suppressed due to low confidence (2)

eng/build.ps1:1

  • $filterParameters is only set when $filters.Count -gt 0, but this block also runs when only $testParameters.Count -gt 0. In that case line 141 references an uninitialized variable, producing an empty/incorrect TestRunnerExternalArguments value or an error under strict settings. Initialize $filterParameters to an empty string before the inner if, or build TestRunnerExternalArguments by conditionally appending the filter part only when filters exist.
[CmdletBinding(PositionalBinding = $false)]

eng/build.ps1:1

  • The comment mentions escaping via \\\", but the code uses PowerShell’s backtick-escape (`\"). Update the comment to match the actual escaping mechanism to avoid confusion during future maintenance.
[CmdletBinding(PositionalBinding = $false)]

@@ -125,15 +125,20 @@ if ($integrationTest -or $performanceTest -or $compatibilityTest -or $smokeTest)
}

if ($filters.Count -gt 0 -or $testParameters.Count -gt 0) {
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.

2 participants