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