Skip to content

Separate conformance and performance SUT entry points - #259

Closed
MisterVVP wants to merge 1 commit into
mainfrom
dev-refactor-sut-into-conformance-and-performance-binaries
Closed

MisterVVP wants to merge 1 commit into
mainfrom
dev-refactor-sut-into-conformance-and-performance-binaries

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Decouple protocol-conformance and performance instrumentation so the conformance SUT cannot emit performance diagnostics or depend on subscription-diagnostics build flags.
  • Preserve a single shared runtime implementation so endpoint, transport, store, and lifecycle behavior remain identical between conformance and performance builds.
  • Provide a dedicated performance entry point that owns all performance counters and optional subscription diagnostics used by the wire-level performance runner.

Description

  • Extracted the shared SUT runtime into tests/sut/sut_runtime.{h,cpp} and made it a static library target sut_runtime used by both entry points.
  • Reduced tck_sut to a thin conformance-only executable that delegates to RunSutRuntime and contains no HTTP/subscription diagnostics, and added performance_sut as the instrumented entry point that enables diagnostics and optional subscription-diagnostics emission.
  • Guarded HTTP and subscription diagnostics behind runtime options and A2A_ENABLE_SUBSCRIPTION_DIAGNOSTICS so only performance_sut emits performance output; updated TckHttpServer to accept an enable_diagnostics flag.
  • Updated build, test, runner, CI, and docs: CMake now builds sut_runtime, tck_sut, and performance_sut; the performance runner uses performance_sut (via A2A_PERF_SUT); tests and docs were updated to reflect the split, and an entrypoint regression test (tests/scripts/sut_entrypoints_test.py) was added to prevent silent drift.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Oct 2, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Oct 2, 2026
@MisterVVP MisterVVP added AI agent AI agent contribution refactoring Constant technical improvements which are not necessarily related to any issue. maintenance and removed codex Automatic label added by codex agent. Should not be used labels Oct 2, 2026
@MisterVVP MisterVVP linked an issue Oct 2, 2026 that may be closed by this pull request
14 tasks
@MisterVVP
MisterVVP force-pushed the dev-refactor-sut-into-conformance-and-performance-binaries branch from ce86152 to 67255c5 Compare October 2, 2026 06:07
@MisterVVP
MisterVVP marked this pull request as ready for review October 2, 2026 07:42
@MisterVVP MisterVVP closed this Oct 2, 2026
@MisterVVP
MisterVVP deleted the dev-refactor-sut-into-conformance-and-performance-binaries branch October 5, 2026 06:16
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 refactoring Constant technical improvements which are not necessarily related to any issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor]: Separate conformance TCK SUT from performance diagnostics SUT

1 participant