Skip to content

Fix send_qa_email for releases with new major number

Alexis Lothoré yocto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scripts: send_qa_email: slightly rework previous tag testscripts/test_send_qa_email.py+4 -40 replies
2/4scripts: send_qa_email: allow testing against non fixed tagsscripts/test_send_qa_email.py+3 -10 replies
3/4scripts: send_qa_email: properly compute previous tag for new major release tagscripts/send_qa_email.py scripts/test_send_qa_email.py+11 -30 replies
4/4scripts: send_qa_email: protect get_regression_base_and_target from exceptionsscripts/send_qa_email.py+12 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.42.1