CI / Build and test (push) Successful in 8m14s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 13m19s
CI / PostgreSQL 16 integration (push) Successful in 4m49s
CI / PostgreSQL 17 integration (push) Successful in 5m28s
CI / Docker image (push) Successful in 53s
Release / Server image (push) Failing after 10s
The owner renamed the product and moved the repository to the self-hosted Gitea (https://gitea.encke-hake.ts.net/BalboSoft/Chronos) for more control, and asked for Actions and a first automatic release with the server package and the Windows exe (docs/requests/2026-10-23-chronos-gitea.md). - Chronos everywhere: a byte-exact rename of contents and paths, then a per-language review of the forms the old name's ending had dictated. - Gitea instead of GitHub: the update check, licence, issue and support links read ChronosReleasesUrl; the update check takes the highest stable version, offers a pre-release build its final release and reports a repository it cannot see as a failed check. EULA, security policy and Gitea issue forms live at the repository root. - Gitea Actions for the Linux act_runner (.gitea/workflows): CI, release, nightly image and performance gates in the .NET SDK container with git checkout and the system SQLite. The release cross-compiles the Windows programs, checks their icon, version and DPI manifest, packs installers and zips, publishes the Gitea release and pushes the server image (REGISTRY_TOKEN). Windows-only tests run in an opt-in job on a Windows runner (WINDOWS_RUNNER). - New Chronos.Tools commands: zip, gitea-release, postgres-ci (replaces the docker-exec script, which Gitea's service containers do not allow; the throw-away server runs without durability) and pe-check. - Timed tests take their budget from TestTiming (CHRONOS_TEST_TIME_FACTOR, 3 on the shared runner; the weekly performance gates keep theirs). BREAKING CHANGE: programs, settings, data folders, file types, environment variables and the Docker image use the new name; nothing is migrated from Titano, which never had a release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
133 lines
4.9 KiB
C#
133 lines
4.9 KiB
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
using Chronos.Core.Imaging;
|
|
using Chronos.Core.Model;
|
|
|
|
namespace Chronos.Core.Archiving;
|
|
|
|
/// <summary>
|
|
/// <c>.chronos/sequence.json</c>, the canonical record of one sequence (BRIEF §7). The database is rebuilt from it,
|
|
/// so it carries the ids of the sequence and of every frame. Fields this build does not know are kept in
|
|
/// <see cref="Extra"/> and written back unchanged.
|
|
/// </summary>
|
|
public sealed record SequenceManifest
|
|
{
|
|
public const int CurrentSchemaVersion = 1;
|
|
|
|
public int SchemaVersion { get; init; } = CurrentSchemaVersion;
|
|
public required Guid Id { get; init; }
|
|
public string? Title { get; init; }
|
|
public SidecarCamera? Camera { get; init; }
|
|
public string? Lens { get; init; }
|
|
|
|
/// <summary>Frames in capture order; <see cref="SidecarFrame.I"/> equals the position.</summary>
|
|
public IReadOnlyList<SidecarFrame> Frames { get; init; } = [];
|
|
|
|
public IReadOnlyList<string> Tags { get; init; } = [];
|
|
public int Rating { get; init; }
|
|
public string? Notes { get; init; }
|
|
|
|
/// <summary><see cref="SequenceStatus"/> bits, stored as a number so bits of newer builds survive.</summary>
|
|
public SequenceStatus Status { get; init; }
|
|
|
|
public ManifestVersions Versions { get; init; } = new();
|
|
|
|
/// <summary>User id or client name that created the sequence.</summary>
|
|
public string? CreatedBy { get; init; }
|
|
|
|
public DateTimeOffset Created { get; init; }
|
|
public DateTimeOffset UpdatedAt { get; init; }
|
|
public DateTimeOffset? VerifiedAt { get; init; }
|
|
|
|
/// <summary>Session keys of automatic grouping (uploads, card imports) that resolve to this sequence.</summary>
|
|
public IReadOnlyList<string> SessionKeys { get; init; } = [];
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JsonElement>? Extra { get; set; }
|
|
}
|
|
|
|
public sealed record SidecarCamera
|
|
{
|
|
public string? Make { get; init; }
|
|
public string? Model { get; init; }
|
|
public string? Serial { get; init; }
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JsonElement>? Extra { get; set; }
|
|
}
|
|
|
|
/// <summary>Counters the sync protocol compares (BRIEF §14.5).</summary>
|
|
public sealed record ManifestVersions
|
|
{
|
|
public int Settings { get; init; }
|
|
public int Frames { get; init; }
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JsonElement>? Extra { get; set; }
|
|
}
|
|
|
|
/// <summary>One frame of <see cref="SequenceManifest"/>; property names follow BRIEF §7.</summary>
|
|
public sealed record SidecarFrame
|
|
{
|
|
public required Guid Id { get; init; }
|
|
|
|
/// <summary>Index in capture order, from 0.</summary>
|
|
public int I { get; init; }
|
|
|
|
/// <summary>Path relative to the sequence folder, forward slashes (<c>originals/…</c> for imported frames).</summary>
|
|
public required string File { get; init; }
|
|
|
|
/// <summary>Name the file had on the card or upload source.</summary>
|
|
public string? Original { get; init; }
|
|
|
|
public long Size { get; init; }
|
|
|
|
/// <summary>Lower-case hex SHA-256; null until a verify hashes an adopted file.</summary>
|
|
public string? Sha256 { get; init; }
|
|
|
|
/// <summary>Camera wall-clock time with sub-seconds.</summary>
|
|
public DateTime? CapturedAt { get; init; }
|
|
|
|
public int? UtcOffset { get; init; }
|
|
|
|
[JsonConverter(typeof(TolerantEnumConverter<TimestampSource>))]
|
|
public TimestampSource TimeSource { get; init; }
|
|
|
|
public double? Exposure { get; init; }
|
|
public double? FNumber { get; init; }
|
|
public int? Iso { get; init; }
|
|
public double? Focal { get; init; }
|
|
public double? Bias { get; init; }
|
|
public int? Wb { get; init; }
|
|
public int Orientation { get; init; } = 1;
|
|
public int W { get; init; }
|
|
public int H { get; init; }
|
|
|
|
[JsonConverter(typeof(TolerantEnumConverter<ImageFileFormat>))]
|
|
public ImageFileFormat Format { get; init; }
|
|
|
|
public long? PreviewOffset { get; init; }
|
|
public long? PreviewLength { get; init; }
|
|
|
|
/// <summary>Size of the largest embedded preview (or GPR companion JPEG), stored like <see cref="W"/> and <see cref="H"/>
|
|
/// before orientation; null when the file has none or it is not known yet.</summary>
|
|
public int? PreviewW { get; init; }
|
|
|
|
public int? PreviewH { get; init; }
|
|
|
|
/// <summary>
|
|
/// Decode tier of the file (BRIEF §8.2) as the host that indexed or decoded it last found it; omitted until it is
|
|
/// known. <see cref="FrameFlags.PreviewOnly"/> (unless that host reads the frame from its proxy) and
|
|
/// <see cref="FrameFlags.Undecodable"/> follow it.
|
|
/// </summary>
|
|
[JsonConverter(typeof(TolerantEnumConverter<DecodeTier>))]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
|
public DecodeTier Tier { get; init; }
|
|
|
|
/// <summary><see cref="FrameFlags"/> bits, stored as a number so bits of newer builds survive.</summary>
|
|
public FrameFlags Flags { get; init; }
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JsonElement>? Extra { get; set; }
|
|
}
|