Skip to content

Commit

Permalink
Fix test script for Jenkins in Databricks.
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?
This patch updates Spark's test script to point to the Databricks repository.

## How was this patch tested?
This is a test infra change.

Author: Reynold Xin <rxin@databricks.com>

Closes apache#39 from rxin/rxin-spark-testing.
  • Loading branch information
rxin authored and yhuai committed Aug 9, 2016
1 parent 9e6be80 commit 4ab2ce7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dev/run-tests-jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def print_err(msg):
def post_message_to_github(msg, ghprb_pull_id):
print("Attempting to post to Github...")

url = "https://api.github.com/repos/apache/spark/issues/" + ghprb_pull_id + "/comments"
url = "https://api.github.com/repos/databricks/spark/issues/" + ghprb_pull_id + "/comments"
github_oauth_key = os.environ["GITHUB_OAUTH_KEY"]

posted_message = json.dumps({"body": msg})
Expand Down Expand Up @@ -178,7 +178,7 @@ def main():
build_display_name = os.environ["BUILD_DISPLAY_NAME"]
build_url = os.environ["BUILD_URL"]

commit_url = "https://github.com/apache/spark/commit/" + ghprb_actual_commit
commit_url = "https://github.com/databricks/spark/commit/" + ghprb_actual_commit

# GitHub doesn't auto-link short hashes when submitted via the API, unfortunately. :(
short_commit_hash = ghprb_actual_commit[0:7]
Expand Down
10 changes: 5 additions & 5 deletions dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ def get_hadoop_profiles(hadoop_version):
"""

sbt_maven_hadoop_profiles = {
"hadoop2.2": ["-Pyarn", "-Phadoop-2.2"],
"hadoop2.3": ["-Pyarn", "-Phadoop-2.3"],
"hadoop2.4": ["-Pyarn", "-Phadoop-2.4"],
"hadoop2.6": ["-Pyarn", "-Phadoop-2.6"],
"hadoop2.7": ["-Pyarn", "-Phadoop-2.7"],
"hadoop2.2": ["-Phadoop-2.2"],
"hadoop2.3": ["-Phadoop-2.3"],
"hadoop2.4": ["-Phadoop-2.4"],
"hadoop2.6": ["-Phadoop-2.6"],
"hadoop2.7": ["-Phadoop-2.7"],
}

if hadoop_version in sbt_maven_hadoop_profiles:
Expand Down

0 comments on commit 4ab2ce7

Please sign in to comment.