Skip to content

Fix test hypothesis #1611

Fix test hypothesis

Fix test hypothesis #1611

Triggered via pull request January 8, 2025 17:14
Status Success
Total duration 54m 41s
Artifacts 2

test-fakeredis.yml

on: pull_request
Publish HTML Test Results to GitHub Pages
0s
Publish HTML Test Results to GitHub Pages
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
Run tests:
Process completed with exit code 1.
TestHash.test: TestHash#L1
AssertionError: Discrepancy when running command Command('hexpire', b'', 67108865, 'fields', 2, b'', b''), fake(float() argument must be a string or a real number, not 'list') != real(value is not an integer or out of range) Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('hset', b'', [])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('hset', b'', [])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'hexpire', b'', 67108865, 'fields', 2, [b'', b''], )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:65 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:74 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHjFiZuGUYeUAk87/KRAYGAAz0Afc=') as a decorator on your test case
TestHash.test: TestHash#L1
AssertionError: Discrepancy when running command Command('hexpire', b'', 67108865, 'fields', 2, b'', b''), fake(float() argument must be a string or a real number, not 'list') != real(value is not an integer or out of range) Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('hset', b'', [])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('hset', b'', [])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'hexpire', b'', 67108865, 'fields', 2, [b'', b''], )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:65 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:74 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHjFiZuGUYeUAk87/KRAYGAAz0Afc=') as a decorator on your test case
TestList.test: TestList#L1
AssertionError: Expected exception One or more scores can't be converted into double not raised Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, inf]}) state.init_data(commands=[functools.partial(test.test_hypothesis.base.Command)('rpush', b'', [b'\x00'])]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'sort', b'', None, None, None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:279 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:270 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHIPb/DwwoImDVQJofRAEAOkQCDg==') as a decorator on your test case
TestSet.test: TestSet#L1
AssertionError: Expected exception One or more scores can't be converted into double not raised Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'\x00', b''], 'values': [b'', b'0'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('sadd', b'', [b'\x00'])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'sort', b'', None, None, None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:279 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:270 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_helpers.py:48 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGAAE1AE4kIAgoXCRlXACGHwgigAA4gAHQ==') as a decorator on your test case
TestZSet.test: TestZSet#L1
redis.exceptions.ResponseError: weight value is not a float Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=build_zstore( command='zunionstore', dest=b'', sources=[(b'', b'nan')], weights=True, aggregate=None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:273 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:275 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:277 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/test_zset.py:53 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:277 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/sortedset_mixin.py:414 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/sortedset_mixin.py:416 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHjNiYyAqw8AlwuaFC/7//BwMgDwBDkAgP') as a decorator on your test case
TestJoint.test: TestJoint#L1
exceptiongroup.ExceptionGroup: Hypothesis found 2 distinct failures. (2 sub-exceptions)
TestList.test: TestList#L1
AssertionError: Expected exception One or more scores can't be converted into double not raised Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, inf]}) state.init_data(commands=[functools.partial(test.test_hypothesis.base.Command)('rpush', b'', [b'\x00'])]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'sort', b'', None, None, None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:279 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:270 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHIPb/DwwoImDVQJofRAEAOkQCDg==') as a decorator on your test case
TestSet.test: TestSet#L1
AssertionError: Expected exception One or more scores can't be converted into double not raised Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'\x00', b''], 'values': [b'', b'0'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('sadd', b'', [b'\x00'])) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'sort', b'', None, None, None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:279 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:270 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_helpers.py:48 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGAAE1AE4kIAgoXCRlXACGHwgigAA4gAHQ==') as a decorator on your test case
TestTransaction.test: TestTransaction#L1
AssertionError: Expected exception value is not an integer or out of range not raised Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'0'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)('bitcount', b'', b'', b'')) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:279 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/bitmap_mixin.py:84 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/bitmap_mixin.py:94 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/bitmap_mixin.py:97 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUBAaAhAsFDayMIjLAiQAAusAEg==') as a decorator on your test case
TestZSet.test: TestZSet#L1
redis.exceptions.ResponseError: weight value is not a float Falsifying example: state = Machine() state.init_attrs(attrs={'keys': [b'', b'\x00'], 'fields': [b'', b'\x00'], 'values': [b'', b'\x00'], 'scores': [0.0, 1.0]}) state.init_data(commands=[]) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=functools.partial(test.test_hypothesis.base.Command)( 'zadd', b'', None, None, None, None, [], )) state.one_command(command=build_zstore( command='zunionstore', dest=b'', sources=[(b'', b'nan')], weights=True, aggregate=None, )) state.teardown() Explanation: These lines were always and only run by failing examples: /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:273 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:275 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/base.py:277 /__w/dragonfly/dragonfly/tests/fakeredis/test/test_hypothesis/test_zset.py:53 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/_commands.py:277 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/sortedset_mixin.py:414 /github/home/.cache/pypoetry/virtualenvs/dragonfly-fakeredis-tests-hb2kjOpH-py3.10/lib/python3.10/site-packages/fakeredis/commands_mixins/sortedset_mixin.py:416 You can reproduce this example by temporarily adding @reproduce_failure('6.123.2', b'AXicY2BgZGBkZGBAUCAWhAEHjNiYyAqw8AlwuaFC/7//BwMgDwBDkAgP') as a decorator on your test case
Run tests:
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
report-tests.html
1.61 MB
tests-result-logs
104 KB