SERVER-104350 Enable Resmoke telemetry in workstation bazel invocations (#35421)
GitOrigin-RevId: b43327541a1cd9747be1e6b2681d6921a1314ae0
This commit is contained in:
parent
4b07529b7f
commit
f832a7a92a
@ -60,5 +60,12 @@ py_library(
|
||||
"opentelemetry-exporter-otlp-proto-common",
|
||||
group = "testing",
|
||||
),
|
||||
],
|
||||
] + select({
|
||||
"@platforms//cpu:s390x": [],
|
||||
"@platforms//cpu:ppc": [],
|
||||
"//conditions:default": [dependency(
|
||||
"opentelemetry-exporter-otlp-proto-grpc",
|
||||
group = "testing",
|
||||
)],
|
||||
}),
|
||||
)
|
||||
|
||||
@ -18,6 +18,12 @@ def main(argv):
|
||||
__start_time = time.time()
|
||||
os.environ["RESMOKE_PARENT_PROCESS"] = str(os.getpid())
|
||||
os.environ["RESMOKE_PARENT_CTIME"] = str(psutil.Process().create_time())
|
||||
|
||||
# If invoked by "bazel run", ensure it runs in the workspace root.
|
||||
workspace_dir = os.environ.get("BUILD_WORKSPACE_DIRECTORY")
|
||||
if workspace_dir:
|
||||
os.chdir(workspace_dir)
|
||||
|
||||
subcommand = parser.parse_command_line(
|
||||
argv[1:],
|
||||
start_time=__start_time,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user