Skip to content

ci: harden gtest test discovery against the Windows ParseTestList JSON flake #128

Description

@JArmandoAnaya

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

  • Discovery settings hardened in the single CMake helper all test targets use
  • A note in the CI docs on how to recognize the flake if it ever recurs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions