CI: anche «release» costruisce l'installatore senza ICU, e una prova lo tiene fermo
Il lavoro «release» di rilascio.yml costruisce l'installatore sull'immagine del runner come «windows» e «installatore»: prende anche lui DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true. Nuova prova PipelineTests.EveryJobThatBuildsTheInstallerOnTheRunnerImageNeedsNoIcu: ogni lavoro di verifica.yml e rilascio.yml che lancia installer/costruisci.sh fuori dal contenitore delle prove deve averla (fallisce se la si toglie). Il commento di dotnet.sh non dice più che ICU è nell'immagine del runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ce2bb39ec
commit
4a1dd94dee
3 files changed
+32
-2
No files matched your search
@@ -55,6 +55,32 @@ public sealed partial class PipelineTests
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void EveryJobThatBuildsTheInstallerOnTheRunnerImageNeedsNoIcu()
|
||||
{
|
||||
// The runner image does not guarantee ICU (run 431 stopped at dotnet publish without it). A job that runs
|
||||
// installer/costruisci.sh outside the Debian container of the tests must put .NET in invariant globalization.
|
||||
var seen = 0;
|
||||
foreach (var name in new[] { "verifica.yml", "rilascio.yml" })
|
||||
{
|
||||
var text = Workflow(name);
|
||||
foreach (Match header in JobHeader().Matches(text))
|
||||
{
|
||||
var job = Job(text, header.Groups["name"].Value);
|
||||
var code = Code(job);
|
||||
if (!code.Contains("installer/costruisci.sh", StringComparison.Ordinal) || code.Contains("container:", StringComparison.Ordinal))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
seen++;
|
||||
StringAssert.Contains(code, "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: \"true\"", $"{name}: {header.Groups["name"].Value}");
|
||||
}
|
||||
}
|
||||
|
||||
Assert.IsGreaterThanOrEqualTo(3, seen, "installatore, windows and release build the installer on the runner image");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TheWholeSolutionIsBuiltAndTheTestsRunOnlyThroughTheTestProjectWithTheBrowser()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user