mbox series

[yocto-autobuilder-helper,0/4] Fix send_qa_email for releases with new major number

Message ID 20231217133032.27231-1-alexis.lothore@bootlin.com
Headers show
Series Fix send_qa_email for releases with new major number | expand

Message

Alexis Lothoré Dec. 17, 2023, 1:30 p.m. UTC
Hello,
the autobuilder encountered a failure while trying to generate 5.0_M1.rc1
(see [1]) on send_qa_email part, which resulted in missing QA email.

This issue is mostly due to the fact that this is the first release on new
major 5.0. While this case is in theory handled in send_qa_email, practice
came in and made things blew up: this version makes the tag computation
method fall through the last branch, which currently expects the tag to
exist. This assumption is a mistake: it may be valid when trying to
generate regression reports a posteriori, but not for autobuilder run (tag
is then applied only when corresponding release has been validated)

The two first commits slightly rework tests to prepare for the fix, which
comes in the third commit.
Last commit makes sure that get_regression_base_and_target will not prevent
QA email generation in case of an exception, as it is currently done with
generate_regression_report

[1] https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6338/steps/29/logs/stdio

Alexis Lothoré (4):
  scripts: send_qa_email: slightly rework previous tag test
  scripts: send_qa_email: allow testing against non fixed tags
  scripts: send_qa_email: properly compute previous tag for new major
    release tag
  scripts: send_qa_email: protect get_regression_base_and_target  from
    exceptions

 scripts/send_qa_email.py      | 33 +++++++++++++++++++--------------
 scripts/test_send_qa_email.py | 15 ++++++++++-----
 2 files changed, 29 insertions(+), 19 deletions(-)