Set 20-minute timeout for all CMake-based regression tests#8848
Merged
tautschnig merged 3 commits intodiffblue:developfrom Mar 9, 2026
Merged
Set 20-minute timeout for all CMake-based regression tests#8848tautschnig merged 3 commits intodiffblue:developfrom
tautschnig merged 3 commits intodiffblue:developfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a per-test timeout to the regression test infrastructure to prevent CI hangs from long-running tests.
Changes:
- Enforce a 20-minute CTest timeout for CMake-registered regression tests.
- Add an optional
-t/TESTPL_TIMEOUTtimeout toregression/test.pl, implemented viafork+alarm+ process-group kill. - Update the test runner call chain to pass the timeout through to execution.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| regression/test.pl | Adds a per-test timeout option and enforces it by killing the test process group on timeout. |
| regression/CMakeLists.txt | Adds TIMEOUT 1200 to CTest properties for regression tests. |
| regression/libcprover-cpp/CMakeLists.txt | Adds TIMEOUT 1200 to CTest properties for regression tests in libcprover-cpp. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
560c68e to
be53558
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8848 +/- ##
========================================
Coverage 80.01% 80.01%
========================================
Files 1700 1700
Lines 188338 188338
Branches 73 73
========================================
+ Hits 150695 150699 +4
+ Misses 37643 37639 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7291566 to
0614468
Compare
Add TIMEOUT 1200 to the set_tests_properties call in both copies of the add_test_pl_profile macro (regression/CMakeLists.txt and regression/libcprover-cpp/CMakeLists.txt). This ensures CTest will kill and report as failed any regression test that exceeds 20 minutes, preventing CI jobs from hanging indefinitely on tests that time out. Co-authored-by: Kiro (autonomous agent) <kiro-agent@users.noreply.github.com>
Fork the test command into a new process group and use alarm() to enforce an optional per-test timeout. When the timeout fires, kill the entire process group with SIGKILL and report the test as failed with a TIMEOUT marker. The timeout can be set via -t <secs> on the command line or via the TESTPL_TIMEOUT environment variable (command line takes precedence). Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
2c14354 to
cbf0862
Compare
Several JBMC and CBMC test suites exceed the 1200-second default timeout on macOS-14 ARM CI runners, which can be 1.5x slower than typical runs. Set per-suite timeouts based on ~2x the observed time on develop: contracts-dfcc-CORE 1800s ( 827s on develop) strings-smoke-tests-symex-driven-lazy-loading-CORE 1800s ( 766s on develop) jbmc-strings-CORE 1800s ( 937s on develop) book-examples-cprover-smt2-CORE 2400s ( 1074s on develop) jbmc-symex-driven-lazy-loading-CORE 4800s ( 2385s on develop) jbmc-strings-symex-driven-lazy-loading-CORE 10800s ( 5583s on develop) Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
peterschrammel
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add TIMEOUT 1200 to the set_tests_properties call in both copies of the add_test_pl_profile macro (regression/CMakeLists.txt and regression/libcprover-cpp/CMakeLists.txt). This ensures CTest will kill and report as failed any regression test that exceeds 20 minutes, preventing CI jobs from hanging indefinitely on tests that time out.