-
- Summary
- Make hermetic GDB installation opt-in through the `install_gdb` Bazel setting; normal dist-test archives remain GDB-free by default.
- Add `install-gdb` and `archive-gdb` targets in `BUILD.bazel` for a separate Linux GDB sidecar archive.
- Add the Evergreen `archive_gdb` task and make `run_pretty_printer_tests` fetch and extract that sidecar explicitly.
- Keep directly targeted Bazel pretty-printer tests self-contained through runfiles in `pretty_printer_test_launcher.py.in`.
- Keep GDB configuration analysis tests small enough for repository-wide lint analysis.
This reduces the size of normal server archives while preserving the debugger files required by pretty-printer tests. The change is Linux-only and does not alter server binaries or the default archive contents.
-
- Validation status
Local validation passed:
- `bazel run lint //... --lint-yaml=mongodb-mongo-master --large-files` — all 23 checks passed.
- `bazel run format`
- Install-rule and pretty-printer tests — 5 passed.
- `bazel build --config=evg --config=opt_profiled //:archive-gdb`
- `git diff --check`
Evergreen validation:
- Required patch #6783(https://spruce.corp.mongodb.com/version/6a8908fcf4be31000708c048) completed with 701 successes, 2 known-issue results, and 3 failures. The `bazel_run_lint` task passed. The failed tasks were `test_api_version_compatibility`, `no_passthrough_qemp_ifr_no_nlm_transform`, and `no_passthrough_disagg_override_replsets`.
- Sys-perf validation patch #6782(https://spruce.corp.mongodb.com/version/6a88d1e9ca4ba8000768a0d8) passed.