Drop no-change reports; name the queued packages when a build starts
A release 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. Removing it would have left a start report with no follow-up, so the start report now carries its own answer: check-versions writes the package names it queued into the state file instead of touching an empty one, and the release run reads them. 'A build is running' becomes 'your package is in this build', which is the question the reports exist to answer.
This commit is contained in:
1 parent
e3c3b3e50a
commit
cb986c0985
3 files changed
+21
-856
No files matched your search
+4
-1
@@ -153,7 +153,10 @@ check_mirror() {
|
||||
echo ""
|
||||
|
||||
if [[ "$needs_build" == true ]]; then
|
||||
touch "$state_file"
|
||||
# Record WHAT is queued, not just THAT something is: the release run reads
|
||||
# this to name the packages in its start report, which is the difference
|
||||
# between "a build is running" and "your package is in this build".
|
||||
printf '%s\n' "${packages[@]}" >"$state_file"
|
||||
print_success "${mirror^} needs building (${#packages[@]} packages)"
|
||||
print_info "Packages: ${packages[*]}"
|
||||
print_info "State file created: $state_file"
|
||||
|
||||
Reference in new issue
Block a user