Fix remote strategies for ExtractDebuginfo and StripDebuginfo

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Bazel
    • None
    • DevProd Build
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The remote strategies for --config=remote_test and --config=remote_link incorrectly reference StripDebugInfo and ExtractDebugInfo (note the capital I). https://github.com/10gen/mongo/blob/173f86e868e07bfc03e3d53bce9a4024845a1051/.bazelrc#L413

      We should update the mnemonics to be consistent. Defined here: https://github.com/10gen/mongo/blob/173f86e868e07bfc03e3d53bce9a4024845a1051/bazel/separate_debug.bzl#L313

       

      Further, and the non-trivial part of this ticket, is that they do not work when remotely executed: 

      ERROR: /data/mci/474300e335a4c3b9011cbc1c461a77fd/src/src/third_party/grpc/BUILD.bazel:148:16: ExtractDebugInfo src/third_party/grpc/grpc_cpp_plugin.debug [for tool] failed: (Aborted): llvm-objcopy failed: error executing ExtractDebugInfo command (from target //src/third_party/grpc:grpc_cpp_plugin)
        (cd /data/mci/474300e335a4c3b9011cbc1c461a77fd/tmp/bazel-output-root/a74664e22dc95d7009d872fc620b052b/execroot/_main && \
        exec env - \
        external/mongo_toolchain_v5/v5/bin/llvm-objcopy --only-keep-debug bazel-out/aarch64-opt-exec-ST-e0dba4dfc6c2/bin/src/third_party/grpc/grpc_cpp_plugin_with_debug bazel-out/aarch64-opt-exec-ST-e0dba4dfc6c2/bin/src/third_party/grpc/grpc_cpp_plugin.debug)
      # Configuration: ebf28dc09273ad6b89fe2126e2083dcd42034e414672e38e5731638b698d35c0
      # Execution platform: @@_main~_repo_rules~internal_platforms_do_not_use//host:host
      Execution result: https://sodalite.cluster.engflow.com/actions/executions/ChDVSumjBF1VqZ_2fj8ElipREgdkZWZhdWx0GiUKIPDGw_xGqPLv8YnIS-i0_jFCNpSRK220VmzRu--ADQ8VEM0C
      F1209 19:11:52.489286      92 process-wrapper-legacy.cc:80] execvp(external/mongo_toolchain_v5/v5/bin/llvm-objcopy, ...)
      *** Check failure stack trace: ***
          @           0x4242ac  absl::lts_20250814::log_internal::LogMessage::SendToLog()
          @           0x402938  LegacyProcessWrapper::SpawnChild()
          @           0x40297c  LegacyProcessWrapper::RunCommand()
          @           0x4016c4  main
          @           0x4a9c6c  __libc_start_main

      from https://parsley.corp.mongodb.com/evergreen/mongodb_mongo_master_bazel_integration_tests_resmoke_tests_patch_eff261833a58531c33c1b8e6ef640f5e8a7a6d01_69387277b2efbb000723e182_25_12_09_19_04_09/0/task?bookmarks=0,2422&shareLine=2188 

       

            Assignee:
            Andrew Bradshaw
            Reporter:
            Sean Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: