Project

General

Profile

Actions

action #106907

closed

coordination #91646: [saga][epic] SUSE Maintenance QA workflows with fully automated testing, approval and release

coordination #98457: [epic] Handle openqa-review reminder comments on very old jobs better

Exponential backoff for reminders based on previous reminders size:M

Added by okurz about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
2022-02-16
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Currently the latest comment is read, and a reminder is sent if it's at least 14 days old. This can become annoying so we can hold off some comments

Acceptance criteria

  • AC1: Reminder comments are sent no sooner than double the previous interval (between the last two comments)
  • AC2: The setting is configurable

Suggestions

  • Use exponential backoff, see https://en.wikipedia.org/wiki/Exponential_backoff
  • Read all the comments (we basically already do that)
  • Parse timestamp (we already do that) and calculate time difference
  • If (time - time_last) > 2 * max((time_last - time_second_to_last // 0), initial_time_interval) then add reminder
  • In reminder comment add a text like "Expect the next reminder at the earliest $time_next" with $time_next being current time + 2 * current difference used

Out of scope

  • Optional: Detect if the comments are openqa-review reminder comments
Actions

Also available in: Atom PDF