allmydata.test.test_storage_http fails on PyPy (perhaps due to new release of Hypothesis) #4063

Closed
opened 2023-09-05 14:04:45 +00:00 by itamarst · 2 comments
$ trial allmydata.test.test_storage_http
...
ERROR
Traceback (most recent call last):
Failure: testtools.testresult.real._StringException: Traceback (most recent call last):
> File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/twisted/internet/defer.py", line 234, in maybeDeferred
    result = f(*args, **kwargs)
> File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/testtools/testcase.py", line 703, in _run_test_method
    return self._get_test_method()()
> File "/home/itamarst/devel/tahoe-lafs/src/allmydata/test/eliotutil.py", line 155, in run_with_logging
    return test_method(*args, **kwargs)
> File "/home/itamarst/devel/tahoe-lafs/src/allmydata/test/test_storage_http.py", line 1677, in test_read_with_no_range
    def test_read_with_no_range(self, data_length):
> File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/hypothesis/core.py", line 1262, in wrapped_test
    fail_health_check(settings, msg, [HealthCheck](wiki/HealthCheck).differing_executors)
> File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/hypothesis/internal/healthcheck.py", line 27, in fail_health_check
    raise [FailedHealthCheck](wiki/FailedHealthCheck)(message)
hypothesis.errors.FailedHealthCheck: The method [SharedImmutableMutableTestsMixin](wiki/SharedImmutableMutableTestsMixin).test_read_with_no_range was called from multiple different executors. This may lead to flaky tests and nonreproducible errors when replaying from database.
See <https://hypothesis.readthedocs.io/en/latest/healthchecks.html> for more information about this. If you want to disable just this health check, add [HealthCheck](wiki/HealthCheck).differing_executors to the suppress_health_check settings for this test.


allmydata.test.test_storage_http.MutableSharedTests.test_read_with_no_range
-------------------------------------------------------------------------------
Ran 66 tests in 6.322s
``` $ trial allmydata.test.test_storage_http ... ERROR Traceback (most recent call last): Failure: testtools.testresult.real._StringException: Traceback (most recent call last): > File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/twisted/internet/defer.py", line 234, in maybeDeferred result = f(*args, **kwargs) > File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/testtools/testcase.py", line 703, in _run_test_method return self._get_test_method()() > File "/home/itamarst/devel/tahoe-lafs/src/allmydata/test/eliotutil.py", line 155, in run_with_logging return test_method(*args, **kwargs) > File "/home/itamarst/devel/tahoe-lafs/src/allmydata/test/test_storage_http.py", line 1677, in test_read_with_no_range def test_read_with_no_range(self, data_length): > File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/hypothesis/core.py", line 1262, in wrapped_test fail_health_check(settings, msg, [HealthCheck](wiki/HealthCheck).differing_executors) > File "/home/itamarst/devel/tahoe-lafs/venvpypy/lib/pypy3.9/site-packages/hypothesis/internal/healthcheck.py", line 27, in fail_health_check raise [FailedHealthCheck](wiki/FailedHealthCheck)(message) hypothesis.errors.FailedHealthCheck: The method [SharedImmutableMutableTestsMixin](wiki/SharedImmutableMutableTestsMixin).test_read_with_no_range was called from multiple different executors. This may lead to flaky tests and nonreproducible errors when replaying from database. See <https://hypothesis.readthedocs.io/en/latest/healthchecks.html> for more information about this. If you want to disable just this health check, add [HealthCheck](wiki/HealthCheck).differing_executors to the suppress_health_check settings for this test. allmydata.test.test_storage_http.MutableSharedTests.test_read_with_no_range ------------------------------------------------------------------------------- Ran 66 tests in 6.322s ```
itamarst added the
unknown
normal
defect
n/a
labels 2023-09-05 14:04:45 +00:00
itamarst added this to the undecided milestone 2023-09-05 14:04:45 +00:00
Author

Per https://hypothesis.readthedocs.io/en/latest/settings.html#health-checks:

If your test function is defined as a method on a class, that class will be your executor, and subclasses executing an inherited test is a common way for things to go wrong.

And indeed this is a test defined on a mixin class.

Per <https://hypothesis.readthedocs.io/en/latest/settings.html#health-checks>: ``` If your test function is defined as a method on a class, that class will be your executor, and subclasses executing an inherited test is a common way for things to go wrong. ``` And indeed this is a test defined on a mixin class.
GitHub <noreply@github.com> commented 2023-09-13 13:48:22 +00:00
Owner

In ef20422/trunk:

Merge pull request #1333 from tahoe-lafs/4063-pypy-test-failure

Make tests pass again

Fixes ticket:4063
In [ef20422/trunk](/tahoe-lafs/trac-2024-07-25/commit/ef20422bfe6e19e3d8fa836306d7aa2e583110e8): ``` Merge pull request #1333 from tahoe-lafs/4063-pypy-test-failure Make tests pass again Fixes ticket:4063 ```
tahoe-lafs added the
fixed
label 2023-09-13 13:48:22 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#4063
No description provided.