diff mbox series

[yocto-autobuilder-helper,2/3] scripts/send-qa-email: print warning when test results are not stored

Message ID 20230614085614.27951-3-alexis.lothore@bootlin.com
State New
Headers show
Series fix test results storage for mickledore | expand

Commit Message

Alexis Lothoré June 14, 2023, 8:56 a.m. UTC
From: Alexis Lothoré <alexis.lothore@bootlin.com>

Tests results push command depends on basebranch and comparebranch
variables, which are computed based on config.json content. If this file is
not in sync with current release branch, tests results will be properly
stored in git directory but not pushed onto test results server. Since we
are able to detect this scenario, print at least a warning, without
breaking current build since it could be a release

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
 scripts/send_qa_email.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index 8a8454d09c2f..fc7fccc6f6f7 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -159,6 +159,8 @@  def send_qa_email():
             elif basebranch:
                 subprocess.check_call(["git", "push", "--all"], cwd=tempdir)
                 subprocess.check_call(["git", "push", "--tags"], cwd=tempdir)
+            elif is_release_version(args.release) and not comparebranch and not basebranch:
+                log.warning("Test results not published on release version. Faulty AB configuration ?")
 
             regression_base, regression_target = get_regression_base_and_target(basebranch, comparebranch, args.release, targetrepodir)
             if regression_base and regression_target: