This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/arrow-flight-sql-postgresql.git


The following commit(s) were added to refs/heads/main by this push:
     new 2017287  Add a command to re-run verifycation CI job (#107)
2017287 is described below

commit 20172871c41743506712009e00c85ab67647193f
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Sep 11 13:48:54 2023 +0900

    Add a command to re-run verifycation CI job (#107)
    
    Closes GH-103
---
 Rakefile                          | 18 ++++++++++++++++++
 doc/source/development/release.md |  6 ++++++
 2 files changed, 24 insertions(+)

diff --git a/Rakefile b/Rakefile
index 7057712..cafc49c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -277,6 +277,18 @@ def ensure_package_job_finished(rc_tag)
      run_id.to_s)
 end
 
+def re_run_verify_rc_jobs(rc_tag)
+  run_id = sh_capture_output("gh", "run", "list",
+                             "--branch", rc_tag,
+                             "--jq", ".[0].databaseId",
+                             "--json", "databaseId",
+                             "--repo", github_repository,
+                             "--workflow", "verify-rc.yaml").chomp
+  sh("gh", "run", "rerun",
+     "--repo", github_repository,
+     run_id)
+end
+
 task :env do
   load_env
 end
@@ -409,6 +421,12 @@ namespace :release do
       end
     end
 
+    desc "Re-run verify RC CI jobs"
+    task :verify => :env do
+      rc = detect_latest_rc(version)
+      re_run_verify_rc_jobs("#{version}-rc#{rc}")
+    end
+
     desc "Generate a release vote e-mail"
     task :vote => :env do
       rc = detect_latest_rc(version)
diff --git a/doc/source/development/release.md 
b/doc/source/development/release.md
index 3a73d75..d30ec3b 100644
--- a/doc/source/development/release.md
+++ b/doc/source/development/release.md
@@ -94,6 +94,12 @@ You need to specify your cloned `apache/arrow` repository. 
You must
 prepare its `dev/release/.env` (not only
 `apache/arrow-flight-sql-postgresql`'s `dev/release/.env`.)
 
+Re-run RC verify CI jobs on GitHub Actions:
+
+```bash
+rake release:rc:verify
+```
+
 Start a vote thread for the new RC on `[email protected]`. You can
 generate a vote e-mail template:
 

Reply via email to