-
Notifications
You must be signed in to change notification settings - Fork 29k
[WIP][SPARK-7018][Build]: Refactor dev/run-tests-jenkins into Python #7401
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
31b51de
initial cut of refactored run-tests-jenkins script into python
f2a1dc6
fixed pep8 issues
d202c42
fixed list bug when finding log files
3ae1d49
correctly escape newlines for long strings
2a3d67d
fixed numerous bugs, updated to use urllib2 over curl, removed 'find'…
d83c535
fixed typos, style, and linting issues
3acac90
fixed indenting with list
395928d
fixed typo
30f90bc
fixed merge conflicts
4765dc8
added variables to remove indents, fixed ' : ' => ': ' in maps
e90fdeb
moved if statement for urllib2 into the try block
64c13c1
updated token passing for github oauth
85aaf76
added subprocess_check_call() as backport from python 2.7, moved subp…
f756098
removed unnecessary escapes
39f6a1f
changed test process to only return the returncode
7b11665
fixed serialization error between int and string, created an error re…
cf110bc
fixed reference error and pep8 bugs
c9e5c5f
commented out tests and fixed test result output
5272381
printing of the pr results
528279a
fixed strip issue with PR results, from strip => rstrip
6a9ed32
run-tests-jenkins now properly runs the tests, removed license from f…
22f9be8
reverted license
5d63bc5
removed mima to fail binary compatibility checks
33e3143
reverted mima excludes
d82567a
set accumulator test suite to fail
2117c64
reverted accumulator test in favor of graphx test to only trigger 'gr…
831376e
fixed scala style check
d76f559
fixed scala style checks
05d9ef4
reverted scala test failure, added pyspark failure
0ad51b4
updated to add --absolute-names with tar command for archiving logs
a218baf
reverting python test
2853b60
fixed merge conflicts
fe397fb
updated to account for PR #7883
206930e
removed 'send_archived_logs' function
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
moved if statement for urllib2 into the try block
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,9 @@ def post_message_to_github(msg, ghprb_pull_id): | |
| data=posted_message) | ||
| try: | ||
| response = urllib2.urlopen(request) | ||
|
|
||
| if response.getcode() == 201: | ||
| print(" > Post successful.") | ||
| except urllib2.HTTPError as http_e: | ||
| print_err("Failed to post message to GitHub.") | ||
| print_err(" > http_code: %s" % http_e.code) | ||
|
|
@@ -61,9 +64,6 @@ def post_message_to_github(msg, ghprb_pull_id): | |
| print_err(" > urllib2_status: %s" % url_e.reason[1]) | ||
| print_err(" > data: %s" % posted_message) | ||
|
|
||
| if response.getcode() == 201: | ||
| print(" > Post successful.") | ||
|
|
||
|
|
||
| def send_archived_logs(): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI we no longer need this feature and are going to remove it. Just commenting here so that it's not accidentally re-added as part of this PR. |
||
| print("Archiving unit tests logs...") | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think that we should keep this feature for now, since I don't necessarily trust the stability / configurability of the Jenkins plugin that also did this. Disregard my earlier comments / proposal to remove this. Let's refactor the code a bit, but we should definitely keep this.