Skip to content

Commit 0119fa5

Browse files
[CI] Minor fixes in dispatch_job.py
1. Using $ in python f-strings that will get interpreted by bash creates bash variables that then do not map to anything. 2. Move the step annotation back to where it was. Otherwise the timestamps show up before the annotation and it doesn't get interpeted correctly.
1 parent 8f6c623 commit 0119fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zorg/buildbot/builders/annotated/premerge/dispatch_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def start_build_linux(commit_sha: str, k8s_client) -> str:
5959
"""Starts a pod to build/test on Linux at the specified SHA."""
6060
pod_name = f"build-{commit_sha}"
6161
commands = [
62-
'echo "@@@BUILD_STEP Cloning Repository@@@"',
6362
"git clone --depth 100 https://github.com/llvm/llvm-project",
6463
"cd llvm-project",
65-
f"git checkout ${commit_sha}",
64+
f"git checkout {commit_sha}",
6665
"export CC=clang",
6766
"export CXX=clang++",
6867
"export POSTCOMMIT_CI=1",
@@ -193,6 +192,7 @@ def main(commit_sha: str, platform: str):
193192
namespace = PLATFORM_TO_NAMESPACE[platform]
194193
latest_time = datetime.datetime.min
195194
v1_api = kubernetes.client.CoreV1Api()
195+
print("@@@BUILD_STEP Build/Test@@@")
196196
while True:
197197
try:
198198
pod_finished, latest_time = print_logs(

0 commit comments

Comments
 (0)