[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-13 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-673479039


   https://github.com/HyukjinKwon/spark/runs/980576471 should show the example 
of this PR. Once this example shows the results correctly, this PR should be 
good to go.
   
   Before this PR is merged, the test results would not be reported because the 
workflow B (see PR description) should run in main repo, not in the PR.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-13 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-673477836


   https://github.com/HyukjinKwon/spark/runs/980576471 should show the example 
of this PR. Before this PR is merged, the test results would not be reported 
because the workflow B (see PR description) should run in main repo, not in the 
PR.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-13 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-673426729


   I elaborated it in the PR description how it works and why I had to fork two 
plugins.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-11 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-672569879


   Okay, GitHub team suggested a scenario that it could work out of the box. 
It's a bit complicated then I thought but I will try. Yes, it is a nice-to-have 
but I think it is very worthwhile as it saves time of all Spark developers in 
their daily development and review at Apache Spark.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-04 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668945164


   The latest commit above 
(https://github.com/apache/spark/pull/29333/commits/2688f21f1852b3e6a577fa9292985b346b9bdf6d)
 contains the problem in terms of forked repos and PRs at [this 
workload](https://github.com/apache/spark/pull/29333/checks?check_run_id=947513630).
   The current changes in this PR are exactly same as 
https://github.com/HyukjinKwon/spark/pull/16 at my own fork and PR in terms of 
how the 
[ScaCap/action-surefire-report](https://github.com/ScaCap/action-surefire-report)
 works.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-04 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668935709


   I am making some changes to demonstrate the problem in terms of the fork and 
PRs. Please ignore the changes made from now on. I will switch back from the 
draft later when this is ready for a review.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-04 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668933522


   Sure, let me take a closer look for that approach. In worst case, we might 
have to drop this and go back to the original @viirya's approach at #29169.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-03 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668354063


   adding @srowen, @gatorsmile, @cloud-fan as well to collect more feedback.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-03 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668353951


   BTW, let me know if you guys have a preference in one of the options. I can 
investigate fewer options in this case.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] HyukjinKwon commented on pull request #29333: [WIP][SPARK-32357][INFRA] Publish failed and succeeded test reports in GitHub Actions

2020-08-03 Thread GitBox


HyukjinKwon commented on pull request #29333:
URL: https://github.com/apache/spark/pull/29333#issuecomment-668348425


   Just to share the current status,
   
   In 
[ScaCap/action-surefire-report](https://github.com/ScaCap/action-surefire-report)
 plugin (and all other similar plugins), it leverages `GITHUB_TOKEN` that is 
set by default in GitHub Actions. It uses GitHub API to create [status 
checks](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-status-checks)
 via 
[here](https://github.com/ScaCap/action-surefire-report/blob/master/action.js#L42-L43)
 - it requires write permission to the repo. However, the permissions of 
`GITHUB_TOKEN` [does not cover the case when a PR was raised based on the 
fork](https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token).
   
   There are many similar issues and questions, for example, in 
[codecov](https://github.com/codecov/codecov-action/issues/29) or [GitHub 
community](https://github.community/t/make-secrets-available-to-builds-of-forks/16166).
 In case of Codecov, they managed to remove the requirement of `GITHUB_TOKEN` 
at 
[here](https://github.com/codecov/codecov-action/issues/29#issuecomment-595062189).
 Basically they used existing GitHub Actions environment to verify in their 
service. This is not feasible in our case because the plugin is dependent of 
GitHub API to create the status checks directly.
   
   I investigated this issue yesterday and concluded there's no clean 
workaround to make this working out of the box. 
   I am currently investigating the feasibility of _potential_ alternatives. I 
am not sure if all of them work or not:
   
   - Use one environment variable, for example, `TEST_REPORT_GITHUB_TOKEN` as a 
GitHub secret. And then, guide committers to set `TEST_REPORT_GITHUB_TOKEN` as 
a GitHub secret in their forks. Note that the contributors would be able to 
report the test results as their tokens don't have the write access to the repo.
   
   - Just don't run this test report for now but wait until GitHub provides an 
alternative to work around this. There looks many requests such as 
[this](https://github.community/t/make-secrets-available-to-builds-of-forks/16166).
   
   - Just generate a token that only has the permission to change the status 
checks, and hardcode it in the repo. At the worst case people abuse this token, 
the status of PRs are changed.
   
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org