-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-23044] Error handling for jira assignment #20236
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
@jerryshao this should fix it, but I don't have anything to merge to test this out -- would appreciate if someone could try it before we merge. |
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.
Yeah, that's about all we can do here. I'm not sure if there's an API for the /roles screen, and adding the user as a contributor, but it's rare enough that it's OK to handle manually.
Since you're here, would you like to try at add SPARK-23031 to this change? |
Test build #85973 has finished for PR 20236 at commit
|
@vanzin what exactly are you looking for? The one thing which would be easy is letting you write in an arbitrary jira id (no name searching or anything), that sound OK? I guess this bug isn't really a major issue so no urgency in getting this in, so I can add to this |
Yeah, arbitrary name is fine. I tried it yesterday and the script just yelled at me because it was not an integer. (Filtering out "Apache Spark" is bonus.) |
@squito thanks for the fix. I also don't have PRs to verify the changes, but I think catching exception should be enough. |
Test build #86185 has finished for PR 20236 at commit
|
Test build #86186 has finished for PR 20236 at commit
|
@vanzin @jerryshao want to take another look? Now it
sample session: https://gist.github.com/squito/de73fbd0b9c00961377068b91283e04c |
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.
Looks good but you have some style check failures.
dev/merge_spark_pr.py
Outdated
id = int(raw_assignee) | ||
assignee = candidates[id] | ||
except: | ||
# assume its a user id, and try to assign (might fail, then we just prompt again) |
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.
it's
Test build #86194 has finished for PR 20236 at commit
|
Test build #86197 has finished for PR 20236 at commit
|
Merging to master. |
What changes were proposed in this pull request?
How was this patch tested?
Couldn't really test the error case, just some testing of similar-ish code in python shell. Haven't run a merge yet.