Fix what the review of Phase 9 found in accounts, access, capital, health and publication
A position left out together with its stop kept the account prudent for good: the stop was still asked for shares that no longer exist. The cover required now stops at what the account holds, the stops are compared again after the choice, and where one is still missing Align takes the excluded position up again. After the choice the account waits for the stop with its own reason, so it returns to normal by itself also past the 15 minutes; a new difference still gets its own 15 minutes. A right password alone no longer clears the wrong second-factor codes: it takes back only its own attempt. Capital and shares are planned and written in one transaction, so overlapping changes cannot apply twice and an interruption leaves nothing halfway; sending the same figures again completes what an old one left. The cash that purchases under way still hold is no longer given away, counted as the risk engine counts it. /health said healthy when the trading engine had failed to start. It now says so at once, or after ten minutes of a stalled start, and the host tries the start again every minute; the guard still sees a start that does not move. The image of the manual publication says its version and its commit, marked when the tree is dirty, and publish.sh refuses before any login an image that does not come from the commit of the tag. refs #75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24e20584d4
commit
81d6c5f667
20 files changed
+814
-174
No files matched your search
@@ -82,25 +82,36 @@ int GuardDrill(string tag) =>
|
||||
|
||||
int BuildImage(string tag) =>
|
||||
Step("Costruzione dell'immagine Docker", "docker",
|
||||
["build", "-f", "deploy/docker/Dockerfile", "--build-arg", $"ANUBIS_VERSION={tag}", "--build-arg", $"ANUBIS_COMMIT={Commit()}",
|
||||
["build", "-f", "deploy/docker/Dockerfile", "--build-arg", $"ANUBIS_VERSION={Version()}", "--build-arg", $"ANUBIS_COMMIT={Commit()}",
|
||||
"-t", $"gitea.encke-hake.ts.net/balbosoft/anubis:{tag}", "."]) ?? 0;
|
||||
|
||||
// The commit written in the image, so a diagnostics report says which code it comes from; empty without git.
|
||||
// The commit written in the image, so a diagnostics report says which code it comes from and only the commit of a tag is
|
||||
// published as that tag; with something not committed it is marked, and empty without git.
|
||||
string Commit()
|
||||
{
|
||||
var info = new ProcessStartInfo("git") { WorkingDirectory = root, UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true };
|
||||
info.ArgumentList.Add("rev-parse");
|
||||
info.ArgumentList.Add("HEAD");
|
||||
var commit = Git("rev-parse", "HEAD");
|
||||
return commit is null ? "" : Git("status", "--porcelain") is "" ? commit : commit + "-dirty";
|
||||
}
|
||||
|
||||
// What a git command answers; null when it fails or git is not there.
|
||||
string? Git(params string[] arguments)
|
||||
{
|
||||
var info = new ProcessStartInfo("git") { WorkingDirectory = root, UseShellExecute = false, RedirectStandardOutput = true };
|
||||
foreach (var argument in arguments)
|
||||
{
|
||||
info.ArgumentList.Add(argument);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
using var git = Process.Start(info)!;
|
||||
var commit = git.StandardOutput.ReadToEnd().Trim();
|
||||
var answer = git.StandardOutput.ReadToEnd().Trim();
|
||||
git.WaitForExit();
|
||||
return git.ExitCode == 0 ? commit : "";
|
||||
return git.ExitCode == 0 ? answer : null;
|
||||
}
|
||||
catch (System.ComponentModel.Win32Exception)
|
||||
{
|
||||
return "";
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user