[ https://issues.apache.org/jira/browse/SPARK-35157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-35157: --------------------------------- Parent: (was: SPARK-35119) Issue Type: Bug (was: Sub-task) > Have a way for other people to retrigger the build in GitHub Actions > -------------------------------------------------------------------- > > Key: SPARK-35157 > URL: https://issues.apache.org/jira/browse/SPARK-35157 > Project: Spark > Issue Type: Bug > Components: Project Infra > Affects Versions: 3.2.0 > Reporter: Hyukjin Kwon > Priority: Major > > We should ask contributors to retrigger the tests because the builds run in > their fork, and currently committers or other people cannot retrigger out of > the box. > Note that the retriggering has to happen in forked repository. This cannot > be done from main repository. > One possible way is to create a workflow *that only runs in forked > repository*: > 1. Regularly (15 mins?) get a list of PRs opened from the forked repository > or possibly author? (see > [https://github.com/apache/spark/blob/master/.github/workflows/update_build_status.yml#L36-L47]) > 2. Iterate the PRs: > ㅤ2.1. Get the latest workflow run > ([https://github.com/apache/spark/blob/master/.github/workflows/notify_test_workflow.yml#L41-L59]) > ㅤ2.2. Iterates the comments in the PR (see > [https://docs.github.com/en/rest/guides/working-with-comments#pull-request-comments] > for Javascript and > [https://docs.github.com/en/rest/reference/issues#list-issue-comments] for > REST API). Issue number is PR number. > ㅤㅤ2.2.1. check if there is a comment such as "GitHub Actions: retrigger > please" _after the latest workflow run_. Last update time is available when > you get workflow run, see also > [https://docs.github.com/en/rest/reference/actions#get-a-workflow-run] > ㅤㅤㅤ2.2.1.1. If there is, retrigger the workflow run, see also > [https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event] > ㅤㅤㅤ2.2.1.2. If not, skip. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org