Skip to content

ci: Read the test scope from job conditions correctly - #25088

Open
MartinZikmund wants to merge 1 commit into
masterfrom
dev/mazi/ci-scope-gate
Open

MartinZikmund wants to merge 1 commit into
masterfrom
dev/mazi/ci-scope-gate

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

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:

  • Desktop Windows / Desktop macOS / Android / WebAssembly WebGPU runtime-test lanes
  • the Desktop Linux Snapshot Tests job

They now use the job form, stageDependencies.Setup.DetermineScope.outputs['SetScope.X'] (every gated stage already dependsOn: Setup). Verified on #25071, which carries the same commit: before it, build 237860 logged WebGpuTestsRequired requires tests: true and 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.ps1 intended.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable)
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features)
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

🤖 Generated with Claude Code

https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z

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
Copilot AI balanced review requested due to automatic review settings October 7, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 12s —— View job


Review of #25088

Verdict: ship. No inline findings.

  • Syntax: The fix is correct. Inside a job condition, the Setup stage output is read as stageDependencies.Setup.DetermineScope.outputs['SetScope.X']. The old stage-level form never resolved there, which explains the always-skipped lanes.
  • Coverage: All five job-level occurrences are converted: the Linux snapshot job, the macOS and Windows WebGPU jobs, and the two WebGPU jobs in runtime-stages.yml.
  • Stage-level conditions left alone: .azure-devops-stages.yml:78 and :136, and runtime-stages.yml:131 (TvOS), still use stageDependencies.Setup.outputs['DetermineScope.SetScope.X']. They are stage conditions, where that form is valid, so they should stay.
  • Dependencies: I did not re-check that each gated stage has dependsOn: Setup. The description says they do.
  • Validation: The description cites CI builds 237860 and 237869 as before/after evidence. I couldn't check them from here, so this is by inspection only.
  • Side effect: More PRs will now run the WebGPU and snapshot lanes, as the description notes.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 237983 has failed on Uno.UI - CI.

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: WebGPU lanes and Linux snapshot tests never run on PRs (scope gate reads Setup output with the stage path)

4 participants