Skip to content

ZeroDivisionError in dashboard/test.py #245

@Stranger6667

Description

@Stranger6667

I don't have a stable reproducer right now, but I observed the following:

  File "schemathesis/.venv/lib/python3.14/site-packages/hypofuzz/dashboard/websocket.py", line 251, in websocket_route
    await websocket.send_tests(TESTS)
  File "schemathesis/.venv/lib/python3.14/site-packages/hypofuzz/dashboard/websocket.py", line 122, in send_tests
    "stability": test.stability,
                 ^^^^^^^^^^^^^^
  File "schemathesis/.venv/lib/python3.14/site-packages/hypofuzz/dashboard/test.py", line 231, in stability
    return count_stable / (count_stable + count_unstable)
           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ZeroDivisionError: division by zero

Which made the dashboard unresponsive. I'll try to provide more info in the coming days

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething is clearly wrong here

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions