Repository navigation
Conversation
…model The raw jsonDecode I added in BasedHardware#15058 made uploadProfile report raw response decode sites, which fails test_inventory_openapi_route_response_decode_migration_complete and takes every backend shard red on main. misc_wire.GeneratedErrorResponse already models that body.
|
Context for anyone hitting red backend shards right now: main has two independent failures. This PR fixes one of them, which is mine from #15058. The other is #15195, where #15099 gave enable_app_endpoint a request parameter and the test that calls it directly was not updated; PR for that is #15194. Both need to land before a backend PR can be green. |
|
Worth flagging that this one is blocking other PRs. On fdcae0a with no changes, backend unit has three red files: This PR fixes the first, #15194 fixes the other two. Every open backend PR is currently showing failing shards for exactly those three files and nothing else. |
|
Thanks @singhharsh1708 — verified, this is a clean fix. What I checked in
Appreciate the description owning the #15058 fallout — that context made this easy to verify. Leaving for routine maintainer merge. 🤖 Automated review on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Genuine fix for a self-caused CI regression: routes the speech-profile error body through the existing generated model (misc_wire.GeneratedErrorResponse) instead of a bare jsonDecode, satisfying the inventory contract's response_decode rule. Small (+6/-4), behavior-preserving, tests pass, CI green.
test_app_client_schema_inventory.py::test_inventory_openapi_route_response_decode_migration_completeis failing on main, so every backend shard is red and no backend PR can go green.The cause is mine. #15058 added
_errorDetailtoapp/lib/backend/http/api/speech_profile.dartto readdetailout of a failed upload response, and it did that with a barejsonDecodeplus a map lookup. The inventory contract classifies aresponse_decodesite as a violation unless it is generated-backed, souploadProfilestarted reportingraw_response_decode_site_count: 2and the migration assertion fails.misc_wire.GeneratedErrorResponsealready models that body and carriesdetail, so_errorDetailnow goes through it. The behaviour is unchanged: a stringdetailis returned, anything else or an unparseable body still yields null, and the dialog logic on top of it is untouched.Failure-Class: none