Skip to content

ci: Move iOS runtime tests off macOS-14 (backport 6.8) - #24964

Merged
MartinZikmund merged 9 commits into
servicing/6.8from
dev/mazi/ci-macos14-off-6.8
Oct 13, 2026
Merged

MartinZikmund merged 9 commits into
servicing/6.8from
dev/mazi/ci-macos14-off-6.8

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: part of #24959

Backport of #24680 and #24961 to servicing/6.8, in one PR.

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

The hosted macOS-14 image is retired on 2 Nov 2026, with outage windows from 5 Oct. On this branch the iOS Skia runtime tests still ran on it (macOSVMImage_UITests / Xcode 15.3), and every other Mac job ran on macOS-15. This branch has no tvOS stage.

  • No macOS-15 either: the build image moves from macOS-15 to macOS-26. The DevServer CLI template-test jobs that hardcoded macOS-15 move too.
  • Xcode: builds stay on Xcode 26.1.1 (also on macOS-26), because .NET for iOS 26.1 refuses any other Xcode. macOS-26 doesn't preinstall the iOS 26.1 simulator runtime, and the build jobs need it (actool won't compile asset catalogs without a runtime that matches the SDK), so Select Xcode downloads it there, as it already did when missing. The iOS runtime-test shards select Xcode 26.6 (xCodeRootSimulator), whose iOS 26.5 runtime is preinstalled, so they skip that download. An app built with the 26.1 SDK runs on the newer simulator.
  • The iOS shards run on the build image (macOS-26, iOS 26.5 simulator).
  • The macOS desktop runtime-test job timeout goes from 60 to 120 min: the 6.x suite already took 26-55 min on macOS-15 and ran past 60 on macOS-26.
  • ios-uitest-run.sh uses the simulator runtime that ships with the selected Xcode instead of the hardcoded iOS-17-5, creates iPad Pro (12.9-inch) (6th generation) when the image lacks it (same screen size as before), and installs with xcrun simctl install (one retry). idb and its Homebrew tap / Python pins are gone.
  • macOSVMImage_UITests, xCodeRoot_iOS_UITests and the vmMacImageTest / vmImageTest / xCodeRootTest template parameters are removed. The disabled native iOS stage and TestFlight now take the build image and Xcode.

Also skips the five WebView2 ExecuteScriptAsync runtime tests on SkiaMacOS, next to their existing iOS/Win32 #11997 exclusion. On the macOS-26 image they segfault the whole Desktop Skia macOS process on 6.x (3 out of 3 runs on 6.7), so every later test is lost. Master passes them on macOS-26, and backporting the #24112 native-peer fix did not help, so the root cause is 6.x-specific and needs a Mac to chase.

The iOS multi-window scene fix from #24680 isn't needed here: this branch doesn't support multiple windows on iOS (SupportsMultipleWindows is false), so closing a window can't background the app.

Risk: the simulator moves from iOS 17.5 to iOS 26.5, so outcomes can shift. This PR's CI run is the check.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa

MartinZikmund and others added 2 commits October 3, 2026 11:37
Backport of #24680 (CI part) to servicing/6.8. The macOS-14 hosted image is retired on 2 Nov 2026. The shards now use the build image and Xcode, take the simulator runtime that Xcode ships, create the 12.9-inch iPad when the image lacks it, and install with xcrun simctl instead of idb.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
Backport of #24961 (cleanup part) to servicing/6.8. Nothing runs on macOSVMImage_UITests / xCodeRoot_iOS_UITests anymore; the disabled native iOS stage and TestFlight now take the build image and Xcode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
Copilot AI balanced review requested due to automatic review settings October 3, 2026 09:38
@MartinZikmund MartinZikmund added the area/build Categorizes an issue or PR as relevant to build infrastructure label Oct 3, 2026
@MartinZikmund MartinZikmund self-assigned this Oct 3, 2026

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 2 Medium severity · 2 Low severity

Open (4)
What changed in this PR

Moves iOS Skia runtime tests off the retiring macOS-14 image by consolidating iOS test jobs onto the build macOS image/Xcode and updating the iOS UI-test harness to use the simulator runtime that ships with the selected Xcode (dropping idb).

Changes:

  • Update ios-uitest-run.sh to dynamically resolve the iOS simulator runtime/device from the selected Xcode and install via xcrun simctl install (with a retry).
  • Remove macOS-14 / Xcode 15.3 “UITest” image parameters from Azure DevOps templates and route iOS test jobs to the build macOS image/Xcode.
  • Delete macOS-14/Xcode 15.3 variables from .vsts-ci.yml.
File Description
build/​test-scripts/​ios-uitest-run.sh Switches runtime/device resolution to Xcode-provided simulator runtime, drops idb, and installs via simctl.
build/​ci/​tests/​.azure-devops-tests-windows-skia.yml Removes unused “test mac image/xcode” template parameters.
build/​ci/​tests/​.azure-devops-tests-skia-stages.yml Stops threading removed “test mac image/xcode” parameters through stages.
build/​ci/​tests/​.azure-devops-tests-macos-skia.yml Removes unused “test mac image/xcode” template parameters.
build/​ci/​tests/​.azure-devops-tests-linux-skia.yml Removes unused “test mac image/xcode” template parameters.
build/​ci/​tests/​.azure-devops-tests-ios-skia.yml Runs iOS Skia runtime tests on the build macOS image/Xcode.
build/​ci/​tests/​.azure-devops-tests-ios-skia-build.yml Removes unused “test mac image/xcode” template parameters.
build/​ci/​tests/​.azure-devops-tests-ios-native.yml Routes iOS native test jobs to the build image/Xcode and removes test-only Xcode parameter.
build/​ci/​publish/​.azure-devops-publish-ios-testflight.yml Removes unused test-only Xcode parameter.
build/​ci/​.azure-devops-stages.yml Stops passing macOS-14/Xcode 15.3 test parameters to templates.
.vsts-ci.yml Removes macOS-14/Xcode 15.3 variables.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Moves the remaining macOS-15 jobs to macOS-26, as on master. macOS-26 does not ship the iOS 26.1 simulator runtime that Xcode 26.1.1 needs, so Xcode moves to 26.6 (iOS 26.5 runtime preinstalled).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 39s —— View job


Review complete ✅

  • Gather context (PR diff vs origin/servicing/6.8, changed files)
  • Review CI YAML changes (.vsts-ci.yml, build/ci/**)
  • Review build/test-scripts/ios-uitest-run.sh
  • Post inline findings
  • Post summary

Verdict: ship (minor, non-blocking finding only)

Findings: 1 minor

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code used for two different failure causes (missing simulator runtime vs. missing device type), breaking the script's otherwise-unique error-code convention. See inline comment.

Verified clean:

  • All removed template parameters (vmMacImageTest, vmImageTest, xCodeRootTest, macOSVMImage_UITests, xCodeRoot_iOS_UITests) have no remaining references anywhere in build/ci/ or .vsts-ci.yml — the removal is complete and consistent across all 9 YAML files.
  • The idb/Homebrew/pipx removal in the shell script is thorough — no leftover references to idb, fb-idb, or idb-companion anywhere in the repo.
  • The dynamic simulator-runtime/device-type resolution (replacing the hardcoded iOS-17-5) correctly derives the runtime from the active Xcode's SDK version and falls back to creating the iPad Pro device when the image doesn't pre-provision it; the new simctl install retry-once path is a reasonable, simpler replacement for the old idb double-retry.
  • Script indentation (tabs) and structure match the rest of the file; no set -u/set -e hazards introduced.

Cross-cutting note (non-blocking): The PR description says the iOS shards use macOSVMImage/xCodeRoot = macOS-15 / Xcode 26.1.1, but the actual diff in .vsts-ci.yml (commit 71a4a8ad) bumps these to macOS-26 / Xcode 26.6. Worth updating the PR description for anyone using it as a changelog reference, though the code itself is internally consistent.

The removal of the old "wait for simulator to appear" retry loop in favor of a direct simctl list runtimes/simctl list devices query is a reasonable simplification given the new detection approach queries runtimes/device-types directly rather than polling for devices to appear — not flagged as a defect, but worth keeping an eye on in the CI run given the simulator jump from iOS 17.5 to 26.x that the PR description itself calls out as the main risk.

Comment thread build/test-scripts/ios-uitest-run.sh Resolved
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 48s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, read changed files)
  • Review ios-uitest-run.sh logic (device/runtime resolution, simctl install, error handling)
  • Review Azure DevOps YAML template changes (parameter removal, image/Xcode routing)
  • Cross-check against AGENTS.md conventions
  • Post inline findings
  • Post summary

Verdict: ship (minor non-blocking nits)

This is a CI-only backport (shell script + Azure DevOps YAML), so most of the C#/XAML-specific review checklist (DependencyProperty, async/cancellation, SOLID, XAML styling) doesn't apply. I focused on script correctness and template wiring.

What I verified:

  • The vmMacImageTest/xCodeRootTest/macOSVMImage_UITests parameter removal is complete and consistent — no dangling references left anywhere in build/ci/** or .vsts-ci.yml.
  • All iOS job templates (*-ios-skia.yml, *-ios-native.yml, *-ios-skia-build.yml, publish/testflight) now correctly route through vmMacImage/xCodeRootBuild instead of the removed test-image parameters.
  • The three commits are properly scoped and each follows Conventional Commits.
  • No stray idb functional references remain (only historical comments explaining why it was dropped).
  • The latest commit (71a4a8a, pushed after the automated Copilot pass above) bumps macOSVMImage/xCodeRoot from macOS-15/Xcode 26.1.1 to macOS-26/Xcode 26.6, with accompanying comment-text generalizations (e.g. "which the image does not preinstall" instead of hardcoding an image name) — note the PR description still states macOS-15/Xcode 26.1.1, so it's now out of date relative to the branch; worth a quick edit before merge for anyone reading the description later.

On the automated Copilot findings above: I independently traced the same two code paths and they're technically accurate:

  • The single, non-retried find_ios_device() call right at script start (before this run's own simctl boot) reinstates a transient-empty-list risk the old polling loop existed specifically to avoid — plausible but low-blast-radius (worst case is an extra simulator device, not a failure), and set -e plus the explicit UNOBLD008 error paths mean an exhausted lookup fails loudly rather than silently.
  • UITEST_IOSDEVICE_DATA_PATH resolving to the literal string "null" on a lookup miss is real, but I checked and this variable isn't consumed anywhere else in the script or repo (it was already unused in the pre-PR version too) — so it's latent/cosmetic rather than something that can break the run today.

Neither blocks merge; both are reasonable tightening if the author wants to address them, since the PR's own stated risk is already the CI run itself validating iOS 17.5 → 26.x simulator behavior.
·

@unodevops

Copy link
Copy Markdown
Contributor

.NET for iOS 26.1 refuses any Xcode but 26.1 ("requires Xcode 26.1. The current version of Xcode is 26.6"), so builds stay on Xcode 26.1.1, which macOS-26 also ships. That image has no iOS 26.1 simulator runtime, so build-only jobs skip the runtime check in Select Xcode, and the iOS runtime-test shards select Xcode 26.6, whose iOS 26.5 runtime is preinstalled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 28s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, changed files)
  • Review ios-uitest-run.sh changes
  • Review Azure DevOps YAML template changes
  • Cross-check against AGENTS.md conventions
  • Post inline findings
  • Post summary

Verdict: ship (minor, non-blocking findings only)

Findings: 4 minor, 0 blocking

  • build/test-scripts/ios-uitest-run.sh:187-194 — find_ios_device() runs once with no retry, reintroducing the transient-empty-list race the old polling loop existed to avoid; worst case is an extra/duplicate simulator rather than a hard failure.
  • build/test-scripts/ios-uitest-run.sh:205 — reuses the UNOBLD008 error code already used at line 180 for a different failure cause, breaking the script's otherwise one-code-per-condition convention. Flagged by an earlier automated pass too and still unaddressed.
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve UITEST_IOSDEVICE_DATA_PATH to the literal string "null" on a lookup miss instead of failing loudly.
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) reaches for a global pipeline variable directly instead of being threaded as a template parameter, unlike every other Xcode/image value in this PR.

Verified clean:

  • All removed template parameters (vmMacImageTest, vmImageTest, xCodeRootTest, macOSVMImage_UITests, xCodeRoot_iOS_UITests) have no remaining references anywhere in build/ci/ or .vsts-ci.yml.
  • The new requireSimulatorRuntime parameter on ios-build-select-version.yml is wired correctly: build-only jobs (iOS build, TestFlight publish) pass false to skip the runtime download, while the simulator-driving jobs still verify/download it.
  • .azure-devops-tests-ios-native.yml and the publish/testflight template now correctly route through xCodeRootBuild/vmImage instead of the removed test-only parameters, consistent with the PR description (both native and skia iOS test jobs move to the build image/Xcode, with skia runtime tests additionally pinned to the newer xCodeRootSimulator for the simulator runtime).
  • No stray idb/Homebrew-tap/pipx references remain in the script or repo.

Cross-cutting note (non-blocking): these are the same shell-script findings an earlier automated review pass on this PR already surfaced (duplicate error code, jq null handling, retry-loop removal) — they haven't been addressed in the four commits since, so re-flagging here. The PR's own stated risk (iOS 17.5 → 26.5 simulator jump, newer build Xcode than previously paired) is best validated by this PR's own CI run rather than by review alone.
· branch dev/mazi/ci-macos14-off-6.8

Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Comment thread build/test-scripts/ios-uitest-run.sh Resolved
Comment thread build/test-scripts/ios-uitest-run.sh Resolved
actool refuses to compile asset catalogs without a simulator runtime that matches the SDK ("No simulator runtime version from [...] available to use with iphonesimulator SDK version 23B77"), so the build jobs need the runtime after all. Select Xcode downloads it as before; only the simulator test shards use Xcode 26.6.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 4s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, read changed files)
  • Review ios-uitest-run.sh against prior findings to see what's still open
  • Review all 12 touched Azure DevOps YAML files for parameter-threading consistency
  • Cross-check PR description against the actual final diff
  • Post summary

Verdict: ship (minor, non-blocking)

This is a CI-only backport (shell script + Azure DevOps YAML), so most of the C#/XAML-specific checklist (DependencyProperty, async/cancellation, SOLID, XAML styling) doesn't apply. I re-verified the prior findings from earlier automated passes against the current HEAD and didn't re-post them as new inline comments since they're unchanged and already visible on the thread — summarized below instead to avoid duplicate noise.

Still open from earlier review passes (unaddressed across the 4 commits since they were first raised):

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code for two distinct failure causes (missing runtime vs. missing device type).
  • build/test-scripts/ios-uitest-run.sh:194 — find_ios_device() now runs once with no retry, reinstating the transient-empty-list race the old polling loop guarded against.
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve UITEST_IOSDEVICE_DATA_PATH to the literal string "null" on a lookup miss (currently latent/cosmetic — the variable isn't consumed elsewhere).
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) reaches for the global pipeline variable directly instead of being threaded as a template parameter, unlike every other Xcode/image value in this PR.

New finding (this pass): PR description is out of date relative to the final diff.
The description's "What changed" section states build-only jobs "skip the runtime check in ios-build-select-version.yml (new requireSimulatorRuntime parameter)". That parameter doesn't exist anywhere in the repo — build/ci/templates/ios-build-select-version.yml has a net-zero diff in this PR (it was edited and then reverted back by the final two commits, 95dbdff6 and 1037a5e1, the latter titled "Download the iOS 26.1 runtime for build jobs again"). Every caller (ios-skia-build.yml, ios-native.yml, ios-runner.yml, .azure-devops-tests-templates.yml, .azure-devops-publish-ios-testflight.yml) still just passes xCodeRoot; the template unconditionally attempts the xcodebuild -downloadPlatform iOS download if the runtime is missing, for all jobs including build-only ones. The actual code is internally consistent and fine — only the description's "what changed" narrative is stale and should be corrected before merge so it doesn't mislead future readers using it as a changelog.

Verified clean (re-confirmed on current HEAD):

  • All removed template parameters (vmMacImageTest, vmImageTest, xCodeRootTest, macOSVMImage_UITests, xCodeRoot_iOS_UITests) have no remaining references anywhere in build/ci/ or .vsts-ci.yml.
  • ios-native.yml and the TestFlight publish template correctly route through vmImage/xCodeRootBuild everywhere the removed test-only parameters used to be referenced (including the commented-out Benchmarks job block).
  • No stray idb/Homebrew-tap/pipx references remain in the script or repo.
  • Commit messages all follow Conventional Commits.
    · branch dev/mazi/ci-macos14-off-6.8

@unodevops

Copy link
Copy Markdown
Contributor

jq rejects "\." in a string literal, so every iOS shard aborted while resolving the simulator.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 0s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, changed files, prior review history)
  • Review latest commit (dff6b0b1 fix(ci): Escape the jq regex for the simulator runtime) for new issues
  • Re-check previously flagged findings against current HEAD
  • Post any new inline findings
  • Post summary

Verdict: ship (minor, non-blocking — unchanged from prior passes)

This trigger fired on a new commit pushed since the last automated pass. I verified that commit in isolation and re-checked the file state as a whole; I did not re-post inline comments for findings already surfaced on this thread, to avoid further duplicate noise — they're summarized below instead.

The new commit (dff6b0b1) is a correct, necessary fix, not cosmetic: test("SimRuntime\.iOS") is invalid inside a jq string literal — JSON string escaping only recognizes a fixed set of escapes (\n, \t, \", \\, \/, \b, \f, \r, \uXXXX), and \. isn't one of them, so jq would reject the script at parse time and every iOS shard's simulator-version resolution (introduced earlier in this same PR, build/test-scripts/ios-uitest-run.sh:175) would abort before running any test. Escaping to \\. produces the literal two-character string \. for test() to interpret as an escaped-dot regex, which is correct. Good catch — this confirms the PR's own stated risk (the new Xcode/runtime resolution logic) was exercised for real by CI and caught a real bug.

Still open from earlier review passes on this PR (unaffected by the new commit, unaddressed across prior commits since first raised):

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code used for two distinct failure causes (missing simulator runtime vs. missing device type), breaking the script's one-code-per-condition convention.
  • build/test-scripts/ios-uitest-run.sh:194 — find_ios_device() runs once with no retry, reinstating the transient-empty-list race the old polling loop existed to guard against (worst case: an extra/duplicate simulator, not a hard failure).
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve UITEST_IOSDEVICE_DATA_PATH to the literal string "null" on a lookup miss instead of failing loudly (currently latent — not consumed elsewhere in the script).
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) still reaches for the global pipeline variable directly instead of being threaded as a template parameter, unlike every other Xcode/image value in this PR.

Verified clean (re-confirmed on current HEAD):

  • All removed template parameters (vmMacImageTest, vmImageTest, xCodeRootTest, macOSVMImage_UITests, xCodeRoot_iOS_UITests) have no remaining references anywhere in build/ci/ or .vsts-ci.yml.
  • No stray idb/Homebrew-tap/pipx references remain in the script or repo.
  • Commit messages all follow Conventional Commits, including the new fix(ci): commit.

None of the four still-open items are blocking — they're either latent/cosmetic or a risk-reducing hardening opportunity rather than a correctness defect, and the PR's own stated risk (iOS 17.5 → 26.5 simulator jump) is best validated by this PR's CI run, which the latest commit shows is actively doing its job.

@unodevops

Copy link
Copy Markdown
Contributor

The 6.x suite took 26-55 min on macOS-15 against a 60 min job timeout, and ran past it on macOS-26.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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


Review complete

  • Gather context (diff vs origin/servicing/6.8, identify what's new since the last review pass)
  • Re-verify previously flagged findings are still open
  • Check the new commit for new issues
  • Post summary

Verdict: ship (minor, non-blocking — unchanged from prior passes)

This trigger fired on a new commit (caac62b9, "Allow 120 minutes for the macOS desktop runtime tests") pushed since the last automated review pass covered dff6b0b1. That commit is a one-line, low-risk change: it doubles timeoutInMinutes for the Skia_macos_Runtime_Tests_Build job in build/ci/tests/.azure-devops-tests-macos-skia.yml from 60 to 120, with a comment explaining why (the suite already took up to 55 min on macOS-15 against the 60 min limit, and macOS-26 agents are slower). This is consistent with the PR's broader macOS-26 migration and doesn't introduce any new risk — no findings here.

Still open from earlier review passes on this PR (unaffected by the new commit, unaddressed across the commits since first raised):

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code used for two distinct failure causes (missing simulator runtime vs. missing device type), breaking the script's one-code-per-condition convention.
  • build/test-scripts/ios-uitest-run.sh:194 — find_ios_device() runs once with no retry, reinstating the transient-empty-list race the old polling loop existed to guard against (worst case: an extra/duplicate simulator, not a hard failure).
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve UITEST_IOSDEVICE_DATA_PATH to the literal string "null" on a lookup miss instead of failing loudly (currently latent — not consumed elsewhere in the script).
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) still reaches for the global pipeline variable directly instead of being threaded as a template parameter, unlike every other Xcode/image value in this PR.

None of these are blocking — they're either latent/cosmetic or a risk-reducing hardening opportunity rather than a correctness defect. I did not re-post inline comments for them since they're already visible on the thread from earlier passes and unchanged.

Verified clean (re-confirmed on current HEAD):

  • All removed template parameters (vmMacImageTest, vmImageTest, xCodeRootTest, macOSVMImage_UITests, xCodeRoot_iOS_UITests) have no remaining references anywhere in build/ci/ or .vsts-ci.yml.
  • No stray idb/Homebrew-tap/pipx references remain in the script or repo.
  • Commit messages all follow Conventional Commits, including the new ci(macos): commit.
    · branch dev/mazi/ci-macos14-off-6.8

@unodevops

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform label Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 33s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, identify what's new since the last review pass)
  • Review new commit 81165084 ("Stop two native-peer use-after-free crashes") — first pass over these files in this thread
  • Re-verify previously flagged CI findings are still open
  • Post summary

Verdict: ship (no new findings)

This trigger fired on a new commit (81165084) since the last automated pass, which previously only covered the CI/YAML scope. This commit is different in kind — it's a cherry-pick of an already-merged master fix (#24112, commit 2b3cef79) into UnoNativeMac/MacOSNativeElementHostingExtension/MacOSNativeWebView, fixing a real crash: native peers (NSView subclasses for the host element, WebView, media player) were created owned only by the autorelease pool, so a later uno_native_attach/uno_native_dispose round-trip could retain freed memory.

What I verified on this commit:

  • Objective-C ownership invariant (UNONative.m): uno_native_track() now takes the native-side strong reference at creation time (uno_native_create_sample, uno_mediaplayer_create_view, uno_webview_create all call it immediately after allocation), closing the original gap. The transients/elements handoffs in attach/detach always add the new owning reference before dropping the old one (no window where retain count could hit zero), and uno_native_dispose is correctly terminal — it drops both references and guards against a null element.
  • Managed-side disposal (MacOSNativeElementHostingExtension.cs): Disposal moved from the Unloaded event (which also fires on a reparent, i.e. not actually terminal) to the wrapper's finalizer, with a Disposed/zeroed-NativeHandle guard so a disposed peer's handle can never be handed back to native code. TryGetLiveElement centralizes that guard across all seven INativeElementHostingExtension members; MeasureNativeElement's fallback changed from Size.Empty (effectively (-∞,-∞), which the layouter doesn't clamp) to Size(0,0), which is correct given the new "live or not" branch replaces the previous always-present else.
  • MacOSDispatcher.DispatchNativeSingle (used to hop the finalizer-thread disposal call back to the main/AppKit thread) is pre-existing, already used elsewhere in this class (RaiseQueuedHistoryChange), so reusing it from a finalizer is consistent with established usage, not a new pattern to scrutinize.
  • MacOSNativeWebView.cs: every native call site now goes through TryGetHandle, and OnUnloaded unregisters by a remembered _registeredHandle rather than the live NativeHandle (which may already be zeroed by disposal racing unload) — correctly avoids keying _webViews at 0 across multiple disposed instances. uno_webview_register_message_handler now removes-then-adds the script message handler, fixing a second crash (addScriptMessageHandler:name: throws on a duplicate name when the same WKWebView is re-attached).
  • No platform-suffix, async/cancellation, or DependencyProperty issues — this is native interop/lifetime code, not UI-layer or property-system code.
  • Commit message is a correctly-scoped Conventional Commit (fix(macos): ...) and transparently documents it as an unchanged backport with a traceable cherry-pick source.

Still open from earlier review passes on the CI portion of this PR (unaffected by the new commit, unaddressed across all commits since first raised — not re-posted inline to avoid duplicate noise):

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code for two distinct failure causes (missing simulator runtime vs. missing device type).
  • build/test-scripts/ios-uitest-run.sh:194 — find_ios_device() runs once with no retry, reinstating the transient-empty-list race the old polling loop guarded against.
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve UITEST_IOSDEVICE_DATA_PATH to the literal string "null" on a lookup miss.
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) reaches for the global pipeline variable directly instead of being threaded as a template parameter.

None of these are blocking — they're latent/cosmetic hardening opportunities, not correctness defects, and the PR's own stated risk (iOS 17.5 → 26.5 simulator jump) is being validated by this PR's CI run.
· branch dev/mazi/ci-macos14-off-6.8

@unodevops

Copy link
Copy Markdown
Contributor

On the macOS-26 image these segfault the whole Desktop Skia macOS run on 6.x, in three out of three runs, taking every later test with it. They are already skipped on iOS and Win32 for #11997; master passes them, so the crash is 6.x-specific and needs a Mac to root-cause.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018riLfyvT4wZYEh8iFjWkKa
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/ci-macos14-off-6.8 branch from 8116508 to 7d05428 Compare October 3, 2026 23:02
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 44s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, identify what's new since the last review pass)
  • Review against AGENTS.md rules (root-cause-first fixes, skipped-test policy, CI/YAML correctness)
  • Post inline findings
  • Post summary

Verdict: fix-first (1 new finding, not blocking CI but worth resolving before merge)

New since the last review pass: the branch was force-pushed/rebased, and the commit this thread previously reviewed in depth — 81165084, "Stop two native-peer use-after-free crashes" (a clean cherry-pick of master's #24112 fixing native-peer lifetime in MacOSNativeElementHostingExtension/UNONative.m/MacOSNativeWebView) — is no longer in the branch. In its place, the latest commit (7d05428f) disables the five ExecuteScriptAsync tests on SkiaMacOS in Given_WebView2.cs instead, per its own message because they "segfault the whole Desktop Skia macOS run on 6.x, in three out of three runs" — i.e. the same crash the dropped fix addressed. Posted as an inline finding with specifics and a fix link.

Why this matters: this swaps a root-cause fix for a defensive test-skip, which this repo's debugging discipline requires to be explicitly labeled and justified, not silently substituted. It also makes the PR description inaccurate — it still states "Also backports #24112 (macOS native-peer use-after-free)" as part of what changed, which is no longer true of the code on this branch.

Everything flagged in earlier passes on this thread remains open and unaffected by this change (not re-posted to avoid duplicate noise):

  • build/test-scripts/ios-uitest-run.sh:180,205 — duplicate UNOBLD008 error code for two distinct failure causes.
  • build/test-scripts/ios-uitest-run.sh:194 — find_ios_device() runs once with no retry, reinstating a transient-empty-list race.
  • build/test-scripts/ios-uitest-run.sh:215 — jq -r without // empty can resolve to the literal string "null" on a lookup miss.
  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) reaches for a global pipeline variable instead of being threaded as a template parameter.

Also re-verified as fine: the most recent CI-only commit (caac62b9, raising the macOS desktop runtime-test timeout from 60 to 120 min) is a low-risk, well-justified one-liner consistent with the rest of the macOS-26 migration — no issue there.
· branch dev/mazi/ci-macos14-off-6.8

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

Brings the review fixes master's #24961 got: retry the runtime and
device-type lookups while simctl settles, give the missing device type
its own UNOBLD009 code, and drop the unused device data path export.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tmiyo6fvmNeNuLXL2kbyJN
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 42s —— View job


Review complete

  • Gather context (diff vs origin/servicing/6.8, identify what's new since the last review pass)
  • Review new commit 8fbf6e13 ("Retry the simulator lookups as on master")
  • Re-verify previously flagged findings against current HEAD
  • Review Given_WebView2.cs test-skip / fix(macos): Stop two native-peer use-after-free crashes in CI #24112 cross-reference
  • Post inline finding (1 new)
  • Post summary

Verdict: ship (1 minor, non-blocking finding)

This trigger fired on the new commit 8fbf6e13 ("Retry the simulator lookups as on master"), which is a backport of master's own review fixes (#24961) onto this branch's ios-uitest-run.sh.

What this commit fixes (3 of the 4 previously open findings from earlier passes on this thread):

  • The duplicate UNOBLD008 error code is resolved — the missing-device-type branch now logs UNOBLD009, restoring the one-code-per-condition convention. Verified no other collisions exist among the script's error codes.
  • The runtime-version lookup and device-type lookup each now retry up to 6 times with a 5s sleep while simctl settles, addressing the "transient empty list" race flagged earlier.
  • The unused UITEST_IOSDEVICE_DATA_PATH export (whose jq -r could previously resolve to the literal string "null") is removed entirely rather than hardened, since nothing consumed it — a clean resolution of that finding.

New finding (1, non-blocking): find_ios_device() (build/test-scripts/ios-uitest-run.sh:194) — the lookup for an already-existing simulator — still runs once with no retry, unlike the two lookups this same commit just hardened. A transient empty result here still falls straight into simctl create, which can leave behind a duplicate/orphaned simulator. Worst case is cosmetic (an extra simulator, not a CI failure), but it's inconsistent with the commit's own stated goal of retrying "while simctl settles." Posted inline with a suggested fix.

Also re-verified as resolved: the PR description now explicitly explains that backporting #24112 (the macOS native-peer use-after-free fix) was tried and didn't fix the segfault, and that the root cause is 6.x-specific — this was a prior finding (stale description vs. dropped cherry-pick) and is now addressed by the description update rather than by re-applying the fix, which is a reasonable call given it didn't help.

Still open but low-priority (pre-existing, unaddressed across many commits, not re-posted to avoid duplicate noise):

  • build/ci/tests/.azure-devops-tests-ios-skia.yml:45 — xCodeRoot: $(xCodeRootSimulator) reaches for the global pipeline variable directly instead of being threaded as a template parameter, unlike every other Xcode/image value in this PR.

None of the open items are blocking. The PR's own stated risk (iOS 17.5 → 26.5 simulator jump) continues to be validated by this PR's CI runs, and the latest commit shows the author actively incorporating master's review feedback into this backport.
· branch dev/mazi/ci-macos14-off-6.8

Comment thread build/test-scripts/ios-uitest-run.sh Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@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 CI changes match master PR #24961 (plus the parts of #24680 that apply to 6.8). I compared the changed lines against #24961 and applied the diff to the current servicing/6.8 blobs: it applies cleanly. No references to the removed parameters or to macOS-14/macOS-15 images remain in build/ or .vsts-ci.yml. The deviations from master are the ones the description lists: no tvOS stage, no iOS scene hand-over fix (SupportsMultipleWindows is false on this branch), and five WebView2 ExecuteScriptAsync tests skipped on SkiaMacOS.

Notes (non-blocking):

  • The WebView2 skip reduces coverage. It is justified by the 6.8 macOS run passing with it in place (Tests - Desktop Skia macOS Runtime Tests: pass on head 8fbf6e1). Acceptable for servicing; revert it once the root cause is fixed on master.
  • The Codacy Static Code Analysis check reports fail. I could not see the reason, so I have not verified it.
  • Runtime evidence is from the PR checks on this head: the iOS Skia runtime shards 0-3, iOS build and desktop macOS runtime job pass. I did not run the shell script changes locally.

@MartinZikmund
MartinZikmund merged commit 9a283a0 into servicing/6.8 Oct 13, 2026
58 of 59 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/ci-macos14-off-6.8 branch October 13, 2026 16:31
@ramezgerges ramezgerges mentioned this pull request Oct 27, 2026
2 of 5 tasks
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 platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants