Skip to content

ci(windows): run the CTest suite in Windows CI - #274

Merged
MisterVVP merged 5 commits into
mainfrom
ci/issue-260-windows-ctest
Oct 8, 2026
Merged

MisterVVP merged 5 commits into
mainfrom
ci/issue-260-windows-ctest

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Windows CI currently stops after building the SDK. Explicitly enable testing and run the existing CTest registrations after the Visual Studio build using RelWithDebInfo, --output-on-failure, and --no-tests=error.

Exclude exactly three Python script tests on Windows, with their reasons documented beside the command: sut_entrypoints_test needs a compilation database that Visual Studio does not generate; performance_runner_script_test executes POSIX scripts directly; run_examples_script_test uses POSIX paths and executable shell-script fixtures. Every registered C++ test remains selected. The vcpkg caches, build configuration, and Linux/macOS jobs are unchanged.

Fix the portability failures exposed by the first Windows CTest run:

  • Select the disabled-libcurl test only when libcurl is absent, and add a portable request validation test for enabled builds.
  • Retain the fake client transport's shutdown flag independently of its lifetime, avoiding a use-after-free assertion after A2AClient::Destroy().
  • Initialize and retain the gRPC runtime through a public channel factory before constructing standalone server contexts in unit tests. This avoids the uninitialized core codegen interface in the older static Windows gRPC build.
  • Restore blocking mode on accepted Winsock HTTP sockets before passing them to the blocking adapter. Strengthen the HTTP persistence regression with sequential reuse and confirmed acceptance before shutdown, and recognize Windows connection-aborted errors only when closure is expected. Drain the SUT output while waiting for shutdown, including its output in any timeout failure. Poll Winsock readability with an explicit shutdown flag so accepted idle connections exit before their worker threads are joined; socket closure remains owned by the worker.

Closes #260.

Authorship and AI usage

  • Contains substantive content written by a human
  • Contains substantive content generated by an AI agent

Implementation generated by OpenAI Codex.

Testing

  • ./scripts/run_clang_format.sh and the exact CI clang-format --dry-run --Werror mechanism passed.
  • ./scripts/run_clang_tidy.sh --profile split build, invoked by ./scripts/verify_changes.sh, passed (exit 0). Each translation unit was checked with native clang-tidy using unchanged compile commands and configurations, with two local worker processes.
  • Subsequent validation checked the changed SUT and client-test translation units with native clang-tidy and reused prior successful results only for unchanged translation units after matching source, header, build-input, compile-command, configuration, and tool hashes.
  • ./scripts/verify_changes.sh passed (exit 0), including all 578 CTest registrations.
  • Actionlint passed; YAML comparison confirmed all non-Windows jobs are unchanged. CTest selection inspection confirmed exactly the three documented exclusions, retaining both cancellation watcher implementations.
  • The HTTP persistence regression passed ten consecutive runs, and the disabled-libcurl test passed in a separate A2A_ENABLE_LIBCURL=OFF build.
  • Performance smoke for gRPC and HTTP+JSON with the in-memory store completed with zero errors.
  • The CI TCK start/run/stop flow passed for both in-memory and PostgreSQL stores across gRPC, JSON-RPC, and HTTP+JSON: 249 tests passed and 16 skipped per backend. The upstream report lists 21 MUST requirements without test fixtures and four conditionally skipped MUST requirements, giving 80.9% MUST coverage; this is not a claim of 100% mandatory compliance.
  • The TCK validation environment's PyPI dependency audit found no known vulnerabilities; the local a2a-tck source package could not be audited through PyPI. SDK dependency manifests are unchanged.

Native Windows validation passed all 521 CTest registrations, including all 518 C++ tests and the HTTP persistence/shutdown regression. Every job in that CI run passed, including Linux build/lint/test, macOS, sanitizers, coverage, performance, and interoperability. Local Linux validation passed all 578 tests; the corrected client destruction regression also passed 100 consecutive runs.

Checklist

  • ./scripts/verify_changes.sh passed locally
  • Docs updated if behavior changed (Windows exclusions documented inline)

@MisterVVP MisterVVP added the AI agent AI agent contribution label Oct 7, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Oct 7, 2026
@MisterVVP MisterVVP added this to the v0.5.1 milestone Oct 7, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T06:13:19.590892Z d85250c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: d85250cd44

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP
MisterVVP marked this pull request as ready for review October 8, 2026 06:15
@MisterVVP
MisterVVP merged commit ab08606 into main Oct 8, 2026
20 checks passed
@MisterVVP
MisterVVP deleted the ci/issue-260-windows-ctest branch October 8, 2026 06:22
@MisterVVP MisterVVP removed this from the v0.5.1 milestone Oct 8, 2026
@MisterVVP MisterVVP mentioned this pull request Oct 8, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant