mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Add test result archiving to our test actions + Test fixes (#43175)
* Add test result archiving to our test actions. * heck. * Don't waste tremendous amounts of storage. * Fix ReagentDataTest. * Reduce retention and increase compression on integration output. * Back to 7 days, depend on RT instead. * Poke. * Fix linter. * til. * Actually send YAMLLinter's pair messages into the void.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
@@ -11,11 +12,14 @@ using Robust.Shared.Serialization.Markdown.Validation;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
using Robust.UnitTesting;
|
||||
using Robust.UnitTesting.Pool;
|
||||
|
||||
namespace Content.YAMLLinter
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
private static readonly ExternalTestContext TestContext = new("YAML Linter", StreamWriter.Null);
|
||||
|
||||
private static async Task<int> Main(string[] _)
|
||||
{
|
||||
GameDataScrounger.NoScrounging = true; // Ugly hack for YAML Linter.
|
||||
@@ -57,7 +61,7 @@ namespace Content.YAMLLinter
|
||||
private static async Task<(Dictionary<string, HashSet<ErrorNode>> YamlErrors, List<string> FieldErrors)>
|
||||
ValidateClient()
|
||||
{
|
||||
await using var pair = await PoolManager.GetServerClient();
|
||||
await using var pair = await PoolManager.GetServerClient(testContext: TestContext);
|
||||
var client = pair.Client;
|
||||
var result = await ValidateInstance(client);
|
||||
await pair.CleanReturnAsync();
|
||||
@@ -67,7 +71,7 @@ namespace Content.YAMLLinter
|
||||
private static async Task<(Dictionary<string, HashSet<ErrorNode>> YamlErrors, List<string> FieldErrors)>
|
||||
ValidateServer()
|
||||
{
|
||||
await using var pair = await PoolManager.GetServerClient();
|
||||
await using var pair = await PoolManager.GetServerClient(testContext: TestContext);
|
||||
var server = pair.Server;
|
||||
var result = await ValidateInstance(server);
|
||||
await pair.CleanReturnAsync();
|
||||
@@ -179,7 +183,7 @@ namespace Content.YAMLLinter
|
||||
private static async Task<(Assembly[] clientAssemblies, Assembly[] serverAssemblies)>
|
||||
GetClientServerAssemblies()
|
||||
{
|
||||
await using var pair = await PoolManager.GetServerClient();
|
||||
await using var pair = await PoolManager.GetServerClient(testContext: TestContext);
|
||||
|
||||
var result = (GetAssemblies(pair.Client), GetAssemblies(pair.Server));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user