Report queued runs that publish nothing, as the anomaly they are

Restores the no-change report now that it is clear it cannot fire on an idle
timer tick: releases only run when the version check queued work, so a run
that publishes nothing means check-versions and the builder disagree about
what is out of date. The report names the packages that were queued but never
built, so a recurring disagreement is diagnosable rather than invisible.
This commit is contained in:
Ryan Hughes
2026-08-27 01:10:33 -04:00
parent cb986c0985
commit f551ab922c
+10 -4
View File
@@ -229,8 +229,14 @@ if ((BUILT_COUNT > 0)); then
summary+="<br><br>Live at https://pkgs.omarchy.org/$MIRROR/$ARCH/"
notify_success "Release published: $MIRROR" "$summary"
else
# Deliberately silent in chat: a run that published nothing is not news, and
# at a 5-minute cadence those messages would bury the ones that matter. The
# log and `bin/repo timers` still show the run happened.
print_info "Nothing was published — the channel was already current"
# Rare by construction: a release only runs when the version check queued
# work, so publishing nothing means the check and the builder disagreed
# about what needs building. Worth reporting for exactly that reason — if
# these start recurring, something is flagging a package that never builds.
summary+="<br>No packages needed building — the version check and the"
summary+=" builder disagree about what is out of date."
if [[ -n "$QUEUED_PACKAGES" && "$QUEUED_PACKAGES" != "0" ]]; then
summary+="<br>Queued but not built: $(head -25 "$QUEUE_FILE" | tr '\n' ' ' | basecamp_html_escape)"
fi
notify_info "Release ran with nothing to publish: $MIRROR" "$summary"
fi