Skip to content

Commit 53666ba

Browse files
committed
Merge remote-tracking branch 'upstream/master' into xorg-rcd
2 parents d19a690 + 376f165 commit 53666ba

1,717 files changed

Lines changed: 226770 additions & 26055 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-test-debug.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,23 @@ jobs:
4545
run: dotnet build --configuration DebugOpt --no-restore /m
4646

4747
- name: Run Content.Tests
48-
run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0
48+
shell: pwsh
49+
run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 NUnit.TestOutputXml="logs" NUnit.WorkDirectory="$(pwd)/test_results"
4950

5051
- name: Run Content.IntegrationTests
5152
shell: pwsh
5253
run: |
5354
$env:DOTNET_gcServer=1
54-
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
55+
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed NUnit.TestOutputXml="logs" NUnit.WorkDirectory="$(pwd)/test_results"
56+
57+
- name: Archive NUnit3 test results.
58+
if: always()
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: nunit3-results-${{ matrix.os }}
62+
path: test_results/*
63+
retention-days: 7
64+
compression-level: 9
5565
ci-success:
5666
name: Build & Test Debug
5767
needs:

Content.Benchmarks/ComponentQueryBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#nullable enable
22
using System;
3+
using System.IO;
34
using System.Runtime.CompilerServices;
45
using System.Threading.Tasks;
56
using BenchmarkDotNet.Attributes;
@@ -44,7 +45,7 @@ public void Setup()
4445
ProgramShared.PathOffset = "../../../../";
4546
PoolManager.Startup(typeof(QueryBenchSystem).Assembly);
4647

47-
_pair = PoolManager.GetServerClient().GetAwaiter().GetResult();
48+
_pair = PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null)).GetAwaiter().GetResult();
4849
_entMan = _pair.Server.ResolveDependency<IEntityManager>();
4950

5051
_itemQuery = _entMan.GetEntityQuery<ItemComponent>();

Content.Benchmarks/Content.Benchmarks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
<IsTestingPlatformApplication>false</IsTestingPlatformApplication>
99
<Nullable>disable</Nullable>
10+
<DefineConstants>$(DefineConstants);ALLOW_BAD_PRACTICES</DefineConstants>
1011
</PropertyGroup>
1112
<Import Project="../MSBuild/Content.props" />
1213
<ItemGroup>

Content.Benchmarks/DeltaPressureBenchmark.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
using System.IO;
12
using System.Threading.Tasks;
23
using BenchmarkDotNet.Attributes;
3-
using BenchmarkDotNet.Diagnosers;
44
using Content.IntegrationTests;
55
using Content.IntegrationTests.Pair;
6-
using Content.Server.Atmos.Components;
76
using Content.Server.Atmos.EntitySystems;
87
using Content.Shared.Atmos.Components;
8+
using Content.Shared.Atmos.EntitySystems;
99
using Content.Shared.CCVar;
1010
using Robust.Shared;
1111
using Robust.Shared.Analyzers;
@@ -69,7 +69,7 @@ public async Task SetupAsync()
6969
{
7070
ProgramShared.PathOffset = "../../../../";
7171
PoolManager.Startup();
72-
_pair = await PoolManager.GetServerClient();
72+
_pair = await PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null));
7373
var server = _pair.Server;
7474

7575
var mapdata = await _pair.CreateTestMap();

Content.Benchmarks/DestructibleBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.IO;
23
using System.Threading.Tasks;
34
using BenchmarkDotNet.Attributes;
45
using Content.IntegrationTests;
@@ -69,7 +70,7 @@ public async Task SetupAsync()
6970
{
7071
ProgramShared.PathOffset = "../../../../";
7172
PoolManager.Startup();
72-
_pair = await PoolManager.GetServerClient();
73+
_pair = await PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null));
7374
var server = _pair.Server;
7475

7576
_entMan = server.ResolveDependency<IEntityManager>();

Content.Benchmarks/DeviceNetworkingBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.IO;
23
using System.Threading.Tasks;
34
using BenchmarkDotNet.Attributes;
45
using Content.IntegrationTests;
@@ -60,7 +61,7 @@ public async Task SetupAsync()
6061
{
6162
ProgramShared.PathOffset = "../../../../";
6263
PoolManager.Startup(typeof(DeviceNetworkingBenchmark).Assembly);
63-
_pair = await PoolManager.GetServerClient();
64+
_pair = await PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null));
6465
var server = _pair.Server;
6566

6667
await server.WaitPost(() =>

Content.Benchmarks/GasReactionBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.IO;
12
using System.Threading.Tasks;
23
using BenchmarkDotNet.Attributes;
34
using Content.IntegrationTests;
@@ -51,7 +52,7 @@ public async Task SetupAsync()
5152
{
5253
ProgramShared.PathOffset = "../../../../";
5354
PoolManager.Startup();
54-
_pair = await PoolManager.GetServerClient();
55+
_pair = await PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null));
5556
var server = _pair.Server;
5657

5758
// Create test map and grid

Content.Benchmarks/HeatCapacityBenchmark.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Threading.Tasks;
1+
using System.IO;
2+
using System.Threading.Tasks;
23
using BenchmarkDotNet.Attributes;
34
using Content.IntegrationTests;
45
using Content.IntegrationTests.Pair;
@@ -27,7 +28,7 @@ public async Task SetupAsync()
2728
{
2829
ProgramShared.PathOffset = "../../../../";
2930
PoolManager.Startup();
30-
_pair = await PoolManager.GetServerClient();
31+
_pair = await PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null));
3132
await _pair.Connect();
3233
_cEntMan = _pair.Client.ResolveDependency<IEntityManager>();
3334
_sEntMan = _pair.Server.ResolveDependency<IEntityManager>();

Content.Benchmarks/MapLoadBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.IO;
34
using System.Linq;
45
using System.Threading.Tasks;
56
using BenchmarkDotNet.Attributes;
@@ -29,7 +30,7 @@ public void Setup()
2930
ProgramShared.PathOffset = "../../../../";
3031
PoolManager.Startup();
3132

32-
_pair = PoolManager.GetServerClient().GetAwaiter().GetResult();
33+
_pair = PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null)).GetAwaiter().GetResult();
3334
var server = _pair.Server;
3435

3536
Paths = server.ResolveDependency<IPrototypeManager>()

Content.Benchmarks/PvsBenchmark.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#nullable enable
22
using System;
3+
using System.IO;
34
using System.Linq;
45
using System.Threading.Tasks;
56
using BenchmarkDotNet.Attributes;
@@ -50,7 +51,7 @@ public void Setup()
5051
#endif
5152
PoolManager.Startup();
5253

53-
_pair = PoolManager.GetServerClient().GetAwaiter().GetResult();
54+
_pair = PoolManager.GetServerClient(testContext: new ExternalTestContext("Benchmark", StreamWriter.Null)).GetAwaiter().GetResult();
5455
_entMan = _pair.Server.ResolveDependency<IEntityManager>();
5556
_pair.Server.CfgMan.SetCVar(CVars.NetPVS, true);
5657
_pair.Server.CfgMan.SetCVar(CVars.ThreadParallelCount, 0);

0 commit comments

Comments
 (0)