Skip to content

Added timeout to testing infrastructure - #9356

Merged
rsuderman merged 7 commits into
iree-org:mainfrom
rsuderman:AddTimeouts
Jun 7, 2022
Merged

rsuderman merged 7 commits into
iree-org:mainfrom
rsuderman:AddTimeouts

Conversation

@rsuderman

Copy link
Copy Markdown
Collaborator

Included a couple of changes:

  • using bazel's timeout arg instead of size
  • update bazel_to_cmake_converter.py to to set TIMEOUT on cmake files
  • update the appropriate CMAKE files for above
  • updated cmake files to plumb TIMEOUT down to setting CTEST's timeout property
  • set default TIMEOUT value on tests to 60 (shortest bazel timeout)

@rsuderman rsuderman linked an issue Jun 7, 2022 that may be closed by this pull request
Comment thread build_tools/cmake/iree_cc_test.cmake Resolved
Comment thread build_tools/cmake/iree_cc_test.cmake Resolved
Comment thread build_tools/cmake/iree_lit_test.cmake Resolved
@rsuderman
rsuderman requested a review from benvanik as a code owner June 7, 2022 18:24
rsuderman and others added 7 commits June 7, 2022 11:30
Included a couple of changes:
- using bazel's `timeout` arg instead of `size`
- update bazel_to_cmake_converter.py to to set TIMEOUT on cmake files
- update the appropriate CMAKE files for above
- updated cmake files to plumb TIMEOUT down to setting CTEST's timeout property
- set default TIMEOUT value on tests to 60 (shortest bazel timeout)
@rsuderman
rsuderman removed the request for review from benvanik June 7, 2022 18:47
@rsuderman
rsuderman merged commit f900f50 into iree-org:main Jun 7, 2022
@rsuderman
rsuderman deleted the AddTimeouts branch June 7, 2022 19:26

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I was thinking it would be better to persist the named timeouts into the CMake so that we can control what they mean within CMake. e.g. internally we double timeouts when running asan, I think. This is great though!

jpienaar pushed a commit to jpienaar/iree that referenced this pull request Jun 10, 2022
Included a couple of changes:

using bazel's timeout arg instead of size
update bazel_to_cmake_converter.py to to set TIMEOUT on cmake files
update the appropriate CMAKE files for above
updated cmake files to plumb TIMEOUT down to setting CTEST's timeout property
set default TIMEOUT value on tests to 60 (shortest bazel timeout)

Co-authored-by: Scott Todd <[email protected]>
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set Timeout in CTest/CMake

3 participants