Skip to content

chore: don't notify if nothing to triage#19265

Open
janisz wants to merge 1 commit intomasterfrom
do_not_sent_nofiticiation_when_nothing_to_triage
Open

chore: don't notify if nothing to triage#19265
janisz wants to merge 1 commit intomasterfrom
do_not_sent_nofiticiation_when_nothing_to_triage

Conversation

@janisz
Copy link
Contributor

@janisz janisz commented Mar 3, 2026

Description

Prevent noise from noop notifications about triage.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz janisz force-pushed the do_not_sent_nofiticiation_when_nothing_to_triage branch from c4a852a to 027df7d Compare March 3, 2026 12:29
@janisz janisz requested a review from rukletsov March 3, 2026 12:29
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 3, 2026

Images are ready for the commit at 027df7d.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-168-g027df7d425.


local line="<!subteam^S04SU9AHJ4C> There are ${curr} untriaged issues (not including ${prev} leftovers from previous duty)"
if [[ "$curr" -eq 0 && "$prev" -eq 0 ]]; then
echo "No issues to report (curr=0, prev=0), skipping message"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like to send controlflow messages to stderr, but I see this file doesn't do it. FWIW, I usually define

eecho() {
  echo "$@" >&2
}

and use that in the file

@@ -25,7 +25,18 @@ slack_triage_report() {
local prev
prev=$(total_issues_in_filter $prev_filter)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC these can be anything, not just numbers. Shall we add number validation, maybe in total_issues_in_filter() and die with a reasonable error message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem is who will look at the error then. If we pass it then we will see it immediately on slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants