Skip to content

Would it make sense to add a timeout to the Python testing suite? #4441

Closed

Description

@lydia-duncan

Feature Description
This week the Chapel team has experienced some test configurations running unusually long due to one particular test. We were wondering if it would make sense to add a timeout so that the job itself will interrupt tests that are taking too long and hopefully allow the rest of the tests to run and report back.

It looks like pytest doesn't have this functionality itself but that it can be enabled via the pytest-timeout package. So I'd probably lean towards adding that to the dependencies and using it for this?

Example Behavior
The PyPI link above has some examples of how to use the package

Describe Workarounds
There's probably some way to code this up independently but that seems unnecessary.

Additional context
Can't think of anything at the moment

Activity

  1. added
    enhancement
    Testing
    on May 22, 2025
  2. ajpotts commented on Jun 18, 2025

    @ajpotts
    Contributor

    I did attempt to add pytest-timeout to the project and it didn't work out of the box. See #4445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions