Repository navigation
cvc-cli: cvc_cli_test's Windows discovery gets the 120 s timeout - #856
Merged
Merged
Conversation
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).
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.
package-windowscan fail at build time, before any test runs, incvc_cli_test's gtest discovery. #846'spackage-windows / libcvc-release-grpc(run 40594519229, job 122506916397) stopped with:Root cause
gtest_discover_testsruns 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.txtalready gives Windows a 120 s timeout for exactly this (its comment namesstate_write_policy_testandstate_brick_manifest_test).src/cvc-cli/CMakeLists.txtcopied the macOS half of that override and not the Windows half, socvc_cli_testkept 5 s.Fix
The Windows branch of the same override in
src/cvc-cli/CMakeLists.txt: POST_BUILD,DISCOVERY_TIMEOUT 120.GoogleTest.cmakehas no include guard, so cvc-cli's owninclude(GoogleTest)restores the original function before this macro wraps it, as the macOS branch already relies on.Evidence
cvc_cli_test's POST_BUILD stepTEST_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/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.