Support configurable Cloud Query failure responses - #3315
Merged
Conversation
adamtheturtle
temporarily deployed
to
development
August 4, 2026 12:59 — with
GitHub Actions
Inactive
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #3314 by adding a public
CloudQueryFailureResponseandMockVWS.cloud_query_failure_responseoverride so valid Cloud Query requests can exercise documented 4xx and 5xx response shapes through bothrequestsandhttpx.The configured response preserves exact status, headers, UTF-8 text, empty bodies, and raw bytes, while default query behavior remains unchanged and the Flask/Docker boundary is documented.
Tests cover empty 4xx, arbitrary-text 4xx, and raw-byte 5xx responses on both backends, with the CI matrix, changelog, and API docs updated.
Validated with 79 passing tests, 2 existing skips, pre-commit and pre-push checks, a warning-as-error Sphinx build, and all configured type checkers.