action #97118
closedcoordination #99303: [saga][epic] Future improvements for SUSE Maintenance QA workflows with fully automated testing, approval and release
enhance bot automatic approval: check multiple days
0%
Description
Context:
Right now the bot will approve an incident only if all tests that include such incident are green at a certain point in time.
Problem:
Day 1 after incident creation: Test 1 to 10 are green, test 11 fails.
Day 2 after incident creation: Test 1 fails, test 2 to 11 are green.
Day 3 after incident creation: Test 1 is green, test 2 fails, test 3 to 11 are green.
You get the point.
Update is likely fine since all tests were green at least once with the same update code.
While we always work to improve tests stability, it is tricky to find a time where "everything is green" due to test development, new updates that break aggregate runs, infra hiccups etc.
Right now it is slow manual work to crosscheck such results and very error prone.
AC:
The bot can check between multiple days to make sure every test was green at least one and approve the update.
Implementation proposal:
Same logic that checks latest run, but if a failure is found, go back in history and check if there was a green result up until incident creation.