fix: address the rc.14 review
Settings no longer makes a folder an archive on its own: a typed or picked folder without archive.json is made one only after a confirmation naming it, and Settings > Import keeps this PC's archive folder and never creates one. A half-typed path or another PC's drive letter could otherwise get .chronos and sidecars written unasked. The server's structure check creates nothing in a root that lost its archive.json (an unmounted disk's empty mount point) and reports it unavailable; /health re-checks when its last check is over 10 s old, so a fix on the host shows without a dashboard read. The admin board reads the server newest first with Order off, counts Published over the server's total, and a Shift range runs along the lane picked in. Admin sizes keep number and unit together. A sent workspace render whose file left exports/ is no longer listed as missing. Desktop Board cards put their actions under the text while the player is open. Start-up range errors name the CHRONOS_* variable; the deploy guide documents the parallelism clamp and the log rule. Refs #29 #31 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
159a8e6939
commit
2c15ee0e09
25 files changed
+336
-53
No files matched your search
@@ -52,6 +52,24 @@ public sealed partial class LoggingTests(TestContext context)
|
||||
Assert.Equal((LogLevel.Debug, LogLevel.Warning, Chronos.Core.Diagnostics.LogLevel.Debug), (logging.FileLevel, logging.ConsoleLevel, CoreLog.MinimumLevel));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AValueOutOfRangeIsNamedByItsVariable()
|
||||
{
|
||||
// Rc.14 review: the start's message named the setting's property, which the deploy guide never mentions.
|
||||
ServerOptions Load(params (string Name, string Value)[] variables)
|
||||
{
|
||||
var environment = new Dictionary<string, string?> { ["CHRONOS_DATA_PATH"] = context.CreateTempDirectory("ranges"), ["CHRONOS_DB"] = "postgres" };
|
||||
foreach (var (name, value) in variables) environment[name] = value;
|
||||
return ServerOptions.Load(environment);
|
||||
}
|
||||
var logs = Assert.Throws<InvalidOperationException>(() => Load(("CHRONOS_LOG_MAX_FILE_MB", "50"), ("CHRONOS_LOG_MAX_TOTAL_MB", "10")).Validate());
|
||||
Assert.True(logs.Message.StartsWith("CHRONOS_LOG_MAX_TOTAL_MB is out of range", StringComparison.Ordinal), logs.Message);
|
||||
var port = Assert.Throws<InvalidOperationException>(() => Load(("CHRONOS_HTTP_PORT", "70000")).Validate());
|
||||
Assert.Contains("CHRONOS_HTTP_PORT", port.Message);
|
||||
// Parallelism alone is held to its range instead.
|
||||
Assert.Equal(ServerOptions.MaxParallelism, Load(("CHRONOS_PARALLELISM", "128")).Parallelism);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task TheFileLevelChangesWhileTheServerRuns()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user