[Git][qa/jenkins.debian.net][master] rdn stats: catch EOFError when reading pickle cache

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Wed Apr 8 17:11:11 BST 2026



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
b779f8ef by Jochen Sprickerhof at 2026-04-08T18:10:53+02:00
rdn stats: catch EOFError when reading pickle cache

This could happen when the disk was full in the previous run.

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/rebuilderd_stats.py


Changes:

=====================================
bin/rebuilderd_stats.py
=====================================
@@ -60,11 +60,14 @@ def main() -> None:
 
     cache = {}
     cache_new = {}
-    if args.cache.is_file():
-        with args.cache.open("rb") as fp:
-            hash_key_old, cache_old = load(fp)
-        if hash_key == hash_key_old:
-            cache = cache_old
+    try:
+        if args.cache.is_file():
+            with args.cache.open("rb") as fp:
+                    hash_key_old, cache_old = load(fp)
+            if hash_key == hash_key_old:
+                cache = cache_old
+    except EOFError:
+        pass
 
     def log_has(s):
         return lambda log, _: s in log



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b779f8effcfda1a6f2264d1a48b717f01c84523a

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b779f8effcfda1a6f2264d1a48b717f01c84523a
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/20260408/7eed8b35/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list