Skip to content

ci: Set version to '11.0' - #1120

Merged
jonpryor merged 6 commits into
release/stable/11.0from
dev/jonpryor/jonp-bump-version-to-11.0
Oct 29, 2026
Merged

jonpryor merged 6 commits into
release/stable/11.0from
dev/jonpryor/jonp-bump-version-to-11.0

Conversation

@jonpryor

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #

PR Type:

What is the current behavior? 🤔

What is the new behavior? 🚀

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

@ebariche
ebariche self-requested a review October 27, 2026 16:22
@jonpryor
jonpryor marked this pull request as ready for review October 27, 2026 16:23
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@jonpryor

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-bump-version-to-11.0 branch 2 times, most recently from 408ad17 to b716d6a Compare October 27, 2026 17:11
Additionally, install and build against .NET 11 rc.2.
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-bump-version-to-11.0 branch from b716d6a to 47e2126 Compare October 27, 2026 18:35
Context: "ci: Set version to '11.0'"

`MSTest.Sdk` projects generate an "app" that is executed directly.
This app requires a .NET "runtime pack" corresponding to the
`$(TargetFramework)` that the project was built against.

For example, when `$(TargetFramework)`=net10.0, then *running* the
resulting assembly requires that .NET 10 be installed.

Enter the commit "ci: Set version to '11.0'": we're installing and
building using .NET *11*.  There is no .NET 10 installation.
Consequently, the "app" cannot run:

	& "$(Build.SourcesDirectory)\src\Uno.Wasm.VersionChecker.UnitTests\bin\Release\net10.0\Uno.Wasm.VersionChecker.UnitTests.exe" …

errors out with:

	App: D:\a\1\s\src\Uno.Wasm.VersionChecker.UnitTests\bin\Release\net10.0\Uno.Wasm.VersionChecker.UnitTests.exe
	Architecture: x64
	Framework: 'Microsoft.NETCore.App', version '10.0.0' (x64)
	.NET location: C:\hostedtoolcache\windows\dotnet

	The following frameworks were found:
	  11.0.0-rc.2.26504.105 at [C:\hostedtoolcache\windows\dotnet\shared\Microsoft.NETCore.App]

	The following frameworks for other architectures were found:
	  x86
	    6.0.47 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
	    8.0.32 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
	    9.0.21 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

	Learn more:
	https://aka.ms/dotnet/app-launch-failed

Make two changes:

 1. Update the `MSTest.Sdk`-using projects to build with
    `$(TargetFramework)`=net11.0, as we're building with the .NET 11 SDK.

 2. Update `stage-build-packages.yml` to instead use `dotnet run` instead
    of hardcoding the path to execute.
CI fails in **Linux_Tests_02 > VFS Framework Assembly Load Test**,
and **Linux_Tests > Raytracer UI Tests Net5 (SWA)**:

	Tool 'dotnet-serve' (version '1.10.175') was successfully installed.
	Starting HTTP server...
	Starting server, serving .
	Unexpected error: System.IO.IOException: Failed to bind to address http://127.0.0.1:8000: address already in use.
	 ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
	 ---> System.Net.Sockets.SocketException (98): Address already in use
	   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
	   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
	   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
	   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
	   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
	   --- End of inner exception stack trace ---
	   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
	   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<StartAsync>g__OnBind|0(ListenOptions options, CancellationToken onBindCancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
	   --- End of inner exception stack trace ---
	   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
	   at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
	   at McMaster.DotNet.Serve.SimpleServer.RunAsync(CancellationToken cancellationToken) in D:\a\dotnet-serve\dotnet-serve\src\dotnet-serve\SimpleServer.cs:line 113
	   at McMaster.DotNet.Serve.Program.<>c__DisplayClass1_0.<<Run>b__0>d.MoveNext() in D:\a\dotnet-serve\dotnet-serve\src\dotnet-serve\Program.cs:line 38
	--- End of stack trace from previous location ---
	   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
	   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
	   at McMaster.DotNet.Serve.Program.Run(String[] args) in D:\a\dotnet-serve\dotnet-serve\src\dotnet-serve\Program.cs:line 41

Apparently port 8000 is already in use.

Port 8000 is already in use because a previous step started
`dotnet serve` and never caused it to exit.  Specfically
`test-memory-profiler-export.sh`, which runs two steps before
`test-vfs-assembly-load.sh`.

This triggers a "semantic" review: every Bash script which runs
`dotnet serve` *also* has a `cleanup()` function which *looks like*
it's trying to cause `dotnet serve` to exit:

	# test-webworker.sh
	cleanup() {
	    if [ -n "$SERVER_PID" ]; then
	        kill "$SERVER_PID" 2>/dev/null || true
	    fi
	}
	trap cleanup EXIT

	# test-vfs-assembly-load.sh
	cleanup() {
	    kill %% 2>/dev/null || true
	}
	trap cleanup EXIT

	# run-tests-csp.sh
	cleanup() {
		kill %%
	}
	trap cleanup 0

What appears to have happened is that `dotnet serve` process semantics
have changed.  Previously -- presumably when these scripts were written
-- `dotnet serve` was The Process, so `kill %%` or `kill $SERVER_PID`
would cause `dotnet serve` to exit.

*Now*, `dotnet serve` *forks off* `dotnet-serve`!

	% (cd src/Uno.Wasm.Tests.VfsAssemblyLoad.App/bin/Release/net10.0/publish ;
	  PATH=/Users/jon/Developer/src/unoplatform/Uno.Wasm.Bootstrap/build/tools:$PATH ;
	  dotnet serve -p 8000 -c -b &
	  echo pid=$! )
	pid=72537

	% pstree
	…
	 \-+- 72537 jon dotnet serve -p 8000 -c -b
	   \--- 72538 jon …/Uno.Wasm.Bootstrap/build/tools/dotnet-serve -p 8000 -c -b

When we kill `dotnet serve` pid 72537 -- which is what the various
`kill %%` or `kill "$SERVER_PID"` commands try to do -- we *don't*
kill `dotnet-serve`!

	% kill 72537
	% ps aux | grep dotnet.serve
	…
	jon              72538   0.0  0.1 518534688  90320 s011  SN    3:22PM   0:00.13 …/Uno.Wasm.Bootstrap/build/tools/dotnet-serve -p 8000 -c -b

which means *nothing causes `dotnet-serve` to exit*!

Which entirely explains why port 8000 is still in use.

Review shell scripts (`.sh` files) which use `dotnet serve`, and
update their `cleanup()` functions to *also* perform:

	pkill dotnet-serve

This causes `dotnet-serve` to exit, which should "free" port 8000,
thus preventing the originating `IOException`.
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-bump-version-to-11.0 branch from f64a5e8 to 8366f44 Compare October 28, 2026 19:46
Context: 735be39
Context: dccf2cc

**Build Tests > Linux_Tests > StaticLinking.Aot Tests net5** is failing
*because we're running out of disk space*:

	…
	npm error code 1
	npm error path /__w/1/s/src/Uno.Wasm.StaticLinking.Aot.UITests/node_modules/puppeteer
	npm error command failed
	npm error command sh -c node install.js
	npm error ERROR: Failed to set up Chromium r1002410! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
	npm error [Error: ENOSPC: no space left on device, write] {
	npm error   errno: -28,
	npm error   code: 'ENOSPC',
	npm error   syscall: 'write'
	npm error }
	npm error A complete log of this run can be found in: /home/runner_azpcontainer/.npm/_logs/2026-10-28T20_41_26_247Z-debug-0.log

ENOSPC is *not* a good sign.

We turn to the **Cleanup unused host dependencies** step, which shows:

	Disk space after cleanup:
	Filesystem      Size  Used Avail Use% Mounted on
	overlay          72G   60G   13G  84% /

13GB free is *not* encouraging.  However, we're not sure what else
can be removed.

Then we see that we're installing .NET *twice*, via:

  * Use .NET SDK
  * Setup .NET (Linux/macOS)

WHy are we installing .NET twice?

We don't know.  It was seemingly added in commit 735be39, which
*removed* `UseDotNet@2` use, but when `UseDotNet@2` was reintroduced
in dccf2cc, only Windows dropped use of "Setup .NET (Windows)".

We're guessing this was an oversight?

*Hopefully* not installing two .NET SDKs will provide enough free
space for the tests to pass…
Context: "chore: Remove "Setup .NET (Linux/macOS)" Step"

Continuing on from the previous commit and the amount of free space
that exists after **Cleanup unused host dependencies**:

	Disk space after cleanup:
	Filesystem      Size  Used Avail Use% Mounted on
	overlay          72G   60G   13G  84% /

we observed that other repos used the same (identical!)
`host-cleanup-linux.sh` commands, but had *significantly* more free
space: 24G vs. 13G.  Further investigation shows that the "other repo"
was using `ubuntu-24.04` and *not* `ubuntu-latest`.

For comparison purposes, update the `.yml` files to use
`ubuntu-24.04`.  Let's see if that changes free disk space.
The Linux test jobs run in the wasm-build container, so the cleanup step
ran inside it, where the paths it removes don't exist. It freed nothing,
and the jobs started with about 13 GB free. The step now runs on the host
VM (target: host), as in unoplatform/uno.csharpmarkup#880.

Also pin ubuntu-24.04 instead of ubuntu-latest, which is moving to
Ubuntu 26.04.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jonpryor
jonpryor merged commit 1704819 into release/stable/11.0 Oct 29, 2026
11 checks passed
@jonpryor
jonpryor deleted the dev/jonpryor/jonp-bump-version-to-11.0 branch October 29, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants