Skip to content

Commit 9c326ca

Browse files
HoTT-stuffclaude
andcommitted
fix(chapel): apply the adjudicate exit contract in runAdjudicatePass, not scanRepo
4b7d268 put the exit-code branch in scanRepo, which runs the main scan and has no adjResult, so chapel-multilocale failed to compile (MassPanic.chpl:849 'adjResult' undeclared). scanRepo is restored to main; runAdjudicatePass now reads a verdict on exit 0 or 1 and records 'error' on exit 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7ZkERqsQWMogHRpM2z8
1 parent 4b7d268 commit 9c326ca

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎chapel/src/MassPanic.chpl‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -843,11 +843,7 @@ module MassPanic {
843843
}
844844
sub.wait();
845845

846-
// Exit contract: 0 pass/warn, 1 complete fail (a valid verdict),
847-
// 2 incomplete/error (no verdict is trustworthy).
848-
if sub.exitCode == 2 {
849-
adjResult.verdict = "error";
850-
} else if sub.exitCode == 0 || sub.exitCode == 1 {
846+
if sub.exitCode == 0 {
851847
result = parseRepoResult(jsonOutput, repoPath);
852848
result.fingerprint = computeFingerprint(repoPath);
853849
} else {
@@ -1052,7 +1048,11 @@ module MassPanic {
10521048
}
10531049
sub.wait();
10541050

1055-
if sub.exitCode == 0 {
1051+
// adjudicate exit contract: 0 pass/warn, 1 complete fail (a valid
1052+
// verdict), 2 incomplete input or error (no verdict is trustworthy).
1053+
if sub.exitCode == 2 {
1054+
adjResult.verdict = "error";
1055+
} else if sub.exitCode == 0 || sub.exitCode == 1 {
10561056
// Extract crash count from adjudicate JSON
10571057
adjResult.crashes = extractInt(jsonOutput, "\"crashes\":");
10581058
if adjResult.crashes == 0 then

0 commit comments

Comments
 (0)