fix(update): drop dev-facing wording from the unconfirmed-update message

"Treat this as UNCONFIRMED, not complete" is developer-speak in a
message an operator with no codebase context has to act on. Reword to
plain instruction: say what's known, then what to do about it.
This commit is contained in:
sam committed 2026-09-02 00:35:13 +10:00
1 parent 155e20af39
commit b05e8f189f
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ func formatHealthyReport(report releaseupdate.Report, verification releaseupdate
if changes != "" {
text += " (" + changes + ")"
}
return text + ", health check passed, but I could not confirm which version is actually running. Treat this as UNCONFIRMED, not complete."
return text + ", health check passed, but I still can't confirm which version is actually running — please check manually before assuming the update worked."
}
text := "Update complete"
if changes != "" {
+3 -3
View File
@@ -275,7 +275,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) {
previous: map[string]string{daemon: previousVer},
installed: map[string]string{daemon: installedVer},
running: nil,
wantText: []string{"could not confirm which version"},
wantText: []string{"can't confirm which version"},
denyText: []string{"did not take effect", "healthy on the new version"},
},
{
@@ -283,7 +283,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) {
previous: map[string]string{daemon: previousVer},
installed: map[string]string{daemon: releaseupdate.VersionUnknown},
running: map[string]string{daemon: installedVer},
wantText: []string{"could not confirm which version"},
wantText: []string{"can't confirm which version"},
denyText: []string{"did not take effect", "healthy on the new version", releaseupdate.VersionUnknown},
},
{
@@ -291,7 +291,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) {
previous: map[string]string{daemon: previousVer},
installed: map[string]string{daemon: installedVer},
running: map[string]string{daemon: releaseupdate.VersionDev},
wantText: []string{"could not confirm which version"},
wantText: []string{"can't confirm which version"},
denyText: []string{"did not take effect", "healthy on the new version"},
},
}
+1 -1
View File
@@ -109,7 +109,7 @@ func summarizeUpdateReport(report releaseupdate.Report, verification releaseupda
return "Update did NOT take effect: " + strings.Join(ids, "; ") + "."
}
if len(verification.Confirmed) == 0 {
return "Update installed and health check passed, but no running version could be verified -- treat this as UNCONFIRMED, not complete."
return "Update installed and health check passed, but the running version could not be verified -- please check manually before assuming the update worked."
}
text := "Update complete. Health check passed -- confirmed running on the new version (" + strings.Join(verification.Confirmed, ", ") + ")."
if len(verification.Unverified) > 0 {