Skip to content

Commit 54bb593

Browse files
committed
Add logging for detect versions
1 parent 5b02887 commit 54bb593

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

devops/scripts/benchmarks/utils/detect_versions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def get_var(var_name: str) -> str:
8888
# matches up with the prefix of the l0 version patch, the cache is
8989
# indeed referring to the same version.
9090
if env_cache_patch == l0_ver_patch[: len(env_cache_patch)]:
91+
print(
92+
f"Using compute_runtime tag from COMPUTE_RUNTIME_TAG_CACHE: {env_cache_var}"
93+
)
9194
cls._instance.compute_runtime_ver_cache = env_cache_ver
9295

9396
return cls._instance
@@ -154,6 +157,7 @@ def get_compute_runtime_ver(self) -> str:
154157
# not work if we enable benchmark CI in precommit.
155158
url = options.detect_versions.compute_runtime_tag_api
156159

160+
print(f"Fetching compute-runtime tag from {url}...")
157161
try:
158162
for _ in range(options.detect_versions.max_api_calls):
159163
res = request.urlopen(url)
@@ -196,6 +200,7 @@ def get_link_url(link: str) -> str:
196200
except urllib.error.URLError as e:
197201
print(f"URL error: {e.reason}")
198202

203+
print(f"WARNING: unable to find compute-runtime version")
199204
return options.detect_versions.not_found_placeholder
200205

201206

0 commit comments

Comments
 (0)