Skip to content

Add configurable timeouts for generated tests - #63

Merged
sean-parent merged 1 commit into
mainfrom
issue-56-test-timeouts
Nov 21, 2026
Merged

sean-parent merged 1 commit into
mainfrom
issue-56-test-timeouts

Conversation

@sean-parent

@sean-parent sean-parent commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Fixes Apply a finite default timeout to generated CTest tests #56. Give every toolkit-generated CTest test a 120-second default timeout, configurable through cpp_library_setup(TEST_TIMEOUT seconds).
  • Apply native TIMEOUT properties to unit tests, examples, compile-fail checks, and in-source runners. Preserve explicit per-test overrides after setup and leave manually registered tests unchanged.
  • Reject missing, noninteger, zero, negative, and oversized limits; accept whole seconds from 1 through 2147483647.
  • Document configuration and exceptions, add Linux/Windows regression coverage, and include the uncommitted Scout knowledge updates.

Test plan

Fresh local validation on macOS arm64 with CMake 4.5.1, Ninja 1.13.2, AppleClang/clangd 21, and Doxygen 1.18.0:

  • cmake -P tests/install/CMakeLists.txt
  • cmake -P tests/install/test_provider_merge.cmake
  • cmake -P tests/install/test_nested_install.cmake
  • cmake -P tests/install/test_package_ci.cmake
  • cmake -P tests/setup/test_target_type.cmake
  • cmake -P tests/setup/test_header_checks.cmake
  • cmake -P tests/setup/test_source_testing.cmake
  • cmake -P tests/setup/test_timeouts.cmake — effective CTest/preset JSON, default/project/per-test limits, header-only setup, invalid values and overflow, and real one-second runtime and compile-fail timeout failures.
  • cmake -P tests/setup/test_version_override.cmake
  • cmake -P tests/setup/test_install_dirs.cmake
  • cmake -P tests/setup/test_runtime_dlls.cmake
  • cmake -P tests/setup/test_setup_version_resolution.cmake
  • cmake -P tests/docs/test_docs.cmake
  • cmake -DCPP_LIBRARY_TEST_CLANGD=ON -DCPP_LIBRARY_TEST_COMPILER_ID=AppleClang -P tests/setup/test_clangd.cmake
  • git diff --check
  • GitHub CI: all seven jobs succeeded, including Windows consumers, clangd on Linux/Windows/macOS, generated-consumer integration, and documentation.

All 14 native regression scripts passed. The dependency harness retains its existing manual-only fatal-provider case, and nested/no-testing target fixtures intentionally register no runtime tests. Windows DLL behavior is covered by the Windows CI job.

Generated with GitHub Copilot CLI

Default generated CTest tests to 120 seconds, validate TEST_TIMEOUT overrides, and preserve native per-test exceptions. Cover effective metadata and real runtime/build termination in regressions.

Fixes #56

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@sean-parent sean-parent left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Talos pre-flight review

Verdict: no verified findings. Reviewed 1b4d3ebece50d4fd84cf8a7e1d319b6333d0d54b against main (merge base 1600ce37a67360f2daa8fa901a5199d8b51d337e).

Files Reviewers Candidates → validated → accepted Shown Tests
8 6 personas, 3 bounded coverage supplements, challenge 0 → 0 → 0 0 of 0 All 14 repository-native regression scripts passed locally on macOS, plus git diff --check

Accepted: 0. Inline comments posted: 0. Unanchored findings: 0. Overflow: 0. Recurrences: 0; there were no existing review findings to duplicate. This is a COMMENT review, not an approval.

The local scripts covered dependency mapping/provider merging, nested installation, package artifacts, target types/threading, public headers, in-source testing, timeout JSON/preset metadata and actual termination, versions, install directories, runtime deployment, scaffolding, Doxygen rendering, and fresh clangd navigation. The dependency harness retains its existing manual-only fatal-provider case; nested/no-testing fixtures intentionally register no runtime tests. Windows-specific behavior is left to CI.

Coverage/verification limitations: architecture, operations and documentation initially reported partial diff reads; bounded test-only supplemental passes completed those missing ranges. The architecture supplement did not reopen the GitHub instruction artifact or Scout leads (the original pass read the instructions; Scout had no cross-file leads). Challenge read the full diff and project rules but did not load GitHub custom instructions as operative guidance for the empty candidate set. Scout used conservative whole-file mapping for six changed files; its evidence does not establish precise symbol-level coverage there.

Project context: base-revision CLAUDE.md plus one repository-wide .github/copilot-instructions.md artifact (all eight paths matched, no helper diagnostics); no OpenSpec changes found.

Persona routing: static roster (DCAP routing off; rerun with --dcap to enable).

Org knowledge: off (rerun with --knowledge).

Scout

Used: risk LOW, evidence HIGH, status COMPLETE (scout 0.9.135, 1s).
Cross-file leads given to reviewers: 0 changed symbol(s) with uses outside the diff, 0 new value(s) not handled everywhere, 0 possibly unused symbol(s).

Scout also lists 4 Should Run test(s).

@sean-parent
sean-parent merged commit 4f60491 into main Nov 21, 2026
7 checks passed
@sean-parent
sean-parent deleted the issue-56-test-timeouts branch November 21, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply a finite default timeout to generated CTest tests

1 participant