Skip to content

[SPARK-35048][INFRA] Only trigger the notify test workflow in upstream#32174

Closed
Yikun wants to merge 1 commit intoapache:masterfrom
Yikun:SPARK-35046-f1
Closed

[SPARK-35048][INFRA] Only trigger the notify test workflow in upstream#32174
Yikun wants to merge 1 commit intoapache:masterfrom
Yikun:SPARK-35046-f1

Conversation

@Yikun
Copy link
Member

@Yikun Yikun commented Apr 14, 2021

What changes were proposed in this pull request?

Only trigger the notify test workflow in upstream

Why are the changes needed?

We should only trigger the notify test workflow in upstream apache/spark job, otherwise we will trigger the same workflow twice in fork repos.

Does this PR introduce any user-facing change?

No

How was this patch tested?

See local test in Yikun#13,
The notify test is skiped in fork repo.
https://github.com/Yikun/spark/pull/13/checks?check_run_id=2345776215

Note that current notify_test_workflow with pull_request_target event doesn't use something like action/checkout to checkout code. So this skip will only effect when this patch is merged, I just use change the pull_request_target the pull request to do local test.

@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41946/

@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41946/

@github-actions
Copy link

Test build #749253407 for PR 32174 at commit 6fde92d.

@github-actions github-actions bot added the INFRA label Apr 14, 2021
@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Test build #137368 has finished for PR 32174 at commit 6fde92d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

- name: "Notify test workflow"
uses: actions/github-script@v3
if: ${{ github.base_ref == 'master' }}
if: github.base_ref == 'master' && github.repository == 'apache/spark'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yikun so is the problem that the "Notify test workflow" is triggered in the forked repository's PRs too? I think it's not a big problem but okay.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I am wrong to thought that the fork repo "Notify test workflow" will create a new series workflow, but actually, the notify test workflow just found the job and give the link.

So, as you said, this pr only skip the notify process.

HyukjinKwon
HyukjinKwon previously approved these changes Apr 15, 2021
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but can you create a separate JIRA for this please @Yikun?

@HyukjinKwon
Copy link
Member

Ohh actually this will disable a case when another person creates a PR against somebody's fork e.g.) HyukjinKwon#35. It happens time to time when you work together. Let's just drop it for now.

@Yikun
Copy link
Member Author

Yikun commented Apr 15, 2021

Yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants