Autoformat code
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 303f14c..7c24f08 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -867,8 +867,9 @@
try:
test_bep_file = os.path.join(tmpdir, "test_bep.json")
stop_request = threading.Event()
- upload_thread = threading.Thread(target = upload_test_logs_from_bep,
- args = (test_bep_file, tmpdir, stop_request,))
+ upload_thread = threading.Thread(
+ target=upload_test_logs_from_bep, args=(test_bep_file, tmpdir, stop_request)
+ )
upload_thread.start()
try:
execute_bazel_test(
@@ -894,6 +895,7 @@
if tmpdir:
shutil.rmtree(tmpdir)
+
def activate_xcode(task_config):
# Get the Xcode version from the config.
xcode_version = task_config.get("xcode_version", DEFAULT_XCODE_VERSION)
@@ -1527,7 +1529,9 @@
done = stop_request.isSet()
if os.path.exists(bep_file):
all_test_logs = filter_test_logs_to_upload(bep_file)
- test_logs_to_upload = [(target, files) for target, files in all_test_logs if target not in uploaded_targets]
+ test_logs_to_upload = [
+ (target, files) for target, files in all_test_logs if target not in uploaded_targets
+ ]
if test_logs_to_upload:
files_to_upload = rename_test_logs_for_upload(test_logs_to_upload, tmpdir)
@@ -1544,6 +1548,7 @@
break
time.sleep(0.2)
+
def upload_json_profile(json_profile_path, tmpdir):
if not os.path.exists(json_profile_path):
return
@@ -1642,6 +1647,7 @@
eprint(" ".join(args))
return subprocess.Popen(args, env=os.environ)
+
def terminate_background_process(process):
if process:
process.terminate()
@@ -1650,6 +1656,7 @@
except subprocess.TimeoutExpired:
process.kill()
+
def create_step(label, commands, platform, shards=1):
if "docker-image" in PLATFORMS[platform]:
step = create_docker_step(
@@ -2640,6 +2647,7 @@
else:
raise BuildkiteException("Could not publish binaries, ran out of attempts.")
+
# This is so that multiline python strings are represented as YAML
# block strings.
def str_presenter(dumper, data):