Make GDB installation optional for dist-test archives

XMLWordPrintableJSON

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

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

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

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

              Created:
              Updated:
              Resolved: