-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-25685][BUILD] Allow running tests in Jenkins in enterprise Git repository #22678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #4363 has finished for PR 22678 at commit
|
dev/run-tests-jenkins.py
Outdated
| print("Attempting to post to Github...") | ||
|
|
||
| url = "https://api.github.com/repos/apache/spark/issues/" + ghprb_pull_id + "/comments" | ||
| api_url = os.getenv("GITHUB_SERVER_API_URL", "https://api.github.com/repos/apache/spark") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about GITHUB_API_BASE? This is because another script uses this name for this URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. @kiszk
|
Sorry for closing the conversation mistakenly @dongjoon-hyun . I will update the documentation soon. |
docs/building-spark.md
Outdated
| ### Related environment variables | ||
|
|
||
| <table class="table"> | ||
| <tr><th>variable Name</th><th>Default</th><th>Meaning</th></tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable -> Variable
docs/building-spark.md
Outdated
|
|
||
| Otherwise, the sbt-pom-reader plugin will use the `scala.version` specified in the spark-parent pom. | ||
|
|
||
| ## Running Jenkins tests with enterprise Github |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enterprise Github -> GitHub Enterprise
docs/building-spark.md
Outdated
|
|
||
| ./dev/run-tests-jenkins | ||
|
|
||
| If use an individual repository or an enterprise GitHub, export below environment variables before running above command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about an enterprise GitHub -> a repository on GitHub Enterprise?
docs/building-spark.md
Outdated
| <td><code>GITHUB_API_BASE</code></td> | ||
| <td>https://api.github.com/repos/apache/spark</td> | ||
| <td> | ||
| The GitHub server API URL. It could be pointed to an enterprise GitHub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an enterprise GitHub -> GitHub Enterprise`
docs/building-spark.md
Outdated
| <td><code>SPARK_PROJECT_URL</code></td> | ||
| <td>https://github.com/apache/spark</td> | ||
| <td> | ||
| The Spark project URL of (enterprise) GitHub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
docs/building-spark.md
Outdated
|
|
||
| ./dev/run-tests-jenkins | ||
|
|
||
| If use an individual repository or an GitHub Enterprise, export below environment variables before running above command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: an -> a
In addition, how about an GitHub Enterprise -> a repository on GitHub Enterprise?
docs/building-spark.md
Outdated
| <td><code>GITHUB_API_BASE</code></td> | ||
| <td>https://api.github.com/repos/apache/spark</td> | ||
| <td> | ||
| The GitHub server API URL. It could be pointed to an GitHub Enterprise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: an -> a
|
retest this please |
|
LGTM, pending Jenkins |
|
Test build #97303 has finished for PR 22678 at commit
|
|
Merged to master |
… repository ## What changes were proposed in this pull request? Many companies have their own enterprise GitHub to manage Spark code. To build and test in those repositories with Jenkins need to modify this script. So I suggest to add some environment variables to allow regression testing in enterprise Jenkins instead of default Spark repository in GitHub. ## How was this patch tested? Manually test. Closes apache#22678 from LantaoJin/SPARK-25685. Lead-authored-by: lajin <[email protected]> Co-authored-by: LantaoJin <[email protected]> Signed-off-by: Sean Owen <[email protected]>
What changes were proposed in this pull request?
Many companies have their own enterprise GitHub to manage Spark code. To build and test in those repositories with Jenkins need to modify this script.
So I suggest to add some environment variables to allow regression testing in enterprise Jenkins instead of default Spark repository in GitHub.
How was this patch tested?
Manually test.