Skip to content

Commit 706c99d

Browse files
committed
docs: say what the alert retry repeats
1 parent 414e5d5 commit 706c99d

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎.github/workflows/alert.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
# issue with this title that github-actions[bot] opened counts, not a pull request. A failed
3232
# list ends the attempt, so it never opens a second issue. bash ignores set -e in a function
3333
# called before &&, so each command that can fail returns by itself. Each try lists again, so
34-
# a write that landed before its error is found and commented on, not opened a second time.
34+
# an issue opened before its error is found and commented on, not opened a second time. At
35+
# worst a comment that went through before its error is posted again.
3536
- name: Comment on the alert issue, or open it
3637
id: alert
3738
env:

‎.github/workflows/drift.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,9 @@ jobs:
896896
fi
897897
}
898898
899-
# One GitHub API error would otherwise drop the alert. Each try lists again, so a write
900-
# that landed before its error is found and commented on, not opened a second time.
899+
# One GitHub API error would otherwise drop the alert. Each try lists again, so an issue
900+
# opened before its error is found and commented on, not opened a second time. At worst a
901+
# comment that went through before its error is posted again.
901902
for delay in 30 60 120 240; do
902903
write_alert && exit 0
903904
echo "::warning::Writing the alert issue failed. Trying again in $delay seconds."

‎docs/RELEASING.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ holds a refresh, comments on one issue, titled `Automation needs a look`, opened
210210
the run opens it. A run assigns `drptbl` only when it opens the issue, so a comment on an issue
211211
someone unassigned stays unassigned. Runs that write the issue take turns, so none of them is
212212
dropped. A run whose write fails, most often on a GitHub API error, tries again after 30, 60, 120
213-
and 240 seconds. Each try finds the issue again, so a write that went through before its error is
214-
not repeated, and the alert job ends red only when all 5 tries fail. Each comment links the run
215-
and says what happened:
213+
and 240 seconds. Each try lists the open issues again, so an issue opened before its error is
214+
found and commented on, and the retry never opens a second issue. At worst it repeats a comment:
215+
one that went through before its error is posted again. The alert job ends red only when all 5
216+
tries fail. Each comment links the run and says what happened:
216217

217218
| The comment says | What to do |
218219
|---|---|

0 commit comments

Comments
 (0)