Repository navigation
Commit 818cfd5
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments