Skip to content

Conversation

@LantaoJin
Copy link
Contributor

@LantaoJin LantaoJin commented Oct 9, 2018

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.

@LantaoJin LantaoJin changed the title [SPARK-25685][BUILD] Allow regression testing in enterprise Jenkins [SPARK-25685][BUILD] Allow running tests in Jenkins in enterprise Git repository Oct 9, 2018
@SparkQA
Copy link

SparkQA commented Oct 9, 2018

Test build #4363 has finished for PR 22678 at commit cc34da8.

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

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")
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. @kiszk

@LantaoJin
Copy link
Contributor Author

Sorry for closing the conversation mistakenly @dongjoon-hyun . I will update the documentation soon.

### Related environment variables

<table class="table">
<tr><th>variable Name</th><th>Default</th><th>Meaning</th></tr>
Copy link
Member

Choose a reason for hiding this comment

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

variable -> Variable


Otherwise, the sbt-pom-reader plugin will use the `scala.version` specified in the spark-parent pom.

## Running Jenkins tests with enterprise Github
Copy link
Member

@kiszk kiszk Oct 11, 2018

Choose a reason for hiding this comment

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

enterprise Github -> GitHub Enterprise


./dev/run-tests-jenkins

If use an individual repository or an enterprise GitHub, export below environment variables before running above command.
Copy link
Member

@kiszk kiszk Oct 11, 2018

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?

<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.
Copy link
Member

@kiszk kiszk Oct 11, 2018

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`

<td><code>SPARK_PROJECT_URL</code></td>
<td>https://github.com/apache/spark</td>
<td>
The Spark project URL of (enterprise) GitHub.
Copy link
Member

Choose a reason for hiding this comment

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

ditto


./dev/run-tests-jenkins

If use an individual repository or an GitHub Enterprise, export below environment variables before running above command.
Copy link
Member

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?

<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.
Copy link
Member

Choose a reason for hiding this comment

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

nit: an -> a

@kiszk
Copy link
Member

kiszk commented Oct 12, 2018

retest this please

@kiszk
Copy link
Member

kiszk commented Oct 12, 2018

LGTM, pending Jenkins

@SparkQA
Copy link

SparkQA commented Oct 12, 2018

Test build #97303 has finished for PR 22678 at commit d8e7ad0.

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

@srowen
Copy link
Member

srowen commented Oct 12, 2018

Merged to master

@asfgit asfgit closed this in 541d7e1 Oct 12, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants