Skip to content

Set Timeout in CTest/CMake #5121

Closed

Description

@GMNGeoffrey

Test runner timeouts are a good way to make sure that a hanging test actually exits in some reasonable amount of time and reports that it's failing. Hanging forever is unhelpful behavior. I recently had an issue with the cts tests hanging because of a funky software vulkan driver, and it was a PITA to figure out which tests were actually causing the issue because the whole ctest invocation just hung indefinitely.

Tests in CMake have a TIMEOUT property, which we could set to some reasonable default. https://cmake.org/cmake/help/latest/prop_test/TIMEOUT.html. We already have timeouts for these in Bazel. It should be easy to propagate them as well.

Activity

  1. added
    infrastructure
    quality of life 😊
    on Mar 15, 2021
  2. ScottTodd commented on Aug 31, 2021

    @ScottTodd
    Member

    What's left here after #6617? Just lining up the timeouts between Bazel and CMake?

  3. GMNGeoffrey commented on Aug 31, 2021

    @GMNGeoffrey
    MemberAuthor

    Per-test timeouts, yeah. Right now we set a global timeout, so we have to set something very generous and tests can still hang for 15 minutes. This is definitely better than forever, but I think it would still be nice to have tighter timeouts

  4. added this to the Infrastructure Fixit milestone on Jun 2, 2022
  5. self-assigned this
    on Jun 7, 2022
  6. linked a pull request that will close this issueAdded timeout to testing infrastructure #9356on Jun 7, 2022
  7. moved this to Done in IREEon Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infrastructurequality of life 😊

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions