Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -90,7 +90,9 @@ function conservativeFailureCount(count, output) {
|
||||
return count > 0 ? count : output.trim() ? 1 : 0;
|
||||
}
|
||||
|
||||
export function failureCount(gateId, stdout, stderr) {
|
||||
export function failureCount(gateId, stdout, stderr, exitCode = 1) {
|
||||
if (exitCode === 0) return 0;
|
||||
|
||||
const output = `${stdout}\n${stderr}`;
|
||||
if (gateId === "typecheck") return conservativeFailureCount(countTypeScriptFailures(output), output);
|
||||
if (gateId === "lint") return conservativeFailureCount(countEslintFailures(output), output);
|
||||
@@ -126,7 +128,7 @@ function runShellGate(gate) {
|
||||
command: shellCommand(gate),
|
||||
exitCode: code ?? 1,
|
||||
durationMs: Date.now() - startedAt,
|
||||
failureCount: failureCount(gate.id, stdout, stderr),
|
||||
failureCount: failureCount(gate.id, stdout, stderr, code ?? 1),
|
||||
fingerprint: outputFingerprint(output),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user