Repository navigation
chore: Update to .NET 11 rc.1 - #24492
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
WinAppSDK sync generator drift detected on
|
|
The build 233023 found UI Test snapshots differences: Details
|
|
|
c1205be to
73c089b
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
|
The build 233231 found UI Test snapshots differences: Details
|
|
|
|
Tests - Unit Tests > Run > Run unit tests has many errors which This doesn't immediately make sense, but other tests within diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_Parser.cs b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_Parser.cs
index 3036330b45..4544d10664 100644
--- a/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_Parser.cs
+++ b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_Parser.cs
@@ -214,7 +214,14 @@ public partial class Given_Parser
"""),
};
- var test = new Verify.Test(xamlFiles) { TestState = { Sources = { _emptyCodeBehind } } }.AddGeneratedSources();
+ var test = new Verify.Test(xamlFiles)
+ {
+ TestState =
+ {
+ Sources = { _emptyCodeBehind }
+ },
+ ReferenceAssemblies = _Dotnet.Current.ReferenceAssemblies,
+ }.AddGeneratedSources();
test.ExpectedDiagnostics.AddRange([
DiagnosticResult.CompilerError("UXAML0001").WithSpan("//Project/0/MainPage.xaml", 13, 5, 13, 5).WithArguments("Member 'PaneTitle' cannot have properties [Line: 13 Position: 5]")Unfortunately, that didn't fix the tests; they still fail. |
73c089b to
736543c
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
|
The build 233510 found UI Test snapshots differences: Details
|
|
|
736543c to
b0a442b
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
|
The build 233549 found UI Test snapshots differences: Details
|
|
Enabled Native AOT tests for this PR: diff --git a/build/ci/tests/.azure-devops-tests-android-nativeaot-skia.yml b/build/ci/tests/.azure-devops-tests-android-nativeaot-skia.yml
index 60bd9c2f1d..642d44dd98 100644
--- a/build/ci/tests/.azure-devops-tests-android-nativeaot-skia.yml
+++ b/build/ci/tests/.azure-devops-tests-android-nativeaot-skia.yml
@@ -9,7 +9,7 @@ jobs:
- job: Android_NativeAOT_Tests
displayName: ' ' ## Name is concatenated with the matrix group name
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+ # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
timeoutInMinutes: 45
cancelTimeoutInMinutes: 0
dependsOn: Skia_Android_NativeAOT_Tests_BuildTest stage was green, so I'll be removing this commit. |
b0a442b to
1aa16f3
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Reviewed all ten changed files at 1aa16f3e89c38040144ba7f3acef0a0d97625da8. The RC1 pins and scoped Android workaround align; twelve actual MSBuild evaluations confirm preservation of the Preview 7 case, the new RC1 override, and untouched non-Android/future-version cases. The ICU rewrite preserves the runtime lookup choice while avoiding the tuple-based reflection flow. CI 233626 contains this head and its logs show the RC SDK/workloads plus successful managed, Android NativeAOT and iOS builds.
One new harness reliability issue needs correction: the added screenshot capture becomes fatal under set -e, before test-result collection. Six real Bash executions of the exact base/head polling block with an adb test double reproduce the distinction described inline.
The current Android runtime CI failures are separate: the inspected job stops at the existing sdkmanager install 'tools' setup line, before the new polling block and before any tests/results. I am not attributing those failures to the screenshot change or calling the full CI matrix green. No local RC compiler, emulator/screenshot or NativeAOT execution is claimed.
|
The build 233626 found UI Test snapshots differences: Details
|
|
|
1aa16f3 to
968f68c
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
|
The build 233755 found UI Test snapshots differences: Details
|
|
|
Context: #22745 Context: dotnet/android#12750 Context: dotnet/runtime#133911 Context: f42da04 Update version numbers accordingly. To sanity-check locally, try: \cp build/ci/net11/_global.json global.json dotnet build -f net11.0-ios26.5 src/Uno.Foundation/Uno.Foundation.netcoremobile.csproj dotnet build -f net11.0 src/Uno.UI/Uno.UI.csproj dotnet publish -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android src/SamplesApp/SamplesApp/SamplesApp.csproj -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true dotnet publish -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android src/SamplesApp/SamplesApp/SamplesApp.csproj -p:ApplicationId=uno.platform.samplesapp.skia.nativeaot -p:SkiaPublishAot=true -p:SkiaSharpVersion=4.151.1 dotnet build -c Release -f net11.0-ios -p:UnoTargetFrameworkOverride=net11.0-ios src/SamplesApp/SamplesApp/SamplesApp.csproj Note: when updating `_Dotnet.cs`, the `version` value in `new PackageIdentity(id, version)` must match the *filesystem path* underneath `packs/Microsoft.NETCore.App.Ref`, which *may not* match the output of `dotnet --version`. Check the filesystem! Address an IL2080 trimmer warning: // 249: var (methodName, type) = OperatingSystem.IsBrowser() ? ($"uno_{typeof(T).Name}", typeof(BrowserICUSymbols)) : ($"{typeof(T).Name}_{_icuVersion}", typeof(IOSICUSymbols)) src/Uno.UI/UI/Xaml/Documents/UnicodeText.ICU.cs(249,19): error IL2080: 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethod(String, BindingFlags)'. The field '(System.String, System.Type).Item2' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. Filed dotnet/runtime#133911 for the above warning, as it feels wrong. Note: Android+NativeAOT *still* fails to build by default, due to a similar bug as in .NET 11 Preview 7; see also f42da04, e.g. Unable to find package Microsoft.NETCore.App.Runtime.NativeAOT.android-arm64 with version (= 11.0.0-rc.1.26428.117) - Found 23 version(s) in nuget.org [ Nearest version: 11.0.0-rc.1.26425.128 ] - Found 0 version(s) in /Users/jon/Downloads/dotnet-sdk-11.0.100-rc.1.26425.128/library-packs Update the workaround within `Uno.CrossTargetting.targets`, and cross fingers 🤞 that .NET 11 rc.2 doesn't require this workaround. Update `android-run-skia-runtime-tests.sh` to capture a screenshot of the device screen as the tests are run, so we can see what is shown when Android tests hang. Finally, update `android-run-skia-runtime-tests.sh` and `android-uitest-run.sh` to *stop* installing the `tools` package. Attempting to install it is now an error: % ($ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=/tmp/my-sdk --install 'tools') ; echo exit=$? Warning: Failed to find package 'tools' [=== ] 10% Computing updates... exit=1 (The `tools` package was last updated in *2017-September*, has been deprecarted for quite some time, and is now no longer mentioned in [`repository2-3.xml`][0], which lists all Android SDK packages. This removal has been a long time coming…) [0]: https://dl.google.com/android/repository/repository2-3.xml
968f68c to
87f0e11
Compare
|
Looks like Google (finally?) removed the % ($ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=/tmp/my-sdk --install 'tools') ; echo exit=$?
Warning: Failed to find package 'tools'
[=== ] 10% Computing updates...
exit=1This change from Google impacts all current CI runs. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24492/wasm-skia-net9/index.html |
|
The build 233764 found UI Test snapshots differences: Details
|
Jonathan confirmed he implemented that change
Context: #22745
Context: dotnet/android#12750
Context: dotnet/runtime#133911
Context: f42da04
Update version numbers accordingly.
To sanity-check locally, try:
Note: when updating
_Dotnet.cs, theversionvalue innew PackageIdentity(id, version)must match the filesystem pathunderneath
packs/Microsoft.NETCore.App.Ref, which may not matchthe output of
dotnet --version. Check the filesystem!Address an IL2080 trimmer warning:
Filed dotnet/runtime#133911 for the above warning, as it feels wrong.
Note: Android+NativeAOT still fails to build by default, due to a
similar bug as in .NET 11 Preview 7; see also f42da04, e.g.
Update the workaround within
Uno.CrossTargetting.targets, andcross fingers 🤞 that .NET 11 rc.2 doesn't require this workaround.
Update
android-run-skia-runtime-tests.shto capture a screenshot ofthe device screen as the tests are run, so we can see what is shown
when Android tests hang.
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.