refactor!: rename Titano to Chronos and move CI and releases to Gitea (#6)
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
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>
This commit was merged in pull request #6.
This commit is contained in:
1 parent
c99842cc86
commit
f2b58522b9
1801 files changed
+11804
-10676
No files matched your search
@@ -0,0 +1,104 @@
|
||||
using System.Globalization;
|
||||
using Chronos.Core.IO;
|
||||
|
||||
namespace Chronos.Core.Archiving;
|
||||
|
||||
/// <summary>Names of the fixed files and folders of the archive layout (BRIEF §7).</summary>
|
||||
public static class ArchiveLayout
|
||||
{
|
||||
/// <summary>Metadata folder at the archive root and inside every sequence folder.</summary>
|
||||
public const string MetaFolder = ".chronos";
|
||||
|
||||
public const string ArchiveManifestFile = "archive.json";
|
||||
public const string IndexSnapshotFile = "index-snapshot.bin";
|
||||
public const string LocksFolder = "locks";
|
||||
|
||||
/// <summary>Verified copies waiting to be committed; on the archive volume so commits are renames.</summary>
|
||||
public const string StagingFolder = "staging";
|
||||
|
||||
/// <summary>Resumable plans of mass operations (rename).</summary>
|
||||
public const string JournalFolder = "journal";
|
||||
|
||||
public const string OriginalsFolder = "originals";
|
||||
public const string ProxiesFolder = "proxies";
|
||||
public const string ExportsFolder = "exports";
|
||||
public const string SequenceManifestFile = "sequence.json";
|
||||
public const string AnalysisFile = "analysis.json";
|
||||
public const string ProjectFile = "project.json";
|
||||
public const string ThumbsPackFile = "thumbs.pack";
|
||||
|
||||
/// <summary>Moves of an ingest batch that were started but not yet recorded in <see cref="SequenceManifestFile"/>.</summary>
|
||||
public const string IngestJournalFile = "ingest.pending.json";
|
||||
|
||||
/// <summary>Folder names inside a sequence folder that never hold a sequence of their own.</summary>
|
||||
public static bool IsReservedFolder(string name) =>
|
||||
name.Equals(MetaFolder, StringComparison.OrdinalIgnoreCase)
|
||||
|| name.Equals(OriginalsFolder, StringComparison.OrdinalIgnoreCase)
|
||||
|| name.Equals(ProxiesFolder, StringComparison.OrdinalIgnoreCase)
|
||||
|| name.Equals(ExportsFolder, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
/// <summary><c>0001.jpg</c> for frame index 0: proxies are numbered from 1 like the frames of a render.</summary>
|
||||
public static string ProxyFileName(int index) => (index + 1).ToString("0000", CultureInfo.InvariantCulture) + ".jpg";
|
||||
}
|
||||
|
||||
/// <summary>Absolute paths of one archive root.</summary>
|
||||
public sealed class ArchivePaths
|
||||
{
|
||||
public ArchivePaths(string root)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(root);
|
||||
Root = LongPath.Normalize(Path.TrimEndingDirectorySeparator(Path.GetFullPath(root)));
|
||||
MetaDirectory = Path.Combine(Root, ArchiveLayout.MetaFolder);
|
||||
}
|
||||
|
||||
public string Root { get; }
|
||||
public string MetaDirectory { get; }
|
||||
public string ManifestPath => Path.Combine(MetaDirectory, ArchiveLayout.ArchiveManifestFile);
|
||||
public string SnapshotPath => Path.Combine(MetaDirectory, ArchiveLayout.IndexSnapshotFile);
|
||||
public string LocksDirectory => Path.Combine(MetaDirectory, ArchiveLayout.LocksFolder);
|
||||
public string StagingDirectory => Path.Combine(MetaDirectory, ArchiveLayout.StagingFolder);
|
||||
public string JournalDirectory => Path.Combine(MetaDirectory, ArchiveLayout.JournalFolder);
|
||||
|
||||
/// <summary>Paths of the sequence stored in <paramref name="relativeFolder"/> (forward slashes).</summary>
|
||||
public SequencePaths Sequence(string relativeFolder) => new(this, relativeFolder);
|
||||
|
||||
/// <summary>Archive-relative path with forward slashes, as stored in the index.</summary>
|
||||
public string ToRelative(string path) => LongPath.ToPortableRelative(Root, path);
|
||||
|
||||
public string FromRelative(string relative) => LongPath.FromPortableRelative(Root, relative);
|
||||
}
|
||||
|
||||
/// <summary>Absolute paths of one sequence folder.</summary>
|
||||
public sealed class SequencePaths
|
||||
{
|
||||
internal SequencePaths(ArchivePaths archive, string relativeFolder)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(relativeFolder);
|
||||
RelativeFolder = relativeFolder.Replace('\\', '/').Trim('/');
|
||||
Folder = archive.FromRelative(RelativeFolder);
|
||||
MetaDirectory = Path.Combine(Folder, ArchiveLayout.MetaFolder);
|
||||
}
|
||||
|
||||
/// <summary>Folder relative to the archive root, forward slashes; empty when the root itself holds the photos (adopted folder).</summary>
|
||||
public string RelativeFolder { get; }
|
||||
|
||||
public string Folder { get; }
|
||||
public string MetaDirectory { get; }
|
||||
public string Originals => Path.Combine(Folder, ArchiveLayout.OriginalsFolder);
|
||||
public string Proxies => Path.Combine(Folder, ArchiveLayout.ProxiesFolder);
|
||||
public string Exports => Path.Combine(Folder, ArchiveLayout.ExportsFolder);
|
||||
public string ManifestPath => Path.Combine(MetaDirectory, ArchiveLayout.SequenceManifestFile);
|
||||
public string AnalysisPath => Path.Combine(MetaDirectory, ArchiveLayout.AnalysisFile);
|
||||
public string ProjectPath => Path.Combine(MetaDirectory, ArchiveLayout.ProjectFile);
|
||||
public string ThumbsPackPath => Path.Combine(MetaDirectory, ArchiveLayout.ThumbsPackFile);
|
||||
public string IngestJournalPath => Path.Combine(MetaDirectory, ArchiveLayout.IngestJournalFile);
|
||||
|
||||
public string Proxy(int index) => Path.Combine(Proxies, ArchiveLayout.ProxyFileName(index));
|
||||
|
||||
/// <summary>Absolute path of a frame file given its sidecar path (relative to the sequence folder).</summary>
|
||||
public string File(string sequenceRelative) => LongPath.FromPortableRelative(Folder, sequenceRelative);
|
||||
|
||||
/// <summary>Archive-relative path of a frame file (as stored in the frames table).</summary>
|
||||
public string ArchiveRelative(string sequenceRelative) =>
|
||||
RelativeFolder.Length == 0 ? sequenceRelative : RelativeFolder + "/" + sequenceRelative;
|
||||
}
|
||||
Reference in new issue
Block a user