a2aproject / a2aproject/a2a-tck

[Bug]: Inconsistent blocking configuration in gRPC client vs. tests

オープン
#116 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
50
フォーク
40
平均マージ
7日 1時間
マージ済み PR(30日)
1

説明

### What happened?

In [GRPC client](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tck/transport/grpc_client.py#L411), blocking is explicitly set to true. However, in the [test](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tests/mandatory/protocol/test_a2a_v030_new_methods.py#L317-L321), the cancel function expects blocking to be false. Otherwise TaskState would be TaskStateCompleted which is immutable.

For the [JSON-RPC client](https://github.com/a2aproject/a2a-tck/blob/b03fefcae9767dad0e978e11573192f74252dfe3/tck/transport/jsonrpc_client.py#L283-L288), blocking isn't set (defaulting to false?), which matches the test expectation.

Why the gRPC client forced to blocking while the test expects non-blocking behavior?"

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Examine the gRPC client at tck/transport/grpc_client.py line 411 where blocking is set to True. Compare with the test in tests/mandatory/protocol/test_a2a_v030_new_methods.py lines 317-321, which expects blocking=False. Also review the JSON-RPC client at tck/transport/jsonrpc_client.py lines 283-288 for default behavior. Determine whether the gRPC client should align with the test's non-blocking expectation or if the test needs updating. Run the specific test to see the failure and understand the TaskState immutability constraint.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
grpc, python
領域
backend-api-design, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。