← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] autopkgtest-cloud:no-results-specifics into autopkgtest-cloud:master

 

Brian Murray has proposed merging autopkgtest-cloud:no-results-specifics into autopkgtest-cloud:master.

Requested reviews:
  Canonical's Ubuntu QA (canonical-ubuntu-qa)

For more details, see:
https://code.launchpad.net/~ubuntu-release/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/448960

I saw the following an apache2 error log for an autuopkgtest-web unit:

[Thu Aug 10 17:37:24.059683 2023] [cgi:error] [pid 584921] [client 10.15.102.10:50250] AH01215: ERROR:root:Request failed with 
400: Package pgpcre does not have any test results: /var/lib/juju/agents/unit-autopkgtest-web-3/charm/webcontrol/request.cgi


However, there are in fact results for pgpcre, https://autopkgtest.ubuntu.com/packages/pgpcre, just not for s390x.

The error message would be more helpful if we knew for what architecture and release the package does not have results.
-- 
Your team Canonical's Ubuntu QA is requested to review the proposed merge of autopkgtest-cloud:no-results-specifics into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/request/submit.py b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
index 026d3a1..413f79c 100644
--- a/charms/focal/autopkgtest-web/webcontrol/request/submit.py
+++ b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
@@ -139,7 +139,8 @@ class Submit:
             None if (ppas or skip_result_check) else release, arch, package
         ):
             raise ValueError(
-                "Package %s does not have any test results" % package
+                "Package %s does not have any test results for %s on %s"
+                % (package, release, arch)
             )
 
         if "migration-reference/0" in triggers: