Skip to content

The agent that grows with you

fix: nicer commit build output

ethernet49967a596c37
diff --git a/scripts/releases/commit_build.py b/scripts/releases/commit_build.py
index b596b4d9192..bab52f5885d 100644
--- a/scripts/releases/commit_build.py
+++ b/scripts/releases/commit_build.py
@@ -108,11 +108,14 @@ def cmd_build_commit(args) -> None:
raise ValueError("could not resolve the repository default branch")
command = dispatch_command(commit, repository, branch, bundle_env)
page = r2.public_url_for(r2.public_base_url(), r2.commit_page_key_for(commit))
- print(f"Commit: {commit}\nR2: {r2.commit_prefix_for(commit)}\nPage: {page}\nWorkflow: {repository}@{branch}")
- print(shlex.join(command))
+ print(f"Building one-off bundle for commit {commit}")
+ print(f"Builds will be available at: {page}.")
+ print(f"Workflow command, running from {repository}@{branch}")
+ print(f" {shlex.join(command)}")
if not args.publish:
- print("Dry run. Add --publish to dispatch. No tag, release or channel is changed.")
+ print("Dry run. Add --publish to dispatch.")
return
+ print("Starting workflow!")
result = subprocess.run(command, cwd=release.REPO_ROOT, capture_output=True, text=True,
encoding="utf-8", errors="replace", check=True, timeout=60)
print((result.stdout or "").strip() or f"Dispatched commit build {commit}. No release was created.")