Skip to content

chore: try building on macOS 26 - #23622

Closed
jonpryor wants to merge 1 commit into
masterfrom
dev/jonpryor/jonp-try-macos-26
Closed

jonpryor wants to merge 1 commit into
masterfrom
dev/jonpryor/jonp-try-macos-26

Conversation

@jonpryor

@jonpryor jonpryor commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Context: #23603

PR #23603 has one remaining blocking issue:
Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests regularly crashes on CI, frequently during/immediatley after the Given_WebView2.When_ExecuteScriptAsync_Has_No_Result() or Given_WebView2.When_ExecuteScriptAsync_Non_String() tests.

The question is why.

Additionally, there are (at least?) two significant changes in PR #23603: (1) it uses .NET 11 instead of .NET 10, and (2) it builds on macOS 26 instead of macOS 15.

Furthermore, crash cannot be reproduced locally on macOS 26 arm64 or on macOS 15 x64, while the crash does occur on macOS 26 x64.

Update CI to use macos-26. This avoids the .NET 11 changes, narrowing things down to just the macOS 26 changes.

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

PR Checklist ✅

Copilot AI review requested due to automatic review settings July 2, 2026 18:35
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Jul 2, 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.

Pull request overview

This PR updates the Azure DevOps pipeline configuration to run macOS CI jobs on the macOS-26 hosted image (instead of macOS-15) to help narrow down the cause of the macOS 26 x64 runtime-test crashes described in the PR context.

Changes:

  • Update the macOSVMImage variable in .vsts-ci.yml from macOS-15 to macOS-26.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor

jonpryor commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

The result of this exercise is that Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests crashes on CI when the only change is the use of macOS 26 (x64):

2026-07-02T19:22:02.2676260Z �[40m�[32minfo�[39m�[22m�[49m: Uno.UI.Samples.Tests.UnitTestsControl[0]
2026-07-02T19:22:02.2678260Z       Running 13 test methods
2026-07-02T19:22:02.2679670Z �[40m�[32minfo�[39m�[22m�[49m: Uno.UI.Samples.Tests.UnitTestsControl[0]
2026-07-02T19:22:02.2680790Z       Running test When_ExecuteScriptAsync()
2026-07-02T19:22:03.1212910Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:03.1361030Z       LoadHtmlString: <html><body><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html>
2026-07-02T19:22:06.8725580Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:06.8728030Z       ExecuteScriptAsync: javascript:eval({ 'color' : document.getElementById('test').style.backgroundColor })
2026-07-02T19:22:06.9948890Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:06.9984970Z       ExecuteScriptAsync: javascript:document.getElementById('test').style.backgroundColor = 'red';
2026-07-02T19:22:06.9989390Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:07.0007760Z       ExecuteScriptAsync: javascript:eval({ 'color' : document.getElementById('test').style.backgroundColor })
2026-07-02T19:22:07.0084670Z �[40m�[32minfo�[39m�[22m�[49m: Uno.UI.Samples.Tests.UnitTestsControl[0]
2026-07-02T19:22:07.0087640Z       Running test When_ExecuteScriptAsync_Has_No_Result()
2026-07-02T19:22:07.0608910Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:07.0616910Z       LoadHtmlString: <html><body><script>function testMe(){ }</script><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html>
2026-07-02T19:22:07.7039260Z �[40m�[37mdbug�[39m�[22m�[49m: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
2026-07-02T19:22:07.7048980Z       ExecuteScriptAsync: javascript:testMe()
2026-07-02T19:22:07.7297910Z �[40m�[32minfo�[39m�[22m�[49m: Uno.UI.Samples.Tests.UnitTestsControl[0]
2026-07-02T19:22:07.7301730Z       Running test When_ExecuteScriptAsync_Non_String()
2026-07-02T19:22:08.3676290Z build/test-scripts/macos-skia-runtime-tests.sh: line 21: 40061 Segmentation fault: 11  dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE

Meaning the crash is not related to .NET 11 (#23603), and probably not related to Uno.

Closing this PR as the hypothesis has been validated

@jonpryor jonpryor closed this Jul 2, 2026
jonpryor added a commit that referenced this pull request Jul 6, 2026
Context: #23622
Context: #23642

**Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests**
regularly crashes on CI *when using macos-26*:

	info: Uno.UI.Samples.Tests.UnitTestsControl[0]
	      Running test When_ExecuteScriptAsync_Has_No_Result()
	dbug: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
	      LoadHtmlString: <html><body><script>function testMe(){ }</script><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html>
	build/test-scripts/macos-skia-runtime-tests.sh: line 31: 70322 Segmentation fault: 11  dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE

and as the .NET 11 bump updates `$(macOSVMImage)` to be macos-26 --
beecause only macos-26 has Xcode 26.5, which .NET 11 P5 requires --
for awhile it looked like this might be a .NET 11 issue.

PR #23622 verified that this was in fact a macos-26 issue, unrelated
to .NET 11.

Update `.azure-devops-tests-macos-skia.yml` to run the
**Tests - Desktop Skia MacOS** stage on $(vmMacImageTest) (macos-14)
instead of $(macOSVMImage) (macos-26).  This allows the tests to run
without crashing on CI.

*Note*: we are unable to locally reproduce the crash, though it *may*
be addressed by #23642.

Additionally, update `macos-skia-runtime-tests.sh` to explicitly log
the ABI of the machine running the tests, as `macos-26` means different
things between [GitHub Actions][0] (arm64!)

> | **Image**       | **Architecture**  | **YAML Label** |
> | --------------- | ----------------- |----------------|
> | macOS 26 Arm64  | arm64             | `macos-26` or `macos-26-xlarge` |

and [Azure DevOps][1] (x64!).

> **macOS images updates**
>
> * The macOS 26 (Intel) Azure Pipelines hosted agent image is in public preview.
> * …
> * The macOS 15 Sequoia ARM64 limited public preview has been paused.

(As far as @jonpryor can tell, Azure DevOps currently provides *no*
arm64 build agents…)

[0]: https://github.com/actions/runner-images/tree/f84258ba81f6e9f1edfaf7a83da4727921e85790#available-images
[1]: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=macos-images%2Cyaml#macos-images-updates
Context: #23603

PR #23603 has one remaining blocking issue:
**Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests**
regularly crashes on CI, frequently during/immediatley after the
`Given_WebView2.When_ExecuteScriptAsync_Has_No_Result() or
`Given_WebView2.When_ExecuteScriptAsync_Non_String() tests.

The question is *why*.

Additionally, there are (at least?) two *significant* changes in
PR #23603: (1) it uses .NET 11 instead of .NET 10, and
(2) it builds on macOS 26 instead of macOS 15.

Furthermore, crash cannot be reproduced locally on macOS 26 arm64
or on macOS 15 x64, while the crash *does* occur on macOS 26 x64.

Update CI to use macos-26.  This avoids the .NET 11 changes, narrowing
things down to just the macOS 26 changes.
@jonpryor jonpryor reopened this Jul 6, 2026
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-macos-26 branch from 5cf8bf6 to 2052baf Compare July 6, 2026 13:35
@jonpryor

jonpryor commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Did #23642 fix things? Let's find out!

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor

jonpryor commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Did #23642 fix things? Let's find out!

NO, no it did not. Same crash remains.

@jonpryor jonpryor closed this Jul 6, 2026
jonpryor added a commit that referenced this pull request Jul 7, 2026
Context: #23622
Context: #23642

**Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests**
regularly crashes on CI *when using macos-26*:

	info: Uno.UI.Samples.Tests.UnitTestsControl[0]
	      Running test When_ExecuteScriptAsync_Has_No_Result()
	dbug: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
	      LoadHtmlString: <html><body><script>function testMe(){ }</script><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html>
	build/test-scripts/macos-skia-runtime-tests.sh: line 31: 70322 Segmentation fault: 11  dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE

and as the .NET 11 bump updates `$(macOSVMImage)` to be macos-26 --
beecause only macos-26 has Xcode 26.5, which .NET 11 P5 requires --
for awhile it looked like this might be a .NET 11 issue.

PR #23622 verified that this was in fact a macos-26 issue, unrelated
to .NET 11.

Update `.azure-devops-tests-macos-skia.yml` to run the
**Tests - Desktop Skia MacOS** stage on $(vmMacImageTest) (macos-14)
instead of $(macOSVMImage) (macos-26).  This allows the tests to run
without crashing on CI.

*Note*: we are unable to locally reproduce the crash, though it *may*
be addressed by #23642.

Additionally, update `macos-skia-runtime-tests.sh` to explicitly log
the ABI of the machine running the tests, as `macos-26` means different
things between [GitHub Actions][0] (arm64!)

> | **Image**       | **Architecture**  | **YAML Label** |
> | --------------- | ----------------- |----------------|
> | macOS 26 Arm64  | arm64             | `macos-26` or `macos-26-xlarge` |

and [Azure DevOps][1] (x64!).

> **macOS images updates**
>
> * The macOS 26 (Intel) Azure Pipelines hosted agent image is in public preview.
> * …
> * The macOS 15 Sequoia ARM64 limited public preview has been paused.

(As far as @jonpryor can tell, Azure DevOps currently provides *no*
arm64 build agents…)

[0]: https://github.com/actions/runner-images/tree/f84258ba81f6e9f1edfaf7a83da4727921e85790#available-images
[1]: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=macos-images%2Cyaml#macos-images-updates
jonpryor added a commit that referenced this pull request Jul 8, 2026
Context: #23622
Context: #23642

**Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests**
regularly crashes on CI *when using macos-26*:

	info: Uno.UI.Samples.Tests.UnitTestsControl[0]
	      Running test When_ExecuteScriptAsync_Has_No_Result()
	dbug: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0]
	      LoadHtmlString: <html><body><script>function testMe(){ }</script><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html>
	build/test-scripts/macos-skia-runtime-tests.sh: line 31: 70322 Segmentation fault: 11  dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE

and as the .NET 11 bump updates `$(macOSVMImage)` to be macos-26 --
beecause only macos-26 has Xcode 26.5, which .NET 11 P5 requires --
for awhile it looked like this might be a .NET 11 issue.

PR #23622 verified that this was in fact a macos-26 issue, unrelated
to .NET 11.

Update `.azure-devops-tests-macos-skia.yml` to run the
**Tests - Desktop Skia MacOS** stage on $(vmMacImageTest) (macos-14)
instead of $(macOSVMImage) (macos-26).  This allows the tests to run
without crashing on CI.

*Note*: we are unable to locally reproduce the crash, though it *may*
be addressed by #23642.

Additionally, update `macos-skia-runtime-tests.sh` to explicitly log
the ABI of the machine running the tests, as `macos-26` means different
things between [GitHub Actions][0] (arm64!)

> | **Image**       | **Architecture**  | **YAML Label** |
> | --------------- | ----------------- |----------------|
> | macOS 26 Arm64  | arm64             | `macos-26` or `macos-26-xlarge` |

and [Azure DevOps][1] (x64!).

> **macOS images updates**
>
> * The macOS 26 (Intel) Azure Pipelines hosted agent image is in public preview.
> * …
> * The macOS 15 Sequoia ARM64 limited public preview has been paused.

(As far as @jonpryor can tell, Azure DevOps currently provides *no*
arm64 build agents…)

[0]: https://github.com/actions/runner-images/tree/f84258ba81f6e9f1edfaf7a83da4727921e85790#available-images
[1]: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=macos-images%2Cyaml#macos-images-updates
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.

3 participants