Merge branch 'master' into feature/require-profiler-branch

This commit is contained in:
Ben 2025-05-14 15:41:23 +02:00
commit 4aa7d93d6d
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
5 changed files with 11 additions and 21 deletions

View File

@ -205,6 +205,7 @@ components:
required:
- id
- totalRemainingCollateral
- freeSize
allOf:
- $ref: "#/components/schemas/SalesAvailability"
- type: object

View File

@ -10,7 +10,7 @@ namespace CodexPlugin
public class ApiChecker
{
// <INSERT-OPENAPI-YAML-HASH>
private const string OpenApiYamlHash = "FD-C8-0F-19-5E-14-09-C9-05-93-17-4A-97-50-1D-7E-37-50-B2-30-B2-E6-66-37-23-FA-35-F5-AB-A0-C6-BD";
private const string OpenApiYamlHash = "2F-9D-82-3C-F0-2F-D3-C9-72-C3-F2-6E-BD-C3-63-F5-67-62-D1-03-B6-60-75-31-22-DF-3F-63-A2-8D-AA-4B";
private const string OpenApiFilePath = "/codex/openapi.yaml";
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";

View File

@ -1,6 +1,6 @@
using NUnit.Framework;
[assembly: LevelOfParallelism(10)]
[assembly: LevelOfParallelism(2)]
namespace CodexReleaseTests
{
}

View File

@ -1,4 +1,5 @@
using System.Reflection;
using System.Diagnostics;
using System.Reflection;
using Core;
using Logging;
@ -33,7 +34,9 @@ namespace DistTestCore
{
try
{
Stopwatch.Measure(log, "Global setup", () =>
Trace.Listeners.Add(new ConsoleTraceListener());
Logging.Stopwatch.Measure(log, "Global setup", () =>
{
globalEntryPoint.Announce();
globalEntryPoint.Tools.CreateWorkflow().DeleteNamespacesStartingWith(TestNamespacePrefix, wait: true);
@ -55,6 +58,8 @@ namespace DistTestCore
deleteTrackedFiles: true,
waitTillDone: true
);
Trace.Flush();
}
}
}

View File

@ -59,24 +59,8 @@ namespace DistTestCore.Logs
protected static ILog CreateMainLog(string fullName, string name)
{
ILog log = new FileLog(fullName);
log = ApplyConsoleOutput(log);
return log;
}
private static ILog ApplyConsoleOutput(ILog log)
{
// If we're running as a release test, we'll split the log output
// to the console as well.
var testType = Environment.GetEnvironmentVariable("TEST_TYPE");
if (string.IsNullOrEmpty(testType) || testType.ToLowerInvariant() != "release-tests")
{
return log;
}
return new LogSplitter(
log,
new FileLog(fullName),
new ConsoleLog()
);
}