Repository navigation
Add configurable timeouts for generated tests - #63
Conversation
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
left a comment
There was a problem hiding this comment.
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).
Summary
cpp_library_setup(TEST_TIMEOUT seconds).TIMEOUTproperties to unit tests, examples, compile-fail checks, and in-source runners. Preserve explicit per-test overrides after setup and leave manually registered tests unchanged.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.txtcmake -P tests/install/test_provider_merge.cmakecmake -P tests/install/test_nested_install.cmakecmake -P tests/install/test_package_ci.cmakecmake -P tests/setup/test_target_type.cmakecmake -P tests/setup/test_header_checks.cmakecmake -P tests/setup/test_source_testing.cmakecmake -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.cmakecmake -P tests/setup/test_install_dirs.cmakecmake -P tests/setup/test_runtime_dlls.cmakecmake -P tests/setup/test_setup_version_resolution.cmakecmake -P tests/docs/test_docs.cmakecmake -DCPP_LIBRARY_TEST_CLANGD=ON -DCPP_LIBRARY_TEST_COMPILER_ID=AppleClang -P tests/setup/test_clangd.cmakegit diff --checkAll 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