You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
154156: testutils,drpc: improve experience with DefaultTestDRPCOption r=shubhamdhama a=shubhamdhama
Here are some small code changes to improve developer experience.
`` testutils: improve validate DefaultDRPCOption error message ``
This improves the error message when node level server args are used
instead of top-level server args for a test cluster.
before: "improper use of DefaultDRPCOption in per-server args: 1 vs 0"
now : "improper use of DefaultDRPCOption in per-server args: enabled vs unset"
`` server,tests: explicitly disable DRPC setting if option is TestDRPCDisabled ``
This change ensures a clear distinction between an unset DRPC option and an
explicitly disabled one. If the DRPC option is unset at both the test and
package levels, we will not modify the setting. This allows the system to
use the default value of `ExperimentalDRPCEnabled`, which can be overridden
for development via `COCKROACH_EXPERIMENTAL_DRPC_ENABLED`. When the option
is explicitly set to `TestDRPCDisabled`, we will now explicitly disable the
setting.
`` testutils: allow overriding DefaultTestDRPCOption with env variable ``
This allows enabling or disabling DRPC for unit tests without changing code
or recompiling. Note that the environment variable will take precedence
over server args, which take precedence over the package-level option.
Example usage: `dev test pkg/server:server_test -- --test_env=COCKROACH_TEST_DRPC=false`
Epic: none
Release note: none
Co-authored-by: Shubham Dhama <[email protected]>
0 commit comments