Skip to content

test(bigtable): add accelerator error-handling and daemon start-failure tests - #9

Open
mutianf wants to merge 2 commits into
accel-08-system-test-fuzzfrom
accel-09-error-handling-tests
Open

test(bigtable): add accelerator error-handling and daemon start-failure tests#9
mutianf wants to merge 2 commits into
accel-08-system-test-fuzzfrom
accel-09-error-handling-tests

Conversation

@mutianf

@mutianf mutianf commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Adds accelerator error-handling tests for the real shipped path:

  • Start failure → graceful degradation to a working native client (with a warning).
  • Daemon dies mid-flight → transparent native fallback + breaker trips (mirrors the Go client; does not surface an error).
  • Deadlinesoperation_timeout is enforced as the accelerator RPC deadline; defaults match the native client.
  • Error parity → backend and Python-layer errors raise identical types on both paths.

Adds test_accelerator_fallback (unit) driving the real _fallback.py with real gRPC status codes to cover UNIMPLEMENTED-driven fallback and the consecutive-failure breaker, which can't be induced against a live backend.

Part of the accelerator test stack. Stacked on top of #8.

@mutianf
mutianf force-pushed the accel-09-error-handling-tests branch from 31b01fc to 3275037 Compare August 11, 2026 14:07
@mutianf
mutianf force-pushed the accel-09-error-handling-tests branch 2 times, most recently from e0ac9d7 to 55fa976 Compare August 12, 2026 14:07

from . import _harness

_FLAGS = ["--project", "p", "--instance", "i"]

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

add a --app-profile flag.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Added --app-profile ap to _FLAGS (commit b5dd75d). Placeholder value consistent with the existing p/i project/instance placeholders, since these fault-injection tests drive broken stand-in binaries and never reach a real backend. --app-profile matches the real flag the client emits in _async/client.py.

@mutianf
mutianf force-pushed the accel-09-error-handling-tests branch from b5dd75d to 88db874 Compare August 12, 2026 18:56
…re tests

Change-Id: I218d3f4ef8061b8af41ec9961f9e4bde7e2eddf7
Change-Id: I61f662a3da07fa280e620368ecf4da3b6935eb27
@mutianf
mutianf force-pushed the accel-09-error-handling-tests branch from 88db874 to 16aa4e5 Compare August 12, 2026 19:04
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.

1 participant