Scope Bazel test wrapper to test commands

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: Bazel
    • None
    • Fully Compatible
    • Build OnDeck
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

        1. 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)

        1. 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

            Assignee:
            Daniel Moody
            Reporter:
            Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: