fix: binary data support is not tested properly.#135
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a confusing test failure message in the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
5eaa124 to
0329562
Compare
There was a problem hiding this comment.
Code Review
This pull request corrects an assertion in the test_binary_data_handling test within tests/optional/capabilities/test_transport_specific_features.py. The change modifies the assertion from assert error.get("code") == -32601 to assert error.get("code") != -32601, ensuring that if an error occurs during binary data handling, it is not a 'Method Not Found' error, which aligns with the expectation that binary data should be supported in A2A v1.0.0.
0329562 to
dfbc57b
Compare
When a SUT returns a non--32601 error (e.g., a processing error), the test fails with "Binary data should be supported in A2A v1.0.0", which is confusing because the server does support it -> it just had a different error. The intent is: if the server returns an error, it should NOT be a "method not found" (-32601) error, because binary data handling should be a supported feature. But the current code asserts the opposite -> it passes only if the error IS "method not found", which contradicts the error message. Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
dfbc57b to
6acac81
Compare
Review: core fix correct, but blocked by conflicts + incomplete coverageBlocked: branch is behind The assertion flip is correct and worth keeping —
Remaining gaps (suited to a follow-up):
Recommendation: rebase onto |
|
Fix intent is sound (non- |
|
Heads-up: the binary-data coverage this PR targets is already on |
Review findings — change is correct, needs rebaseThe assertion fix is right. The old Non-blockers:
Reviewed via automated multi-agent PR review; external contributor (read-only). |
When a SUT returns a non--32601 error (e.g., a processing error), the test fails with "Binary data should be supported in A2A v1.0.0", which is confusing because the server does support it -> it just had a different error.
The intent is: if the server returns an error, it should NOT be a "method not found" (-32601) error, because binary data handling should be a supported feature. But the current code asserts the opposite -> it passes only if the error IS "method not found", which contradicts the
error message.
Fixes #<issue_number_goes_here> 🦕