Skip to content
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

[JENKINS-49332] Better error messages #225

Merged
merged 6 commits into from
Jun 18, 2020

Conversation

carlossg
Copy link
Contributor

@carlossg carlossg commented Feb 10, 2020

when github repo webhook can't be created

Don't throw exceptions as we are handling the error, just print to the log


This change is Reviewable

when github repo webhook can't be created

Don't throw exceptions as we are handling the error, just print to the log
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

This would really be useful, as I get these stack traces all the time. Would a cleaned-up version of this PR be welcome @KostyaSha?

@@ -2,6 +2,7 @@

import com.cloudbees.jenkins.GitHubRepositoryName;
import com.google.common.base.Function;
import com.google.common.base.Optional;
Copy link
Member

Choose a reason for hiding this comment

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

Seems to be a compilation error.

@KostyaSha
Copy link
Member

This would really be useful, as I get these stack traces all the time. Would a cleaned-up version of this PR be welcome @KostyaSha?

I were waiting user to fixup #226 but any working variant will be ok

@carlossg
Copy link
Contributor Author

I think I forgot to come back to finish this.
It should work now, with the fixed tests

@carlossg carlossg closed this May 12, 2020
@carlossg carlossg reopened this May 12, 2020
@carlossg
Copy link
Contributor Author

CI failing with not enough space on disk

@jglick
Copy link
Member

jglick commented May 12, 2020

I were waiting user to fixup #226

Ah, even better to not have to show an error at all because we never try to do something we are not permitted to do.

if we don't have admin permissions
@carlossg
Copy link
Contributor Author

I've changed it to not show the problem if there are no permissions, lowered the log level to debug and added more testing

@jimklimov
Copy link

About #226 - sorry I fell out of the loop, hope to get back to that soon. Or feel free to follow up with PRing wanted cleanups on top of that :)

@psalaberria002
Copy link

Can this one be merged? We have hundreds of repos adding the stacktrace to the log. It would be very nice to get that fixed.

@KostyaSha
Copy link
Member

@carlossg @jglick is it done?

@KostyaSha KostyaSha requested a review from jglick June 8, 2020 13:51
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Looks fine. Have not tested it.

@carlossg
Copy link
Contributor Author

carlossg commented Jun 8, 2020

yes it is done

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.

None yet

5 participants