Skip to content

Commit b97004f

Browse files
committed
Only kill rocm jobs
1 parent 1613eea commit b97004f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

parse_jenkins_builds.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,14 @@ def grep(filename, pattern, verbose=False):
187187
else:
188188
other_params.append(_)
189189

190-
with open("abort-{0}.prop".format(kill_index), "w") as f:
191-
f.write("JENKINS_PROJECT_TO_KILL={0}\n".format(job_name))
192-
f.write("JENKINS_PROJECT_PARAMS={0}\n".format(main_params))
193-
f.write("EXTRA_PARAMS={0}\n".format(";".join(other_params)))
194-
195-
kill_index += 1
190+
if "GPU_FLAVOR=rocm" in other_params or "TEST_FLAVOR=rocm" in other_params:
191+
with open("abort-{0}.prop".format(kill_index), "w") as f:
192+
f.write("JENKINS_PROJECT_TO_KILL={0}\n".format(job_name))
193+
f.write("JENKINS_PROJECT_PARAMS={0}\n".format(main_params))
194+
f.write("EXTRA_PARAMS={0}\n".format(";".join(other_params)))
195+
196+
kill_index += 1
197+
# TODO: set commit status
196198

197199
unique_id = (
198200
JENKINS_PREFIX + ":/build/builds/" + job_name + "/" + str(queue_id)

0 commit comments

Comments
 (0)