Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_database_listener_directory_explicit fails #4274

Open
dutyrok opened this issue Feb 24, 2025 · 1 comment · May be fixed by #4270
Open

test_database_listener_directory_explicit fails #4274

dutyrok opened this issue Feb 24, 2025 · 1 comment · May be fixed by #4270

Comments

@dutyrok
Copy link

dutyrok commented Feb 24, 2025

Hypothesis version

6.127.1

About

This test (tests/watchdog/test_database.py::test_database_listener_directory_explicit) fails in ALTLinux Sisyphus periodically. I occur the following assert error:

FAILED tests/watchdog/test_database.py::test_database_listener_directory_explicit - AssertionError: [('save', (b'k2', b'v3')), ('delete', (b'k1', None)), ('save', (b'k1', b'v3')), ('delete', (b'k2', None))]
assert [('save', (b'k2', b'v3')), ('delete', (b'k1', None)), ('save', (b'k1', b'v3')), ('delete', (b'k2', None))] == [('save', (b'k2', b'v3')), ('delete', (b'k1', b'v3')), ('save', (b'k2', b'v3')), ('save', (b'k1', b'v3')), ('delete', (b'k2', None))]
  
  At index 1 diff: ('delete', (b'k1', None)) != ('delete', (b'k1', b'v3'))
  Right contains one more item: ('delete', (b'k2', None))
Full diff.
  Full diff:
    [
        (
            'save',
            (
                b'k2',
                b'v3',
            ),
        ),
        (
            'delete',
            (
                b'k1',
  +             None,
  -             b'v3',
  -         ),
  -     ),
  -     (
  -         'save',
  -         (
  -             b'k2',
  -             b'v3',
            ),
        ),
        (
            'save',
            (
                b'k1',
                b'v3',
            ),
        ),
        (
            'delete',
            (
                b'k2',
                None,
            ),
        ),
    ]
   

Steps to reproduce

  1. docker run -it --rm alt:sisyphus. The following commands will be executed within docker container.
  2. apt-get update && apt-get dist-upgrade -y
  3. apt-get install -y python3-base git python3-module-pytest python3-module-sortedcontainers python3-module-attrs python3-module-watchdog
  4. cd && git clone https://github.com/HypothesisWorks/hypothesis.git && cd hypothesis/hypothesis-python/
  5. PYTHONPATH="$(realpath src)" python3 -m pytest tests/watchdog/test_database.py::test_database_listener_directory_explicit -vv

Advance thanks for your help!

@tybug
Copy link
Member

tybug commented Feb 24, 2025

Thanks for the report! We've also seen this failure in our tests. It's a real failure, but is relatively benign and is not indicative of a serious underlying problem. I've marked it as xfail for now in #4270 in the interest of not leaving failing tests around until we can properly fix it.

@tybug tybug linked a pull request Feb 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants