Repository navigation
ci: Read the test scope from job conditions correctly - #25088
MartinZikmund wants to merge 1 commit into
Conversation
A job in another stage reads a Setup output as stageDependencies.Setup.DetermineScope.outputs['SetScope.X']; the stage-level path these used never resolved, so the gated WebGPU lanes and the Linux screenshot job were skipped on every pull request even when the scope asked for them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
|
Claude finished @MartinZikmund's task in 12s —— View job Review of #25088Verdict: ship. No inline findings.
|
|
|
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Verified: the job-level syntax is correct. Inside a job condition, stageDependencies...outputs['.'] is the right form. The producer is Setup / DetermineScope / SetScope (build/ci/.azure-devops-stages.yml:29-43), and determine-test-scope.ps1 sets the variables with isOutput=true. Every stage that uses the changed jobs (runtime_tests_skia_linux, _macos, _windows, runtime_tests_skia_browser, runtime_tests_skia_android) declares dependsOn: Setup, which stageDependencies requires. The stage-level tvOS condition correctly keeps the stage-level form. The fix matches the stated root cause.
Open question (reason for COMMENT):
- With the lanes now running, they are red on this PR (Azure build 237983, head a723a90): the Desktop macOS WebGPU job segfaults (exit 139) and is cancelled at worker timeout; WebAssembly WebGPU group 3 produced no results file; group 9 has test failures.
- The same lanes are also red on recent master builds (e.g. build 239011 has WebAssembly WebGPU groups 1, 5, 6, 8, 10 and Desktop macOS WebGPU failed), so this change did not cause them. After merge, though, every PR that touches WebGPU or the test infrastructure will hit them. Please confirm that is intended, or fix or skip the failing lanes before merging.
|
Tick the box to add this pull request to the merge queue (same as
|
GitHub Issue: closes #25087
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
The job-level scope gates read the Setup output with the stage-level path (
stageDependencies.Setup.outputs['DetermineScope.SetScope.X']), which never resolves inside a job, so these jobs were skipped on every pull request since 80c153d, even when the scope asked for them:They now use the job form,
stageDependencies.Setup.DetermineScope.outputs['SetScope.X'](every gated stage alreadydependsOn: Setup). Verified on #25071, which carries the same commit: before it, build 237860 loggedWebGpuTestsRequired requires tests: trueand still skipped all four gated WebGPU lanes; after it, build 237869 ran them.Note: PRs that touch WebGPU, the runtime-test infrastructure or screenshot-relevant code will now run those lanes, as
determine-test-scope.ps1intended.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z