Skip to content

Commit a3edcfb

Browse files
Fix installers reporting SUCCESS when files fail
CLI: treated 1 failure as success in automated mode (intended for query_snapshots but applied to any failure). Now any failure = not success. GUI: had a similar workaround checking for query_snapshots specifically. Removed — failures should be reported honestly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4d004ed commit a3edcfb

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

Installer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ Calculate totals and determine success
11321132
*/
11331133
totalSuccessCount = upgradeSuccessCount + installSuccessCount;
11341134
totalFailureCount = upgradeFailureCount + installFailureCount;
1135-
installationSuccessful = (totalFailureCount == 0) || (totalFailureCount == 1 && automatedMode);
1135+
installationSuccessful = totalFailureCount == 0;
11361136

11371137
/*
11381138
Log installation history to database

InstallerGui/Services/InstallationService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,7 @@ Execute SQL files
620620

621621
result.EndTime = DateTime.Now;
622622

623-
/*Allow query_snapshots to fail - those views get created eventually*/
624-
bool onlyQuerySnapshotsFailed = result.FilesFailed == 1 &&
625-
result.Errors.Any(e => e.FileName.Contains("query_snapshots", StringComparison.OrdinalIgnoreCase));
626-
result.Success = result.FilesFailed == 0 || onlyQuerySnapshotsFailed;
623+
result.Success = result.FilesFailed == 0;
627624

628625
return result;
629626
}

0 commit comments

Comments
 (0)