Repository navigation
feat(release): finalize v0.6.0 packaging and reduce async overhead - #331
Merged
MisterVVP merged 5 commits intoNov 12, 2026
Merged
Conversation
Update release metadata, add the optional vcpkg Asio feature, exercise clean installed/FetchContent consumers, and document async opt-in and migration. Add cross-platform package CI and reproducible integrated regression evidence. Fix a completion-timer stall exposed by deadline validation and extend tests. Validation: verify_changes.sh passed (1,175 tests passed, 3 intentional skips), including full formatting and clang-tidy. Linux default/Asio vcpkg consumers, 88 ASan/UBSan checks, 398 Clang TSan checks, and mdBook passed. The integrated matrix and confirmation runs measured 419,840 operations with zero errors. Upstream TCK remains at 242 passed, 4 failed and 17 skipped. The user explicitly authorized committing and pushing despite the repository TCK gate. Windows/macOS execution, the network-blocked combined PostgreSQL overlay install, and C++ dependency vulnerability scanning remain pending and are documented. AI-assisted: substantive implementation, tests and documentation generated by Codex. Refs #328 and #329.
Remove the artifact directory, added workflows, release runner and extra regression tests. Keep a short results page and the existing CI checks. Pin vcpkg to the SDK commit containing the version bump and deadline fix, without source patches or version rewriting. Validation: verify_changes.sh passed (1,170 passed, 3 intentional skips), including full formatting and lint. Clean mdBook build, direct-source vcpkg install, five external examples and 54 zero-error performance smoke rows passed. AI-assisted: Codex. Refs #328 and #329.
This was
linked to
issues
Nov 11, 2026
Remove the release validation page and its references, restore the base benchmark source, and correct stale CMake release guidance. AI-assisted change.
Reuse the immutable ingress context when hooks do not modify metadata. Remove redundant completion allocations and move serialized SSE buffers instead of copying them. Share one allocation for blocking completions and their executor work guard. Keep one idle wait per HTTP connection and rearm it from the latest activity deadline. Cover active deadline refresh and owned metadata with two focused checks. AI-assisted change.
Use application/json for HTTP error envelopes and advertise the reference agent's support for retaining opaque message parts. Combine response headers with the first available SSE event within the output bound, retain separate bounded writes when necessary, and reuse JSON-RPC stream prefixes and Asio write allocations. Run ready in-memory SUT operations directly while preserving blocking adaptation for other stores. Cover ordered initial stream data under both output bounds and preserve raw input in the agent history. Document the remaining optional TCK media-type conflict without changing upstream tests. AI-assisted change.
MisterVVP
marked this pull request as ready for review
November 12, 2026 07:48
Owner
Author
|
@codex review this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Nov 12, 2026
MisterVVP
added a commit
that referenced
this pull request
Nov 12, 2026
…333) ## Summary Closes #332. Based on `release/v0.6.0`, including #331. The existing performance CI job compares sync and async servers for every supported in-memory wire workload. Paired throughput, latency, and resource tables keep raw runs in JSON/CSV instead of duplicating Markdown rows. PostgreSQL remains sync-only; its storage is unchanged. - **Both performance steps now run once**, and normal runner comparisons default to one pass. CI's broad matrix drops from **2,292 to 764 rows**; sustained coverage drops from **234 to 78**. Scenario coverage, concurrency levels, warmup, and three-second sustained measurements are preserved. Explicit local repetitions remain available for variance analysis. - Single-run summaries say so and show throughput ranges as `n/a`. Operation errors now print their scenario, transport, client/server modes, and counts before comparison validation returns failure. - Warm the measured clients through the selected API. GetTask and both ListTasks workloads support all four client/server combinations through bounded async callbacks; streaming retains its common observer API. Include 100 ms held subscriptions, measuring cancellation latency separately. - Retain the two small SDK changes: move parsed HTTP requests into handlers while preserving connection policy, and recycle gRPC write-acknowledgement allocations. ## Recalculated results Fresh **single-pass local measurements**, with two CPUs divided equally between driver and server; these are observations, not variance estimates. The SDK code is unchanged by this follow-up. - Broad in-memory matrix: **480 rows, 480,000 operations, zero errors**. - Sustained matrix: **78 rows (72 wire), 1,617,371 wire operations, 36 complete server-mode pairs, zero errors**. GetTask at concurrency 64, operations/second: | Transport | Sync client / sync server | Sync client / async server | Async client / sync server | Async client / async server | Fully async / fully sync | | --- | ---: | ---: | ---: | ---: | ---: | | grpc | 23,756 | 26,746 | 24,339 | 32,788 | 1.38× | | http_json | 12,356 | 14,168 | 13,707 | 15,071 | 1.22× | | jsonrpc | 6,675 | 7,730 | 6,609 | 7,608 | 1.14× | Async is useful for concurrent unary throughput and thread use, but performance work is **not finished**: - At concurrency 1, fully async GetTask reaches **0.68× / 0.73× / 0.78×** fully synchronous throughput for gRPC / HTTP+JSON / JSON-RPC. The median latency cost is approximately **47 / 73 / 84 microseconds** on these immediately ready in-memory calls. - At concurrency 64, GetTask client threads fall from **73 to 16** for gRPC and **69 to 10** for HTTP+JSON/JSON-RPC; server threads fall from **72–73 to 21–27**. - Finite-stream async/sync server ratios are **1.00× / 0.99× / 0.99×**: essentially parity. The gRPC client still uses a blocking reader thread per stream, and the driver waits per operation; its process samples **137 threads at concurrency 64** with either server mode. Native callback-driven gRPC streaming and a callback-driven stream driver are the clearest next targets, followed by scheduling/deadline-wakeup overhead. - Across all 49 broad workloads using the existing synchronous client, the median server ratio is **0.79× at concurrency 1** and **1.09× at concurrency 64**. This is a workload comparison, not a universal SDK speedup. The previous CI performance step took about **45 minutes** for three broad passes and failed on **one async HTTP+JSON operation at concurrency 64**; sustained CI measurements were consequently skipped. The new local run did not reproduce that failure. Errors remain fatal and invalidate ratios; a clean new CI run is still needed. The row reduction removes roughly two-thirds of matrix execution, not dependency-build time. Updated reports remain in the existing job summary/artifact (`normal` and `normal/sustained`); no generated reports are committed. ## Validation - `./scripts/verify_changes.sh`: **passed (exit 0)**; **1,175 tests passed, three skipped**, and all **188 source/test/example lint checks passed**. - **57 runner tests**, including single-pass defaults/reporting, explicit repetition overrides, detailed operation errors, four client/server combinations, and held subscriptions. - Mandatory TCK: **215 passed, 14 skipped, 34 deselected**, zero failures; checkout unchanged. Required performance smoke: **54 rows, zero errors**. - Exact CI formatting, mdBook, and actionlint: **passed**. - Dependencies are unchanged. OSV scanning remains unverified because its API returns HTTP 403. - The existing TCK `HTTP_JSON-SVC-001` SHOULD Content-Type conflict remains tracked in #328; the previous CI run still failed that check. ## Authorship and AI usage - [ ] Contains substantive content written by a human - [x] Contains substantive content generated by an AI agent ## Checklist - [x] `./scripts/verify_changes.sh` passed locally - [x] Docs updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Finalize SDK v0.6.0 metadata, the optional vcpkg
asiofeature, consumer setup, dependency requirements, and migration guidance. Retain the completion-timer fix for expired calls awaiting callback cleanup.HTTP+JSON errors now use
application/json. The generic conformance agent advertises*/*input support and retains opaque message parts without decoding them, satisfying the current mandatory TCK expectations without changing upstream tests.Reduce async overhead by combining response headers and the first available SSE event within the output bound, caching each JSON-RPC stream prefix, and recycling Asio write allocations. Ready in-memory SUT operations run directly on the coroutine executor; other stores retain bounded blocking adaptation. Earlier changes also remove redundant completion allocations and metadata copies and reuse HTTP idle waits. PostgreSQL storage is unchanged.
Refs #328.
Authorship and AI usage
Testing
./scripts/verify_changes.sh: 1,173 tests passed, three intentional skips; full formatting and clang-tidy passed.104a7b4ae0d83f65c075e3793e322953a830eaba: mandatory selection passed with 215 passed, 14 skipped, 34 deselected, no failures.HTTP_JSON-SVC-001SHOULD check expectsapplication/a2a+jsonwhere the mandatoryHTTP_JSON-ERR-001check requiresapplication/json. The SDK follows the mandatory expectation; the full suite's nonzero exit status remains visible.Checklist
./scripts/verify_changes.shpassed locally