diff mbox series

[autobuilder,v2,1/3] scripts/send-qa-email: force current revision fetch

Message ID 20230207152949.43487-2-alexis.lothore@bootlin.com
State New
Headers show
Series ease send-qa-email usage with older history | expand

Commit Message

Alexis Lothoré Feb. 7, 2023, 3:29 p.m. UTC
From: Alexis Lothoré <alexis.lothore@bootlin.com>

If we try to run send-qa-email to simulate past releases (for example, for
development or debugging), the execution will very likely fail because the
target revision to examine (ie: the poky revision) is too old, and as a
consequence is not contained in the testresults shallow clone anymore (because
testsresults history keeps moving forward as builds are triggered on
autobuilder). As a consequence, force-fetch the "target" revision, as it is
already done for the "base" revision

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

Patch

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index 199fe4e..f8ebe34 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -75,6 +75,7 @@  def generate_regression_report(resulttool, targetrepodir, basebranch, resultdir,
         running resulttool
         """
         fetch_testresults(resultdir, baserevision)
+        fetch_testresults(resultdir, comparerevision)
         regreport = subprocess.check_output([resulttool, "regression-git", "-B", basebranch, "--commit", baserevision, "--commit2", comparerevision, resultdir])
         with open(outputdir + "/testresult-regressions-report.txt", "wb") as f:
            f.write(regreport)