[Git][reproducible-builds/diffoscope][master] Add another timeout check when comparing within containers. (Re:...

Chris Lamb (@lamby) gitlab at salsa.debian.org
Wed Jan 26 16:14:30 UTC 2022



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
3b515cc5 by Chris Lamb at 2022-01-26T08:13:57-08:00
Add another timeout check when comparing within containers. (Re: reproducible-builds/diffoscope#301)

- - - - -


1 changed file:

- diffoscope/comparators/utils/container.py


Changes:

=====================================
diffoscope/comparators/utils/container.py
=====================================
@@ -188,6 +188,12 @@ class Container(metaclass=abc.ABCMeta):
         from ..directory import compare_meta
 
         def compare_pair(file1, file2, comment):
+            if Config().timeout_exceeded():
+                difference = Difference(file1.name, file2.name)
+                msg = "Timeout exceeded; details may be incomplete."
+                difference.add_comment(msg)
+                return difference
+
             difference = compare_files(
                 file1, file2, source=None, diff_content_only=no_recurse
             )



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/3b515cc5d8cd2746deb73090edf2f645a8ad7380

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/3b515cc5d8cd2746deb73090edf2f645a8ad7380
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220126/0bb95e52/attachment.htm>


More information about the rb-commits mailing list