What
The Windows CI job intermittently fails during build-time gtest test discovery: ParseTestList.cmake:96 string sub-command JSON failed parsing json string while running the *_discovery.cmake step (gtest_discover_tests post-build). Latest hit: the post-merge main run of e3eb4c5 (p8-s2, 2026-08-02) on dsl_stdlib_test; the same code passed on the next runs. Earlier overnight batches hit sibling discovery flakes on macOS. It is transient but recurring, and it turns green merges red.
Fix options
- Switch
gtest_discover_tests to DISCOVERY_MODE PRE_TEST in the shared test helper (discovery moves from build time to ctest time, which retries cleanly and tolerates slow first-run binaries), or
- raise
DISCOVERY_TIMEOUT substantially on Windows, or both.
Done when
What
The Windows CI job intermittently fails during build-time gtest test discovery:
ParseTestList.cmake:96 string sub-command JSON failed parsing json stringwhile running the*_discovery.cmakestep (gtest_discover_testspost-build). Latest hit: the post-mergemainrun of e3eb4c5 (p8-s2, 2026-08-02) ondsl_stdlib_test; the same code passed on the next runs. Earlier overnight batches hit sibling discovery flakes on macOS. It is transient but recurring, and it turns green merges red.Fix options
gtest_discover_teststoDISCOVERY_MODE PRE_TESTin the shared test helper (discovery moves from build time to ctest time, which retries cleanly and tolerates slow first-run binaries), orDISCOVERY_TIMEOUTsubstantially on Windows, or both.Done when