Skip to content

Commit 2017287

Browse files
authored
Add a command to re-run verifycation CI job (#107)
Closes GH-103
1 parent 7d80c1c commit 2017287

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Rakefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,18 @@ def ensure_package_job_finished(rc_tag)
277277
run_id.to_s)
278278
end
279279

280+
def re_run_verify_rc_jobs(rc_tag)
281+
run_id = sh_capture_output("gh", "run", "list",
282+
"--branch", rc_tag,
283+
"--jq", ".[0].databaseId",
284+
"--json", "databaseId",
285+
"--repo", github_repository,
286+
"--workflow", "verify-rc.yaml").chomp
287+
sh("gh", "run", "rerun",
288+
"--repo", github_repository,
289+
run_id)
290+
end
291+
280292
task :env do
281293
load_env
282294
end
@@ -409,6 +421,12 @@ namespace :release do
409421
end
410422
end
411423

424+
desc "Re-run verify RC CI jobs"
425+
task :verify => :env do
426+
rc = detect_latest_rc(version)
427+
re_run_verify_rc_jobs("#{version}-rc#{rc}")
428+
end
429+
412430
desc "Generate a release vote e-mail"
413431
task :vote => :env do
414432
rc = detect_latest_rc(version)

doc/source/development/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ You need to specify your cloned `apache/arrow` repository. You must
9494
prepare its `dev/release/.env` (not only
9595
`apache/arrow-flight-sql-postgresql`'s `dev/release/.env`.)
9696

97+
Re-run RC verify CI jobs on GitHub Actions:
98+
99+
```bash
100+
rake release:rc:verify
101+
```
102+
97103
Start a vote thread for the new RC on `[email protected]`. You can
98104
generate a vote e-mail template:
99105

0 commit comments

Comments
 (0)