Skip to content

[Maintenance]: Run the C++ test suite on Windows CI #260

Closed

Description

@MisterVVP

Proposal

Context

The current Windows CI job configures and builds the SDK with Visual Studio 2022, but it does not execute the CTest suite. This leaves Windows-specific runtime, lifecycle, networking, cancellation, and portability regressions detectable only on Linux/macOS or through ad-hoc local testing.

A patch release is a good place to close this validation gap without changing public SDK behavior.

Goal

Run all applicable deterministic C++ tests on Windows CI after a successful build, and make platform-specific exclusions explicit rather than silently skipping test execution on Windows.

Scope

  • Extend the existing windows-build job in .github/workflows/ci.yml to execute CTest using the configured Visual Studio build configuration.
  • Prefer the normal test registration already produced by CMake rather than creating a separate Windows-only test harness.
  • Start with all tests that are supported without external services or Linux-only facilities.
  • If a test is genuinely unsupported on Windows:
    • document why;
    • exclude it narrowly by test name or label;
    • keep the exclusion close to the workflow/test definition;
    • avoid broad regexes that hide unrelated failures.
  • Ensure failures surface normal --output-on-failure diagnostics in the workflow log.
  • Preserve the current vcpkg cache and build configuration.

A typical invocation should be equivalent to:

ctest --test-dir build -C RelWithDebInfo --output-on-failure

The exact configuration name should match the existing Windows build step.

Non-goals

  • Adding new SDK features.
  • Reworking the Windows dependency strategy.
  • Enabling PostgreSQL-backed tests on Windows as part of this issue unless they already work with the current manifest and service setup.
  • Implementing the Windows event-driven libcurl backend tracked by [Perf]: add event-driven Windows readiness backend for libcurl streaming #232.
  • Weakening or removing existing Linux/macOS test coverage.

Acceptance criteria

  • The Windows CI job executes CTest after building the SDK.
  • Core unit tests run on Windows rather than only compiling.
  • Client/server lifecycle and cancellation tests that are platform portable execute on Windows.
  • Any Windows-specific exclusions are narrow and documented.
  • Test failures produce useful --output-on-failure diagnostics.
  • No public SDK API changes are introduced.
  • The existing Windows build remains green.
  • Linux and macOS CI behavior is unchanged.
  • AGENTS.md validation requirements remain satisfied for touched code/workflows.

Motivation

The repository already treats Windows as a supported build target. A successful compile is necessary but not sufficient for concurrency-heavy networking code. Running the existing deterministic tests on Windows gives substantially better regression protection for a low-risk patch-release change.

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

    enhancementmaintenance

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions