Derive ORT_TEST_VERBOSE from System.Debug via runtime coalesce in plugin test pipelines (#28517)
## Summary
Five plugin test stage YAMLs reference `$(System.Debug)`, a predefined
ADO variable that is only set when "Enable system diagnostics" is
checked at queue time. When undefined, two failure modes occur:
- **bash command lines** (Linux WebGPU/CUDA stages): bash interprets
`$(System.Debug)` as command substitution and the step fails with `bash:
line 14: System.Debug: command not found`.
- **YAML `env:` blocks** (Mac/Win WebGPU + Win CUDA stages): the env var
is set to the literal string `$(System.Debug)`, meaningless to test code
that expects `true`/`false`/`1`/`0`.
## Fix
Add a derived pipeline-level variable to the two test pipeline entry
points:
```yaml
# Verbose-output flag for tests. Resolves to System.Debug when set
# (e.g. queue-time "Enable system diagnostics"), else 'false'.
- name: OrtTestVerbose
value: $[ coalesce(variables['System.Debug'], 'false') ]
```
and switch the five stage references from `$(System.Debug)` to
`$(OrtTestVerbose)`.
This avoids redefining the predefined `System.Debug` variable while
preserving the "Enable system diagnostics" UI toggle — when that
checkbox is set, `System.Debug` is `'true'` at runtime and the derived
variable follows.
A compile-time `${{ if }}` template alternative was not used because
template expressions are evaluated at compile time and cannot see
queue-time runtime variables like `System.Debug`; only a runtime
expression (`$[ ]`) can react to the standard system-diagnostics
checkbox.
## Files changed
| File | Change |
|---|---|
| `plugin-webgpu-test-pipeline.yml` | Add `OrtTestVerbose` derived
variable |
| `plugin-cuda-test-pipeline.yml` | Add `OrtTestVerbose` derived
variable |
| `stages/plugin-linux-webgpu-test-stage.yml` | `$(System.Debug)` →
`$(OrtTestVerbose)` |
| `stages/plugin-linux-cuda-test-stage.yml` | `$(System.Debug)` →
`$(OrtTestVerbose)` |
| `stages/plugin-mac-webgpu-test-stage.yml` | `$(System.Debug)` →
`$(OrtTestVerbose)` |
| `stages/plugin-win-webgpu-test-stage.yml` | `$(System.Debug)` →
`$(OrtTestVerbose)` |
| `stages/plugin-win-cuda-test-stage.yml` | `$(System.Debug)` →
`$(OrtTestVerbose)` |
Pipeline run verified ✅
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>