mirror of
https://github.com/openai/codex.git
synced 2026-11-01 19:33:35 +00:00
Tighten Bazel CI snapshot handling and OTLP test cleanup (#58459)
## Why Failed snapshot assertions should print their diffs without leaving `.snap.new` files after a passing retry. The OTLP loopback collector should stop once exporter shutdown completes instead of waiting for its deadline. ## What changed - Set `INSTA_UPDATE=no` for Bazel CI tests, including the local configuration used when no BuildBuddy API key is available. - Initialize the OTLP provider before starting the collector's deadline in the Tokio bounded-shutdown test. - Signal the collector to stop after shutdown and join its thread before propagating any shutdown error. GitOrigin-RevId: 55b050822ec923894c9edbc8f039f35f693a4b7e
This commit is contained in:
@@ -388,6 +388,9 @@ if [[ -n "${BUILDBUDDY_API_KEY:-}" ]]; then
|
||||
bazel_run_args+=("--config=${ci_config}")
|
||||
else
|
||||
echo "BuildBuddy API key is not available; using local Bazel configuration."
|
||||
if [[ "${bazel_args[0]}" == "test" ]]; then
|
||||
bazel_run_args+=("--test_env=INSTA_UPDATE=no")
|
||||
fi
|
||||
fi
|
||||
if (( ${#post_config_bazel_args[@]} > 0 )); then
|
||||
bazel_run_args+=("${post_config_bazel_args[@]}")
|
||||
|
||||
Reference in New Issue
Block a user