[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3983: test_pidfile_contents sometimes fails with ProcessInTheWay
Tahoe-LAFS
trac at tahoe-lafs.org
Mon Mar 13 13:11:58 UTC 2023
#3983: test_pidfile_contents sometimes fails with ProcessInTheWay
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
On a recent CI run it failed like this:
{{{
| Traceback (most recent call last):
| File "/home/runner/work/tahoe-lafs/tahoe-
lafs/.tox/pypy39/lib/pypy3.9/site-
packages/allmydata/test/cli/test_run.py", line 196, in
test_pidfile_contents
| with check_pid_process(pidfile):
| File "/home/runner/work/tahoe-lafs/tahoe-
lafs/.tox/pypy39/lib/pypy3.9/site-packages/allmydata/util/pid.py", line
82, in check_pid_process
| raise ProcessInTheWay(
| allmydata.util.pid.ProcessInTheWay: A process is already running
as PID 1
| Falsifying example: test_pidfile_contents(
| content='1\r0',
|
self=<allmydata.test.cli.test_run.RunTests.test_pidfile_contents
id=0x4bfb088>,
| )
}}}
Notice that content was generated as "1\r0". It looks like the "good
content" regex fails to match this but the parser in the implementation
still manages to pull out the "1" and "0" and tries to operate on them.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3983>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list