Skip to content

cvc-cli: cvc_cli_test's Windows discovery gets the 120 s timeout - #856

Merged
transfix merged 1 commit into
masterfrom
fix/cvc-cli-test-discovery-windows
Oct 28, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/cvc-cli-test-discovery-windows

Conversation

@transfix

@transfix transfix commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

package-windows can fail at build time, before any test runs, in cvc_cli_test's gtest discovery. #846's package-windows / libcvc-release-grpc (run 40594519229, job 122506916397) stopped with:

CMake Error at .../GoogleTestAddTests.cmake:132 (message):
  Error running test executable.
... -D TEST_TARGET=cvc_cli_test ... -D TEST_DISCOVERY_TIMEOUT=5 ...

Root cause

gtest_discover_tests runs POST_BUILD on Windows: it runs each freshly built test exe to list its cases, with a 5 s default timeout. Under the parallel CUDA build an exe can print its list and still be killed before it exits. src/cvc/tests/CMakeLists.txt already gives Windows a 120 s timeout for exactly this (its comment names state_write_policy_test and state_brick_manifest_test). src/cvc-cli/CMakeLists.txt copied the macOS half of that override and not the Windows half, so cvc_cli_test kept 5 s.

Fix

The Windows branch of the same override in src/cvc-cli/CMakeLists.txt: POST_BUILD, DISCOVERY_TIMEOUT 120. GoogleTest.cmake has no include guard, so cvc-cli's own include(GoogleTest) restores the original function before this macro wraps it, as the macOS branch already relies on.

Evidence

  • Local (Windows, Ninja, MSVC 14.44): a fresh configure gives cvc_cli_test's POST_BUILD step TEST_DISCOVERY_TIMEOUT=120, and discovery lists its 181 tests. Every one of the build's 222 discovery steps has 120, so the core tests' override is intact.
  • CI: the required checks passed. package-windows builds this target in every run. At merge, the three package-windows lanes of this branch's run 40616996681 were still running. The push run of all four fixes on ci/full/package-lanes (40615210987) was still queued. The failure was intermittent, so a green run shows the timeout took effect, not that a 5 s timeout can't recur elsewhere.

package-windows failed at build time when gtest_discover_tests listed
cvc_cli_test.exe under the parallel CUDA build: its POST_BUILD step ran with
TEST_DISCOVERY_TIMEOUT=5, and an exe killed before it exits leaves CMake an
empty test list ("Error running test executable."). src/cvc/tests already
gives Windows a 120 s timeout for this reason; src/cvc-cli gave it only to
macOS. Seen on #846's package-windows / libcvc-release-grpc (run
40594519229, job 122506916397).
@transfix
transfix merged commit c0e0b5a into master Oct 28, 2026
17 of 24 checks passed
@transfix
transfix deleted the fix/cvc-cli-test-discovery-windows branch October 29, 2026 20:53
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.

1 participant