Skip to content

Commit f832a7a

Browse files
sleauxMongoDB Bot
authored and
MongoDB Bot
committed
SERVER-104350 Enable Resmoke telemetry in workstation bazel invocations (#35421)
GitOrigin-RevId: b43327541a1cd9747be1e6b2681d6921a1314ae0
1 parent 4b07529 commit f832a7a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

buildscripts/resmokelib/BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,12 @@ py_library(
6060
"opentelemetry-exporter-otlp-proto-common",
6161
group = "testing",
6262
),
63-
],
63+
] + select({
64+
"@platforms//cpu:s390x": [],
65+
"@platforms//cpu:ppc": [],
66+
"//conditions:default": [dependency(
67+
"opentelemetry-exporter-otlp-proto-grpc",
68+
group = "testing",
69+
)],
70+
}),
6471
)

buildscripts/resmokelib/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ def main(argv):
1818
__start_time = time.time()
1919
os.environ["RESMOKE_PARENT_PROCESS"] = str(os.getpid())
2020
os.environ["RESMOKE_PARENT_CTIME"] = str(psutil.Process().create_time())
21+
22+
# If invoked by "bazel run", ensure it runs in the workspace root.
23+
workspace_dir = os.environ.get("BUILD_WORKSPACE_DIRECTORY")
24+
if workspace_dir:
25+
os.chdir(workspace_dir)
26+
2127
subcommand = parser.parse_command_line(
2228
argv[1:],
2329
start_time=__start_time,

0 commit comments

Comments
 (0)