Skip to content

Commit 818cfd5

Browse files
Fix windows-arm64 timeout floor to use numeric comparison (#129814)
The windows-arm64 timeout floor in `global-build-job.yml` compared a string-typed parameter against `75` with `gt(parameters.timeoutInMinutes, 75)`. Because `timeoutInMinutes` is declared as a string (`default: ''`), ADO coerces the passed value (e.g. `360`) to a string and `gt()` keys conversion off the left operand's type — producing a lexicographic compare (`'360' < '75'` → false). Explicit timeouts ≥ 100 silently collapsed to the 75-min floor, causing `runtime-coreclr libraries-jitstressregs` windows-arm64 to time out at 75 min (build 1474264). ### Changes - **`eng/pipelines/common/global-build-job.yml`**: Swapped the comparison so the integer literal is the left operand: `gt(parameters.timeoutInMinutes, 75)` → `lt(75, parameters.timeoutInMinutes)`. ADO now converts the right operand to a number, yielding a true numeric comparison. ```yaml - ${{ elseif gt(parameters.timeoutInMinutes, 75) }}: + ${{ elseif lt(75, parameters.timeoutInMinutes) }}: ``` Explicit values > 75 (e.g. `360`) are now honored; values ≤ 75 still fall through to the 75-min floor. No other code or the parameter declaration was touched. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JulieLeeMSFT <63486087+JulieLeeMSFT@users.noreply.github.com>
1 parent d956c4a commit 818cfd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎eng/pipelines/common/global-build-job.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
${{ if eq(parameters.platform, 'windows_arm64') }}:
5555
${{ if eq(parameters.timeoutInMinutes, '') }}:
5656
timeoutInMinutes: 75
57-
${{ elseif gt(parameters.timeoutInMinutes, 75) }}:
57+
${{ elseif lt(75, parameters.timeoutInMinutes) }}:
5858
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
5959
${{ else }}:
6060
timeoutInMinutes: 75

0 commit comments

Comments
 (0)