Your message dated Fri, 28 Feb 2025 12:32:14 +0000
with message-id <[email protected]>
and subject line Bug#1013114: fixed in silx 2.2.0+dfsg-2
has caused the Debian Bug report #1013114,
regarding silx: TestRetry fails with scipy 1.8.1-4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1013114: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013114
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: silx
Version: 1.0.0+dfsg-4
Severity: normal

silx debci tests have started failing in testing on amd64 running
against scipy 1.8.1-4 from unstable.

Not clear what the problem is since the test previously passed against
scipy/1.8.1-3. Maybe it's a coincidence, triggered by something else
that migrated to testing at the same time that scipy 1.8.1-4 got
uploaded to unstable. Or maybe this test is intermittently flakey, I
don't know.


Test log reports:

______________________ TestRetry.test_retry_in_subprocess ______________________

options = {'exception': RetryError(''), 'retry_on_error': <function 
_default_retry_on_error at 0x7f92323de5f0>}

    @contextmanager
    def _handle_exception(options):
        try:
>           yield

/usr/lib/python3/dist-packages/silx/utils/retry.py:63: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = ('/tmp/tmppg678tas/failcounter.txt',)
kw = {'faildelay': 0.1, 'kwcheck': True, 'ncausefailure': 3}
_retry_timeout = 30.299999999999997, _retry_period = 0.01
_retry_on_error = <function _default_retry_on_error at 0x7f92323de5f0>
start_subprocess = <function 
retry_in_subprocess.<locals>.decorator.<locals>.wrapper.<locals>.start_subprocess
 at 0x7f92300cad40>
stop_subprocess = <function 
retry_in_subprocess.<locals>.decorator.<locals>.wrapper.<locals>.stop_subprocess
 at 0x7f9223d5c310>
p = <SpawnProcess name='SpawnProcess-16' pid=13378 parent=11603 stopped 
exitcode=-SIGKILL>
queue = <multiprocessing.queues.Queue object at 0x7f91fc1e7eb0>
options = {'exception': RetryError(''), 'retry_on_error': <function 
_default_retry_on_error at 0x7f92323de5f0>}
result = RetryError('')

    @wraps(method)
    def wrapper(*args, **kw):
        _retry_timeout = kw.pop("retry_timeout", retry_timeout)
        _retry_period = kw.pop("retry_period", retry_period)
        _retry_on_error = kw.pop("retry_on_error", retry_on_error)
    
        ctx = multiprocessing.get_context("spawn")
    
        def start_subprocess():
            queue = ctx.Queue(maxsize=1)
            p = ctx.Process(
                target=_subprocess_main,
                args=(queue, method, retry_on_error) + args,
                kwargs=kw,
            )
            p.start()
            return p, queue
    
        def stop_subprocess(p):
            try:
                p.kill()
            except AttributeError:
                p.terminate()
            p.join()
    
        p, queue = start_subprocess()
        try:
            for options in _retry_loop(
                retry_timeout=_retry_timeout, retry_on_error=_retry_on_error
            ):
                with _handle_exception(options):
                    if not p.is_alive():
                        p, queue = start_subprocess()
                    try:
                        result = queue.get(block=True, timeout=_retry_period)
                    except Empty:
                        pass
                    except ValueError:
                        pass
                    else:
                        if isinstance(result, BaseException):
                            stop_subprocess(p)
>                           raise result
E                           silx.utils.retry.RetryError

/usr/lib/python3/dist-packages/silx/utils/retry.py:256: RetryError

The above exception was the direct cause of the following exception:

self = <silx.utils.test.test_retry.TestRetry 
testMethod=test_retry_in_subprocess>

    def test_retry_in_subprocess(self):
        ncausefailure = 3
        faildelay = 0.1
        sufficient_timeout = ncausefailure * (faildelay + 10)
        insufficient_timeout = ncausefailure * faildelay * 0.5
    
        kw = {
            "ncausefailure": ncausefailure,
            "faildelay": faildelay,
            "kwcheck": True,
            "retry_timeout": sufficient_timeout,
        }
        with open(self.ctr_file, mode="w") as f:
            f.write("0")
>       self.assertTrue(_wsubmain(self.ctr_file, **kw))

/usr/lib/python3/dist-packages/silx/utils/test/test_retry.py:158: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/silx/utils/retry.py:241: in wrapper
    for options in _retry_loop(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

retry_timeout = 30.299999999999997, retry_period = None
retry_on_error = <function _default_retry_on_error at 0x7f92323de5f0>

    def _retry_loop(retry_timeout=None, retry_period=None, retry_on_error=None):
        """Iterator which is endless or ends with an RetryTimeoutError.
        It yields a dictionary which can be used to influence the loop.
    
        :param num retry_timeout:
        :param num retry_period: sleep before retry
        :param callable or None retry_on_error: checks whether an exception is
                                                eligible for retry
        """
        has_timeout = retry_timeout is not None
        options = {"exception": None, "retry_on_error": retry_on_error}
        if has_timeout:
            t0 = time.time()
        while True:
            yield options
            if retry_period is not None:
                time.sleep(retry_period)
            if has_timeout and (time.time() - t0) > retry_timeout:
>               raise RetryTimeoutError from options.get("exception")
E               silx.utils.retry.RetryTimeoutError

/usr/lib/python3/dist-packages/silx/utils/retry.py:90: RetryTimeoutError

--- End Message ---
--- Begin Message ---
Source: silx
Source-Version: 2.2.0+dfsg-2
Done: Picca Frédéric-Emmanuel <[email protected]>

We believe that the bug you reported is fixed in the latest version of
silx, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Picca Frédéric-Emmanuel <[email protected]> (supplier of updated silx package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 28 Feb 2025 12:53:34 +0100
Source: silx
Architecture: source
Version: 2.2.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Picca Frédéric-Emmanuel <[email protected]>
Closes: 1013114 1047562 1072655 1099038
Changes:
 silx (2.2.0+dfsg-2) unstable; urgency=medium
 .
   [ Alexandre Detiste ]
   * remove noise from patch
 .
   [ Picca Frédéric-Emmanuel ]
   * Bug fix: "Permission denied:
     &#39;/usr/lib/python3/dist-packages/silx/pytest-cache-files-0lxt05lh&#39;",
     thanks to Picca Frédéric-Emmanuel (Closes: #1099038).
   * Bug fix: "no-opencl tests fail with pytest8.2", thanks to Chris
     Peterson (Closes: #1072655).
   * Bug fix: "TestRetry fails with scipy 1.8.1-4", thanks to Drew Parsons
     (Closes: #1013114).
   * Bug fix: "Fails to build source after successful build", thanks to
     Lucas Nussbaum (Closes: #1047562).
Checksums-Sha1:
 724d7f250e12f7af37d8ac52e8a20c47d6a25e55 3284 silx_2.2.0+dfsg-2.dsc
 c79e795ab01a3c4fd9b08d6f4c865d0515529da8 157628 silx_2.2.0+dfsg-2.debian.tar.xz
Checksums-Sha256:
 343095f19fb663c3272838af4c25152614e75dce57d80d4029c50fb8baaf7ac6 3284 
silx_2.2.0+dfsg-2.dsc
 7d7c3600295019337dfca9c19be0baf129bcf6d8eb9f0b8dc10bc63bde9a52fc 157628 
silx_2.2.0+dfsg-2.debian.tar.xz
Files:
 25f7444face80b2afa6083900a51f437 3284 science optional silx_2.2.0+dfsg-2.dsc
 b5298dfa076badad5c5ea001759670aa 157628 science optional 
silx_2.2.0+dfsg-2.debian.tar.xz


-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE2bRTt5m4gw2UXmoKW/VOXhK5ALsFAmfBpQoRHHBpY2NhQGRl
Ymlhbi5vcmcACgkQW/VOXhK5ALttABAApruoL4L76lYD2GnokSgNeUFyZVztcL0m
+vMCXuZZHld6nCr0h3y+Mj2V1V9MI+dGQfTzZznWDc/w1JIaQUjzC7D9seNLg16B
gOE8AdcnkJ86jM8GQWara0t2FxNh4mNqCDrEoqVcdfnkEc1UF+iKdkpSApFzU3rg
/+9tAF1dlT1/+Hx3uuKiwfmp4nxDFgniUg1BeYRBXt7xegIHjPW+rNpsJvxqa/MJ
F5VFDqgHcT9MJAznTM2VVOyGs3cIgA3A7k3Nu9ELiA2vaClaTreU53d3QFdGBcew
PLD5AIvPzF0eLYqrtKzDCd8yBPvuKqzmBWVGz7+3xTkMLEvxqgkjOTqoh2tYfyVf
ggTojE0tXSoz3kGC0TeFVpvQbJCP0VlHJXXYjmCxU2DQ0+q69UvQMLt73BbI0q44
fQONtxRfQAZp1HxLA610sl8JbI7IY7A+cDSSDjyN9QFzsFKK2iPDAJqKzlLx9CAf
2ABQCXBO6TFuFF8k+Elf2HVtgBGWRR2WVq/ejUDoAQMJyaUOJBzLWlTuP9/p8m62
6DS/1EM2CKfq7pnCgCsabtRaDWd5NZ0sT2louE3R1v4uI29Zm2Bcoz1Fq4KRp+Ga
mX2e37hbUxKLaXL97LBV39g/dk8Gtfvj0pDG++dPPTJutxscQOY5gh8GSzHlp4kw
hJU0G8s+PnQ=
=JJuH
-----END PGP SIGNATURE-----

Attachment: pgpGpcXL7IyPQ.pgp
Description: PGP signature


--- End Message ---
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to