-
- Summary
The `remote_unittest` configuration applied `--run_under=//bazel:test_wrapper` to every Bazel command. When Evergreen invoked `bazel run //buildscripts:gather_failed_tests`, Bazel rejected the non-executable filegroup and failed to collect diagnostics.
This scopes the wrapper to `test:remote_unittest`, preserving wrapper behavior for `bazel test` while allowing reporting commands to run normally. Regression coverage was added for the configuration scope.
Related: [BF-45809](https://jira.mongodb.org/browse/BF-45809)
-
- Testing
- `bazel test //evergreen:bazel_evergreen_shutils_test --test_output=errors` — passed
- `bazel run --config=remote_unittest //buildscripts:gather_failed_tests` — passed
- `git diff --cached --check` — passed