Skip to content

Commit 41b4881

Browse files
committed
Bump runner to dotnet 9.
1 parent e640a9f commit 41b4881

26 files changed

+111
-107
lines changed

.devcontainer/devcontainer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "Actions Runner Devcontainer",
3-
"image": "mcr.microsoft.com/devcontainers/base:focal",
3+
"image": "mcr.microsoft.com/devcontainers/base:noble",
44
"features": {
55
"ghcr.io/devcontainers/features/docker-in-docker:1": {},
66
"ghcr.io/devcontainers/features/dotnet": {
7-
"version": "8.0.404"
7+
"version": "9.0.100"
88
},
99
"ghcr.io/devcontainers/features/node:1": {
1010
"version": "20"

docs/checks/sslcert.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To let the runner trusts your CA certificate, you will need to:
4141
- macOS: ![trust ca cert](./../res/macOStrustCA.gif)
4242
- Linux: Refer to the distribution documentation
4343
1. RedHat: https://www.redhat.com/sysadmin/ca-certificates-cli
44-
2. Ubuntu: http://manpages.ubuntu.com/manpages/focal/man8/update-ca-certificates.8.html
44+
2. Ubuntu: https://manpages.ubuntu.com/manpages/noble/man8/update-ca-certificates.8.html
4545
3. Google search: "trust ca certificate on [linux distribution]"
4646
4. If all approaches failed, set environment variable `SSL_CERT_FILE` to the CA bundle `.pem` file we get.
4747
> To verify cert gets installed properly on Linux, you can try use `curl -v https://sitewithsslissue.com` and `pwsh -Command \"Invoke-WebRequest -Uri https://sitewithsslissue.com\"`

images/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source: https://github.com/dotnet/dotnet-docker
2-
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-jammy as build
2+
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-noble as build
33

44
ARG TARGETOS
55
ARG TARGETARCH
@@ -32,7 +32,7 @@ RUN export RUNNER_ARCH=${TARGETARCH} \
3232
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${TARGETARCH}" \
3333
&& chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
3434

35-
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-jammy
35+
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-noble
3636

3737
ENV DEBIAN_FRONTEND=noninteractive
3838
ENV RUNNER_MANUALLY_TRAP_SIG=1

src/Runner.Common/Runner.Common.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Library</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
@@ -17,9 +17,9 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
1919
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
20-
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
21-
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
22-
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />
20+
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="9.0.0" />
21+
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.0" />
22+
<PackageReference Include="System.Threading.Channels" Version="9.0.0" />
2323
</ItemGroup>
2424

2525
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

src/Runner.Listener/Runner.Listener.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<SelfContained>true</SelfContained>
@@ -22,8 +22,8 @@
2222
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
2323
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2424
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
25-
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
26-
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
25+
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="9.0.0" />
26+
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.0" />
2727
</ItemGroup>
2828

2929
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

src/Runner.PluginHost/Runner.PluginHost.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<SelfContained>true</SelfContained>

src/Runner.Plugins/Runner.Plugins.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Library</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<SelfContained>true</SelfContained>

src/Runner.Sdk/Runner.Sdk.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Library</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<SelfContained>true</SelfContained>
@@ -15,9 +15,9 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
18+
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.0" />
1919
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
20-
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />
20+
<PackageReference Include="System.Threading.Channels" Version="9.0.0" />
2121
</ItemGroup>
2222

2323
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

src/Runner.Worker/Runner.Worker.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<SelfContained>true</SelfContained>
@@ -19,9 +19,9 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
23-
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
24-
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />
22+
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="9.0.0" />
23+
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.0" />
24+
<PackageReference Include="System.Threading.Channels" Version="9.0.0" />
2525
<PackageReference Include="YamlDotNet.Signed" Version="5.3.0" />
2626
</ItemGroup>
2727

src/Sdk/Sdk.csproj

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<OutputType>Library</OutputType>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;linux-arm64;linux-arm;osx-x64;osx-arm64;win-arm64</RuntimeIdentifiers>
77
<!-- <SelfContained>true</SelfContained> -->
@@ -20,12 +20,14 @@
2020
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
2121
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.5.1" />
2222
<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0" />
23-
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="8.0.0" />
24-
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
23+
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.0.0" />
24+
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="9.0.0" />
2525
<PackageReference Include="Minimatch" Version="2.0.0" />
2626
<PackageReference Include="YamlDotNet.Signed" Version="5.3.0" />
2727
<PackageReference Include="System.Net.Http" Version="4.3.4" />
2828
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
29+
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
30+
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
2931
</ItemGroup>
3032

3133
<ItemGroup>

src/Test/L0/Listener/BrokerMessageListenerL0.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public BrokerMessageListenerL0()
3333
[Fact]
3434
[Trait("Level", "L0")]
3535
[Trait("Category", "Runner")]
36-
public async void CreatesSession()
36+
public async Task CreatesSession()
3737
{
3838
using (TestHostContext tc = CreateTestContext())
3939
using (var tokenSource = new CancellationTokenSource())

src/Test/L0/Listener/ErrorThrottlerL0.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public sealed class ErrorThrottlerL0
2424
[InlineData(6)]
2525
[InlineData(7)]
2626
[InlineData(8)]
27-
public async void TestIncrementAndWait(int totalAttempts)
27+
public async Task TestIncrementAndWait(int totalAttempts)
2828
{
2929
using (TestHostContext hc = CreateTestContext())
3030
{
@@ -97,7 +97,7 @@ public async void TestIncrementAndWait(int totalAttempts)
9797
}
9898

9999
[Fact]
100-
public async void TestReset()
100+
public async Task TestReset()
101101
{
102102
using (TestHostContext hc = CreateTestContext())
103103
{
@@ -151,7 +151,7 @@ public async void TestReset()
151151
}
152152

153153
[Fact]
154-
public async void TestReceivesCancellationToken()
154+
public async Task TestReceivesCancellationToken()
155155
{
156156
using (TestHostContext hc = CreateTestContext())
157157
{
@@ -180,7 +180,7 @@ public async void TestReceivesCancellationToken()
180180
}
181181

182182
[Fact]
183-
public async void TestReceivesSender()
183+
public async Task TestReceivesSender()
184184
{
185185
using (TestHostContext hc = CreateTestContext())
186186
{

src/Test/L0/Listener/JobDispatcherL0.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private Pipelines.AgentJobRequestMessage CreateJobRequestMessage()
4949
[Fact]
5050
[Trait("Level", "L0")]
5151
[Trait("Category", "Runner")]
52-
public async void DispatchesJobRequest()
52+
public async Task DispatchesJobRequest()
5353
{
5454
//Arrange
5555
using (var hc = new TestHostContext(this))
@@ -99,7 +99,7 @@ public async void DispatchesJobRequest()
9999
[Fact]
100100
[Trait("Level", "L0")]
101101
[Trait("Category", "Runner")]
102-
public async void DispatcherRenewJobRequest()
102+
public async Task DispatcherRenewJobRequest()
103103
{
104104
//Arrange
105105
using (var hc = new TestHostContext(this))
@@ -157,7 +157,7 @@ public async void DispatcherRenewJobRequest()
157157
[Fact]
158158
[Trait("Level", "L0")]
159159
[Trait("Category", "Runner")]
160-
public async void DispatcherRenewJobRequestStopOnJobNotFoundExceptions()
160+
public async Task DispatcherRenewJobRequestStopOnJobNotFoundExceptions()
161161
{
162162
//Arrange
163163
using (var hc = new TestHostContext(this))
@@ -216,7 +216,7 @@ public async void DispatcherRenewJobRequestStopOnJobNotFoundExceptions()
216216
[Fact]
217217
[Trait("Level", "L0")]
218218
[Trait("Category", "Runner")]
219-
public async void DispatcherRenewJobOnRunServiceStopOnJobNotFoundExceptions()
219+
public async Task DispatcherRenewJobOnRunServiceStopOnJobNotFoundExceptions()
220220
{
221221
//Arrange
222222
using (var hc = new TestHostContext(this))
@@ -285,7 +285,7 @@ public async void DispatcherRenewJobOnRunServiceStopOnJobNotFoundExceptions()
285285
[Fact]
286286
[Trait("Level", "L0")]
287287
[Trait("Category", "Runner")]
288-
public async void DispatcherRenewJobRequestStopOnJobTokenExpiredExceptions()
288+
public async Task DispatcherRenewJobRequestStopOnJobTokenExpiredExceptions()
289289
{
290290
//Arrange
291291
using (var hc = new TestHostContext(this))
@@ -344,7 +344,7 @@ public async void DispatcherRenewJobRequestStopOnJobTokenExpiredExceptions()
344344
[Fact]
345345
[Trait("Level", "L0")]
346346
[Trait("Category", "Runner")]
347-
public async void RenewJobRequestNewAgentNameUpdatesSettings()
347+
public async Task RenewJobRequestNewAgentNameUpdatesSettings()
348348
{
349349
//Arrange
350350
using (var hc = new TestHostContext(this))
@@ -401,7 +401,7 @@ public async void RenewJobRequestNewAgentNameUpdatesSettings()
401401
[Fact]
402402
[Trait("Level", "L0")]
403403
[Trait("Category", "Runner")]
404-
public async void RenewJobRequestSameAgentNameIgnored()
404+
public async Task RenewJobRequestSameAgentNameIgnored()
405405
{
406406
//Arrange
407407
using (var hc = new TestHostContext(this))
@@ -456,7 +456,7 @@ public async void RenewJobRequestSameAgentNameIgnored()
456456
[Fact]
457457
[Trait("Level", "L0")]
458458
[Trait("Category", "Runner")]
459-
public async void RenewJobRequestNullAgentNameIgnored()
459+
public async Task RenewJobRequestNullAgentNameIgnored()
460460
{
461461
//Arrange
462462
using (var hc = new TestHostContext(this))
@@ -509,7 +509,7 @@ public async void RenewJobRequestNullAgentNameIgnored()
509509
[Fact]
510510
[Trait("Level", "L0")]
511511
[Trait("Category", "Runner")]
512-
public async void DispatcherRenewJobRequestRecoverFromExceptions()
512+
public async Task DispatcherRenewJobRequestRecoverFromExceptions()
513513
{
514514
//Arrange
515515
using (var hc = new TestHostContext(this))
@@ -570,7 +570,7 @@ public async void DispatcherRenewJobRequestRecoverFromExceptions()
570570
[Fact]
571571
[Trait("Level", "L0")]
572572
[Trait("Category", "Runner")]
573-
public async void DispatcherRenewJobRequestFirstRenewRetrySixTimes()
573+
public async Task DispatcherRenewJobRequestFirstRenewRetrySixTimes()
574574
{
575575
//Arrange
576576
using (var hc = new TestHostContext(this))
@@ -625,7 +625,7 @@ public async void DispatcherRenewJobRequestFirstRenewRetrySixTimes()
625625
[Fact]
626626
[Trait("Level", "L0")]
627627
[Trait("Category", "Runner")]
628-
public async void DispatcherRenewJobRequestStopOnExpiredRequest()
628+
public async Task DispatcherRenewJobRequestStopOnExpiredRequest()
629629
{
630630
//Arrange
631631
using (var hc = new TestHostContext(this))
@@ -691,7 +691,7 @@ public async void DispatcherRenewJobRequestStopOnExpiredRequest()
691691
[Fact]
692692
[Trait("Level", "L0")]
693693
[Trait("Category", "Runner")]
694-
public async void DispatchesOneTimeJobRequest()
694+
public async Task DispatchesOneTimeJobRequest()
695695
{
696696
//Arrange
697697
using (var hc = new TestHostContext(this))

src/Test/L0/Listener/MessageListenerL0.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private TestHostContext CreateTestContext([CallerMemberName] String testName = "
5151
[Fact]
5252
[Trait("Level", "L0")]
5353
[Trait("Category", "Runner")]
54-
public async void CreatesSession()
54+
public async Task CreatesSession()
5555
{
5656
using (TestHostContext tc = CreateTestContext())
5757
using (var tokenSource = new CancellationTokenSource())
@@ -95,7 +95,7 @@ public async void CreatesSession()
9595
[Fact]
9696
[Trait("Level", "L0")]
9797
[Trait("Category", "Runner")]
98-
public async void CreatesSessionWithBrokerMigration()
98+
public async Task CreatesSessionWithBrokerMigration()
9999
{
100100
using (TestHostContext tc = CreateTestContext())
101101
using (var tokenSource = new CancellationTokenSource())
@@ -157,7 +157,7 @@ public async void CreatesSessionWithBrokerMigration()
157157
[Fact]
158158
[Trait("Level", "L0")]
159159
[Trait("Category", "Runner")]
160-
public async void DeleteSession()
160+
public async Task DeleteSession()
161161
{
162162
using (TestHostContext tc = CreateTestContext())
163163
using (var tokenSource = new CancellationTokenSource())
@@ -204,7 +204,7 @@ public async void DeleteSession()
204204
[Fact]
205205
[Trait("Level", "L0")]
206206
[Trait("Category", "Runner")]
207-
public async void DeleteSessionWithBrokerMigration()
207+
public async Task DeleteSessionWithBrokerMigration()
208208
{
209209
using (TestHostContext tc = CreateTestContext())
210210
using (var tokenSource = new CancellationTokenSource())
@@ -281,7 +281,7 @@ public async void DeleteSessionWithBrokerMigration()
281281
[Fact]
282282
[Trait("Level", "L0")]
283283
[Trait("Category", "Runner")]
284-
public async void GetNextMessage()
284+
public async Task GetNextMessage()
285285
{
286286
using (TestHostContext tc = CreateTestContext())
287287
using (var tokenSource = new CancellationTokenSource())
@@ -362,7 +362,7 @@ public async void GetNextMessage()
362362
[Fact]
363363
[Trait("Level", "L0")]
364364
[Trait("Category", "Runner")]
365-
public async void GetNextMessageWithBrokerMigration()
365+
public async Task GetNextMessageWithBrokerMigration()
366366
{
367367
using (TestHostContext tc = CreateTestContext())
368368
using (var tokenSource = new CancellationTokenSource())
@@ -468,7 +468,7 @@ public async void GetNextMessageWithBrokerMigration()
468468
[Fact]
469469
[Trait("Level", "L0")]
470470
[Trait("Category", "Runner")]
471-
public async void CreateSessionWithOriginalCredential()
471+
public async Task CreateSessionWithOriginalCredential()
472472
{
473473
using (TestHostContext tc = CreateTestContext())
474474
using (var tokenSource = new CancellationTokenSource())
@@ -513,7 +513,7 @@ public async void CreateSessionWithOriginalCredential()
513513
[Fact]
514514
[Trait("Level", "L0")]
515515
[Trait("Category", "Runner")]
516-
public async void SkipDeleteSession_WhenGetNextMessageGetTaskAgentAccessTokenExpiredException()
516+
public async Task SkipDeleteSession_WhenGetNextMessageGetTaskAgentAccessTokenExpiredException()
517517
{
518518
using (TestHostContext tc = CreateTestContext())
519519
using (var tokenSource = new CancellationTokenSource())

0 commit comments

Comments
 (0)