-
Notifications
You must be signed in to change notification settings - Fork 340
Merge main into 1.0-dev #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+3,318
−569
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fc31d03
fix: Ensure metadata propagation for `Task` `ToProto` and `FromProto`…
sokoliva dbc73e8
chore(main): release 0.3.16 (#562)
a2a-bot 53bbf7a
feat(client): allow specifying `history_length` via call-site `Messag…
TadakiAsechi 7e121e0
chore(main): release 0.3.17 (#565)
a2a-bot 0ce239e
fix: return updated `agent_card` in `JsonRpcTransport.get_card()` (#552)
ShishirRmc 213d9f8
chore(main): release 0.3.18 (#567)
a2a-bot 847f18e
fix(jsonrpc, rest): `extensions` support in `get_card` methods in `js…
sokoliva 3bfbea9
chore(main): release 0.3.19 (#568)
a2a-bot 7ea7475
fix: Improve streaming errors handling (#576)
lkawka 174d58d
chore(main): release 0.3.20 (#577)
a2a-bot 5fea21f
docs: Fixing typos (#586)
didier-durand 8a76730
feat: Implement Agent Card Signing and Verification per Spec (#581)
sokoliva 090ca9c
chore: Fixing typos (final round) (#588)
didier-durand 03fa4c2
chore(main): release 0.3.21 (#587)
a2a-bot 04bcafc
feat: Add custom ID generators to SimpleRequestContextBuilder (#594)
chenweiyang0204 e12ca42
test: adding 2 additional tests to user.py (#595)
didier-durand 3deecc4
test: adding 21 tests for client/card_resolver.py (#592)
didier-durand 6fa6a6c
refactor: Move agent card signature verification into `A2ACardResolve…
sokoliva 86c6759
chore(main): release 0.3.22 (#599)
a2a-bot df78a94
test: adding 13 tests for id_generator.py (#591)
didier-durand cb7cdb3
chore(deps): bump the github-actions group across 1 directory with 4 …
dependabot[bot] fdbf22f
ci: disable automatic PRs for spec updates (#628)
ishymko 1b361b5
ci: fix not committed uv.lock and use uv sync --locked (#637)
ishymko 6e26ae1
ci: run mandatory and capabilities TCK tests for JSON-RPC transport (…
ishymko c7a3de8
chore(deps): bump virtualenv from 20.32.0 to 20.36.1 (#634)
dependabot[bot] 2698cc0
docs: Update README to include Code Wiki badge
holtskinner 3dcb847
fix: do not crash on SSE comment line (#636)
ishymko 0cf670d
ci: Change uv dependabot to group all updates into single PR
holtskinner 12fd75c
chore(deps): bump the all group with 27 updates (#642)
dependabot[bot] 72216b9
feat: support disabling OTel instrumentation via env var (#611)
vinoo999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| name: Run TCK | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| paths-ignore: | ||
| - '**.md' | ||
| - 'LICENSE' | ||
| - '.github/CODEOWNERS' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| TCK_VERSION: 0.3.0.beta3 | ||
| SUT_BASE_URL: http://localhost:41241 | ||
| SUT_JSONRPC_URL: http://localhost:41241/a2a/jsonrpc | ||
| UV_SYSTEM_PYTHON: 1 | ||
| TCK_STREAMING_TIMEOUT: 5.0 | ||
|
|
||
| concurrency: | ||
| group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| tck-test: | ||
| name: Run TCK with Python ${{ matrix.python-version }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ['3.10', '3.13'] | ||
| steps: | ||
| - name: Checkout a2a-python | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "uv.lock" | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| run: uv python install ${{ matrix.python-version }} | ||
|
|
||
| - name: Install Dependencies | ||
| run: uv sync --locked --all-extras | ||
|
|
||
| - name: Checkout a2a-tck | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| repository: a2aproject/a2a-tck | ||
| path: tck/a2a-tck | ||
| ref: ${{ env.TCK_VERSION }} | ||
|
|
||
| - name: Start SUT | ||
| run: | | ||
| uv run tck/sut_agent.py & | ||
|
|
||
| - name: Wait for SUT to start | ||
| run: | | ||
| URL="${{ env.SUT_BASE_URL }}/.well-known/agent-card.json" | ||
| EXPECTED_STATUS=200 | ||
| TIMEOUT=120 | ||
| RETRY_INTERVAL=2 | ||
| START_TIME=$(date +%s) | ||
|
|
||
| while true; do | ||
| CURRENT_TIME=$(date +%s) | ||
| ELAPSED_TIME=$((CURRENT_TIME - START_TIME)) | ||
|
|
||
| if [ "$ELAPSED_TIME" -ge "$TIMEOUT" ]; then | ||
| echo "❌ Timeout: Server did not respond with status $EXPECTED_STATUS within $TIMEOUT seconds." | ||
| exit 1 | ||
| fi | ||
|
|
||
| HTTP_STATUS=$(curl --output /dev/null --silent --write-out "%{http_code}" "$URL") || true | ||
| echo "STATUS: ${HTTP_STATUS}" | ||
|
|
||
| if [ "$HTTP_STATUS" -eq "$EXPECTED_STATUS" ]; then | ||
| echo "✅ Server is up! Received status $HTTP_STATUS after $ELAPSED_TIME seconds." | ||
| break; | ||
| fi | ||
|
|
||
| echo "⏳ Server not ready (status: $HTTP_STATUS). Retrying in $RETRY_INTERVAL seconds..." | ||
| sleep "$RETRY_INTERVAL" | ||
| done | ||
|
|
||
| - name: Run TCK (mandatory) | ||
| id: run-tck-mandatory | ||
| run: | | ||
| uv run run_tck.py --sut-url ${{ env.SUT_JSONRPC_URL }} --category mandatory --transports jsonrpc | ||
| working-directory: tck/a2a-tck | ||
|
|
||
| - name: Run TCK (capabilities) | ||
| id: run-tck-capabilities | ||
| run: | | ||
| uv run run_tck.py --sut-url ${{ env.SUT_JSONRPC_URL }} --category capabilities --transports jsonrpc | ||
| working-directory: tck/a2a-tck | ||
|
|
||
| - name: Stop SUT | ||
| if: always() | ||
| run: | | ||
| pkill -f sut_agent.py || true | ||
| sleep 2 |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| --- | ||
| name: Update A2A Schema from Specification | ||
| on: | ||
| repository_dispatch: | ||
| types: [a2a_json_update] | ||
| # TODO (https://github.com/a2aproject/a2a-python/issues/559): bring back once types are migrated, currently it generates many broken PRs | ||
| # repository_dispatch: | ||
| # types: [a2a_json_update] | ||
| workflow_dispatch: | ||
| jobs: | ||
| generate_and_pr: | ||
|
|
@@ -12,7 +13,7 @@ jobs: | |
| pull-requests: write | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| uses: actions/checkout@v6 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
|
|
@@ -22,7 +23,7 @@ jobs: | |
| - name: Configure uv shell | ||
| run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
| - name: Install dependencies (datamodel-code-generator) | ||
| run: uv sync | ||
| run: uv sync --locked | ||
| - name: Define output file variable | ||
| id: vars | ||
| run: | | ||
|
|
@@ -42,7 +43,7 @@ jobs: | |
| uv run scripts/grpc_gen_post_processor.py | ||
| echo "Buf generate finished." | ||
| - name: Create Pull Request with Updates | ||
| uses: peter-evans/create-pull-request@v7 | ||
| uses: peter-evans/create-pull-request@v8 | ||
| with: | ||
| token: ${{ secrets.A2A_BOT_PAT }} | ||
| committer: a2a-bot <[email protected]> | ||
|
|
||
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change adds a comma for better readability, which is a good grammatical correction.