Unione della catena: guida, rilascio e prove allineati a ciò che è uscito

Dopo l'unione la guida diceva ancora che NSIS, Node, Archivo e Lucide
escono con C6, e le prove di C6 (InstallerTests, InHouseAssetsTests) e
quelle dei documenti (SpecificationConsistencyTests) si contraddicevano:
le prime vietano quei nomi nella guida e in CLAUDE.md, le seconde volevano
la regola che li nomina con la tappa. Ora la guida dice che sono usciti
con C6 senza nominare installatore, carattere e icone di terzi; la prova
dei documenti ammette quel silenzio solo nella guida e legge il solo punto
della regola; InstallerTests ammette NSIS solo nella regola 12 di
CLAUDE.md, che è la copia dell'appendice A della specifica.
Tolto ffmpeg dal flusso del rilascio e da due commenti, e «senza
SkiaSharp» da docs/windows.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-25 12:37:36 +01:00
1 parent e4dbc5ad68
commit bbe4f9c32a
8 files changed
+38 -14

No files matched your search

@@ -592,6 +592,13 @@ public sealed partial class InstallerTests
foreach (var file in files)
{
var text = File.ReadAllText(file);
if (string.Equals(Path.GetFileName(file), "CLAUDE.md", StringComparison.Ordinal))
{
// Rule 12 is the copy of spec appendix A, the stage description that says which stage NSIS left with
// (SpecificationConsistencyTests wants it there): only that line may name it.
text = string.Join('\n', text.Split('\n').Where(line => !line.StartsWith("12. Niente componenti esterni", StringComparison.Ordinal)));
}
if (NsisWord().IsMatch(text))
{
offending.Add(Path.GetRelativePath(root, file));
@@ -30,6 +30,12 @@ public sealed partial class SpecificationConsistencyTests
("SkiaSharp", "C1"), ("ffmpeg", "C3"), ("NSIS", "C6"), ("Node", "C6"), ("Archivo", "C6"), ("Lucide", "C6"),
];
/// <summary>
/// Since stage C6 the guide must not name these any more (InstallerTests and InHouseAssetsTests look for them in
/// docs/guida): there the rule may leave them unnamed, and if it names one, it still says the stage it left with.
/// </summary>
private static readonly string[] NotNamedInTheGuide = ["NSIS", "Archivo", "Lucide"];
/// <summary>Questions of spec §16 that Alberto answered, with the day of the answer: their row must say so.</summary>
private static readonly (string Number, string Day)[] AnsweredQuestions =
[
@@ -144,10 +150,14 @@ public sealed partial class SpecificationConsistencyTests
var rule13 = RuleLine(spec, "13. **Niente componenti esterni**");
var guide = Read("docs", "guida", "Sviluppo.md");
var guideRule = guide[guide.IndexOf("- **Niente componenti esterni**", StringComparison.Ordinal)..];
guideRule = guideRule[..guideRule.IndexOf("\n-", StringComparison.Ordinal)];
// The bullet ends at the next bullet or at the blank line after it, never in the sections that follow.
guideRule = guideRule.Replace("\r\n", "\n", StringComparison.Ordinal);
var bulletEnds = new[] { guideRule.IndexOf("\n-", StringComparison.Ordinal), guideRule.IndexOf("\n\n", StringComparison.Ordinal) }.Where(i => i >= 0).ToList();
guideRule = bulletEnds.Count == 0 ? guideRule : guideRule[..bulletEnds.Min()];
var problems = new List<string>();
foreach (var (name, raw) in new[] { ("CLAUDE.md, regola 12", claude), ("SPECIFICA §2, regola 13", rule13), ("guida/Sviluppo.md", guideRule) })
{
var isGuide = name.StartsWith("guida/", StringComparison.Ordinal);
var text = GuideTests.Normalize(raw);
problems.AddRange(Exceptions.Where(e => !text.Contains(GuideTests.Normalize(e), StringComparison.Ordinal)).Select(e => $"{name} non ammette per nome «{e}»"));
if (text.Contains("da confermare", StringComparison.Ordinal))
@@ -160,7 +170,11 @@ public sealed partial class SpecificationConsistencyTests
var last = text.LastIndexOf(component.ToLowerInvariant(), StringComparison.Ordinal);
if (last < 0)
{
problems.Add($"{name} non nomina {component}");
if (!(isGuide && NotNamedInTheGuide.Contains(component, StringComparer.Ordinal)))
{
problems.Add($"{name} non nomina {component}");
}
continue;
}
@@ -7,7 +7,7 @@ using Febe.Tests.Support;
namespace Febe.Tests.Codecs.Containers;
/// <summary>The frame decoder that replaces ffmpeg for thumbnails, and the recognition of videos of a still picture.</summary>
/// <summary>The in-house frame decoder for thumbnails, and the recognition of videos of a still picture.</summary>
[TestClass]
public sealed class VideoFrameDecoderTests
{