Skip to content

ci(macos): run CTest and fix portability regressions - #276

Merged
MisterVVP merged 2 commits into
mainfrom
issue-275-macos-ctest
Oct 8, 2026
Merged

MisterVVP merged 2 commits into
mainfrom
issue-275-macos-ctest

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

macOS CI builds the tests but does not execute them. Explicitly enable A2A_ENABLE_TESTING=ON and run the existing CTest suite after the build with --output-on-failure and --no-tests=error. All registered C++ and available Python-backed tests remain selected. Preserve macos-14, Homebrew dependencies, Ninja, and RelWithDebInfo.

Fix the portability failures exposed by test execution: restore blocking mode on accepted SUT HTTP sockets, which inherit non-blocking mode on BSD and Winsock; and use the existing duplicate-field validator to preserve flat JSON-RPC alias rejection across protobuf versions. Strengthen unit coverage for alias order and quoted values, assert rejected requests are never dispatched, and add a functional regression that checks rejection before store lookup. The HTTP persistence regression covers sequential reuse, pipelining, fragmentation, concurrency, and idle shutdown. No public API changes or test exclusions are introduced; Linux and Windows workflow definitions are unchanged.

Closes #275.

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/verify_changes.sh passed (exit 0), including all 579 Linux CTest registrations. ./scripts/run_clang_format.sh, the exact CI formatting check, and ./scripts/run_clang_tidy.sh build passed. Native clang-tidy initially checked all 120 translation units with unchanged compiler commands and profiles using three local workers. All four changed translation units were checked again with native clang-tidy; successful results for unchanged translation units were reused only after matching source, header/generated inputs, build configuration, included implementation dependencies, and tool inputs.
  • Actionlint and workflow scope assertions passed. CTest probes confirmed that an empty suite fails and a failing test produces diagnostics.
  • Rebuilt the affected performance binaries and reran the gRPC/HTTP+JSON smoke with the in-memory store: 54 rows, zero errors.
  • Repeated the CI-equivalent TCK start/mandatory-suite/stop flow against the updated server and SUT across all three transports: 249 passed, 16 skipped, and MUST compatibility unchanged at 80.9%. The isolated TCK environment's PyPI audit found no known vulnerabilities; the editable upstream TCK source package was excluded from registry auditing. SDK dependency manifests are unchanged.
  • GitHub TCK CI passed with both in-memory and PostgreSQL stores: each reported 249 passed and 16 skipped, with MUST compatibility unchanged at 80.9%.
  • Native macOS CI passed all 568 CTest registrations, including the alias regressions and HTTP persistence/shutdown test. No tests were excluded.

Checklist

  • ./scripts/verify_changes.sh passed locally
  • Portability decisions documented beside the implementation

@MisterVVP MisterVVP added the AI agent AI agent contribution label Oct 8, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP changed the title ci(macos): run the CTest suite ci(macos): run CTest and fix portability regressions Oct 8, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

This is OK, however we should consider switching to non-blocking I/O across all SUTs on all platforms in a separate PR.

@MisterVVP MisterVVP self-assigned this Oct 8, 2026
@MisterVVP MisterVVP added this to the v0.5.1 milestone Oct 8, 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-08T08:09:13.419876Z 0638017 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. Swish!

Reviewed commit: 0638017d74

ℹ️ 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 removed this from the v0.5.1 milestone Oct 8, 2026
@MisterVVP
MisterVVP marked this pull request as ready for review October 8, 2026 08:24
@MisterVVP
MisterVVP merged commit 53032d8 into main Oct 8, 2026
20 checks passed
@MisterVVP
MisterVVP deleted the issue-275-macos-ctest branch October 8, 2026 08:25
@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 macOS CI

1 participant