Skip to content

Commit 2ad60c9

Browse files
authored
Print details on how to start Windows build (#387)
1 parent 5f92ae8 commit 2ad60c9

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

run_release.py

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,38 @@ def start_build_release(db: ReleaseShelf) -> None:
945945
)
946946
print()
947947

948-
if not ask_question("Have you started the build-release workflow?"):
949-
raise ReleaseException("build-release workflow must be started")
948+
949+
def start_windows_build(db: ReleaseShelf) -> None:
950+
commit_sha = get_commit_sha(db["release"].gitname, db["git_repo"])
951+
origin_remote_url = get_origin_remote_url(db["git_repo"])
952+
origin_remote_github_owner = extract_github_owner(origin_remote_url)
953+
954+
print("Start the Windows build:")
955+
print(
956+
"Go to\thttps://dev.azure.com/Python/cpython/_build?definitionId=21&_a=summary"
957+
)
958+
print("Click:\t'Run pipeline'")
959+
print()
960+
print("Pipeline version")
961+
print()
962+
print("Select pipeline version by branch/tag:\tleave 'main'")
963+
print("Commit:\tleave blank")
964+
print()
965+
print("Pipeline version")
966+
print()
967+
print(f"Git remote:\t{origin_remote_github_owner}")
968+
print("If Other, specify Git remote:\tleave 'python'")
969+
print(f"Git tag:\t{db['release'].gitname}")
970+
print(f"Git commit:\t{commit_sha}")
971+
print("[x] Publish release")
972+
print("Check the version specific boxes")
973+
print()
974+
print("Click:\t'Next: Resources'")
975+
print("Click:\t'Run'")
976+
print()
977+
978+
if not ask_question("Have you started the Windows build?"):
979+
raise ReleaseException("Windows build must be started")
950980

951981

952982
def send_email_to_platform_release_managers(db: ReleaseShelf) -> None:
@@ -1421,6 +1451,7 @@ def _api_key(api_key: str) -> str:
14211451
Task(create_tag, "Create tag"),
14221452
Task(push_to_local_fork, "Push new tags and branches to private fork"),
14231453
Task(start_build_release, "Start the build-release workflow"),
1454+
Task(start_windows_build, "Start the Windows build"),
14241455
Task(
14251456
send_email_to_platform_release_managers,
14261457
"Platform release managers have been notified of the commit SHA",

0 commit comments

Comments
 (0)