[Git][qa/jenkins.debian.net][master] 4 commits: reproduce.d.n/stats: Use any() and all() to fix freedict entry

Holger Levsen (@holger) gitlab at salsa.debian.org
Fri Jan 24 11:24:55 GMT 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
72abb48d by Jochen Sprickerhof at 2025-01-24T12:24:15+01:00
reproduce.d.n/stats: Use any() and all() to fix freedict entry

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
61213f27 by Jochen Sprickerhof at 2025-01-24T12:24:20+01:00
reproduce.d.n/stats: move dh-r issue up

Those are all the same issue.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
54cdd5ac by Jochen Sprickerhof at 2025-01-24T12:24:25+01:00
reproduce.d.n/stats: more categories

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
d6934d2a by Jochen Sprickerhof at 2025-01-24T12:24:31+01:00
reproduce.d.n/stats: move size limit after diff

As it is non fatal.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/rebuilderd_stats.py


Changes:

=====================================
bin/rebuilderd_stats.py
=====================================
@@ -27,10 +27,12 @@ def main() -> None:
 
     def log_has_any(strs):
         def f(log, _):
-            for s in strs:
-                if s in log:
-                    return True
-            return False
+            return any(s in log for s in strs)
+        return f
+
+    def log_has_all(strs):
+        def f(log, _):
+            return all(s in log for s in strs)
         return f
 
     def diff_has(s):
@@ -44,16 +46,15 @@ def main() -> None:
             if not diff:
                 return False
 
-            for s in strs:
-                if s in (diff or ''):
-                    return True
-            return False
+            return any(s in (diff or '') for s in strs)
         return f
 
     error_messages = {
         "buildinfo file 404 (maybe temporary)": log_has("rebuilderd: unexpected error while rebuilding package: Failed to download build input from"),
         "package file 404 (temporary)": log_has("rebuilderd: unexpected error while rebuilding package: Failed to download original package from"),
         "packages missing on metasnap (maybe temporary)": log_has_re(r"cannot find:.*debootsnap failed at /usr/bin/debrebuild line 48"),
+        "multiarch-support missing ((bin)NMUs needed)": log_has("multiarch-support but it is not installable"),
+        "debootsnap failed (temporary)": log_has_all(["Failed to fetch http://snapshot.debian.org/archive/debian", "debootsnap failed at /usr/bin/debrebuild line 48"]),
         "debootsnap failed (maybe temporary)": log_has("debootsnap failed at /usr/bin/debrebuild line 48"),
         "debootsnap failed, no diskspace (temporary)": log_has_any(["W: creating tarball failed: E: cannot copy to /tmp/debrebuild", "dpkg-new': failed to write (No space left on device)"]),
         "dpkg-source failed (maybe temporary)": log_has("E: FAILED [dpkg-source died]"),
@@ -61,17 +62,17 @@ def main() -> None:
         "download failed (temporary)": log_has_re("400 URL must be absolute.E: Could not download.*sbuild failed"),
         "sbuild chroot failed (temporary)": log_has("E: Error creating chroot session: skipping"),
         "sbuild failed due to insufficient disk space": log_has("E: Disk space is probably not sufficient for building."),
-        "timeout: freedict (#998683)": log_has_any(["TRUNCATED DUE TO TIMEOUT: ", "inputs/freedict_20"]),
+        "timeout: freedict (#998683)": log_has_all(["TRUNCATED DUE TO TIMEOUT: ", "inputs/freedict_20"]),
         "timeout (maybe temporary)": log_has("TRUNCATED DUE TO TIMEOUT: "),
-        "size limit (not fatal)": log_has("TRUNCATED DUE TO SIZE LIMIT: "),
         "old dpkg (<1.19.0, (bin)NMUs needed)": log_has_re(r"dpkg is already the newest version \(1\.1[0-8].*fakeroot not found, either install the fakeroot"),
         "fakeroot not found (https://deb.li/3P46G)": log_has("fakeroot not found, either install the fakeroot"),
+        "failed to reproduce: dh-r (#1089197)": log_has_re(r"(Source|Binary): r-(cran|bioc|other)-"),
         "dpkg-buildpackage failed": log_has("E: Build failure (dpkg-buildpackage died"),
         "diffoscope timeout (not fatal)": diff_has("TRUNCATED DUE TO TIMEOUT: 600 seconds"),
-        "failed to reproduce: dh-r (#1089197)": log_has_re(r"(Source|Binary): r-(cran|bioc|other)-"),
         "failed to reproduce: dh-buildinfo (#1068809)": diff_has_any([f"buildinfo_{arch}.gz", "buildinfo_all.gz"]),
         "failed to reproduce: 1-second offset (#1089088)": diff_has_re(r" -([drwx-]{10} [0-9a-z() ]{,60} [0-9]+ [0-9-]{10} [012][0-9]:).* \+\1"),
         "failed to reproduce": lambda log, diff: diff,
+        "size limit (not fatal)": log_has("TRUNCATED DUE TO SIZE LIMIT: "),
     }
 
     messages_packages = {k: [] for k in error_messages.keys()} # Preserve keys order



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/c92d87694ab83303b30a810320ed8c1923b1c181...d6934d2a59161d253ac8f3397eb9e27cecc264d5

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/c92d87694ab83303b30a810320ed8c1923b1c181...d6934d2a59161d253ac8f3397eb9e27cecc264d5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250124/0bc16dd7/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list