Skip to content

fix: Don't generate empty metadata change events in VertexTaskStore#974

Merged
gaborfeher merged 2 commits intoa2aproject:1.0-devfrom
gaborfeher:gaborfeher-md2-1.0
Apr 16, 2026
Merged

fix: Don't generate empty metadata change events in VertexTaskStore#974
gaborfeher merged 2 commits intoa2aproject:1.0-devfrom
gaborfeher:gaborfeher-md2-1.0

Conversation

@gaborfeher
Copy link
Copy Markdown
Collaborator

For #802

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the VertexTaskStore to prevent generating metadata change events when metadata transitions between empty values, such as {} and None. While the logic change is sound, the newly added test case contains several critical issues: it misses the required ServerCallContext argument in method calls, incorrectly uses Pydantic-style methods on Protobuf objects, and attempts invalid assignments to Protobuf map fields. A code suggestion has been provided to align the test with the project's Protobuf-based architecture.

Comment thread tests/contrib/tasks/test_vertex_task_store.py
@github-actions
Copy link
Copy Markdown

🧪 Code Coverage (vs 1.0-dev)

⬇️ Download Full Report

Base PR Delta
src/a2a/contrib/tasks/vertex_task_store.py 90.98% 94.74% 🟢 +3.76%
Total 92.53% 92.59% 🟢 +0.06%

Generated by coverage-comment.yml

@gaborfeher gaborfeher requested a review from ishymko April 16, 2026 11:09
@gaborfeher gaborfeher marked this pull request as ready for review April 16, 2026 11:09
@gaborfeher gaborfeher requested a review from a team as a code owner April 16, 2026 11:09
@gaborfeher gaborfeher merged commit b58b03e into a2aproject:1.0-dev Apr 16, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants