OPTIONS
Per-test runtime overrides.
When to use
- Tune one test without changing global CLI flags
- Set timeout/retry behavior near the scenario
Minimal example
php
--- OPTIONS ---
timeout: 60
retry: 2
retry_delay: 1.5
no_retry: false
compression: gzip
protocol: grpc-web1
2
3
4
5
6
7
2
3
4
5
6
7
Supported keys
timeout- positive integer secondsretry- non-negative integerretry_delay- non-negative numberno_retry- booleancompression-noneorgzipprotocol-grpc(default),grpc-weborconnectrpc
Wire protocol
protocol is what makes a test reproducible off the machine that wrote it. A document built against grpc-web that records nothing about it runs over plain gRPC in CI, silently, and the failure looks like a server problem rather than a transport mismatch.
php
--- OPTIONS ---
protocol: grpc-web1
2
2
--protocolon the command line still wins, so a suite can be swept across transports without editing files.- An unknown value is an error, not a fall back to
grpc— a typo likegrpcwebis exactly the mistaken run this key exists to prevent. - When
ADDRESSis absent, the default target follows the protocol (localhost:4770for gRPC, the protocol's own default otherwise). grpc-webandconnectrpcread the whole answer into memory, so a single response is capped at 32 MiB and a larger one fails with that message rather than growing the process. There is no knob: a response that big belongs on plaingrpc, which streams.
Rules
- Unknown keys produce validation warnings
- A key set twice is a parse error (not last-wins)
- Canonical keys use snake_case (
retry_delay,no_retry) - Runtime precedence quick map:
run: section attributes >OPTIONS> CLI runtime baseline/defaultsbench: CLI bench flags >BENCHsection > bench defaults
Related
- Command Line (runtime and bench flags)
- ATTRIBUTES (per-section runtime overrides)
- BENCH (
benchmodel, separate precedence)