Files
mongo/bazel/wrapper_hook/engflow_check.py
Zack Winter 0f507cfd1e SERVER-100482 Replace fetch bazel with BAZELISK_BASE_URL and remove "fetch bazel" function (#32034)
GitOrigin-RevId: 96ff1d17b53a9551c5dbd037829bf96f3ed1e11e
2025-04-09 19:38:38 +00:00

27 lines
758 B
Python

import os
import pathlib
import platform
import sys
import time
REPO_ROOT = str(pathlib.Path(__file__).parent.parent.parent)
sys.path.append(REPO_ROOT)
from bazel.wrapper_hook.wrapper_debug import wrapper_debug
def engflow_auth(args):
start = time.time()
from buildscripts.engflow_auth import setup_auth
args_str = " ".join(args)
if (
"--config=local" not in args_str
and "--config=public-release" not in args_str
and "--config local" not in args_str
and "--config public-release" not in args_str
):
if os.environ.get("CI") is None and platform.machine().lower() not in {"ppc64le", "s390x"}:
setup_auth(verbose=False)
wrapper_debug(f"engflow auth time: {time.time() - start}")