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

resolve logic errors introduced in #11077 and return 40x errors instead of 500 errors where possible #11810

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

jim-minter
Copy link
Contributor

fixes #11736

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

@jim-minter i'm failing to see how this addresses the missing branch behavior in the referenced issue?

case webhook.MethodNotSupported:
return errors.NewMethodNotSupported(buildapi.Resource("buildconfighook"), req.Method)
}
if _, ok := err.(*errors.StatusError); !ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

is the branch issue resolved by getting rid of the "default" from the switch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, and then passing err through untouched if it is of type *errors.StatusError.

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

[merge]

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

--- FAIL: TestWebhookGitHubPing (4.98s)
    webhookgithub_test.go:300: Wrong response code, expecting 200, got 500: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Internal error occurred: hook failed: \u003cnil\u003e","reason":"InternalError","details":{"causes":[{"message":"hook failed: \u003cnil\u003e"}]},"code":500}

…ors instead of 500 errors where possible
@jim-minter
Copy link
Contributor Author

Sorry, one missing err != nil check.
[test]

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

[merge]

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

looks like network flakes.
[test]

@bparees
Copy link
Contributor

bparees commented Nov 8, 2016

flake #10988
flake #10228
flake #10773
flake #9076

(quite an impressive collection)

[test]

@bparees
Copy link
Contributor

bparees commented Nov 9, 2016

flake #9886
[merge]

@bparees
Copy link
Contributor

bparees commented Nov 9, 2016

flake #10773
[merge]

@bparees
Copy link
Contributor

bparees commented Nov 9, 2016

flake #11750
flake #10773

[merge]

@bparees
Copy link
Contributor

bparees commented Nov 9, 2016

flake #11662
flake #11024
[merge]

@bparees
Copy link
Contributor

bparees commented Nov 10, 2016

[merge]

Ben Parees | OpenShift

On Nov 9, 2016 6:37 PM, "OpenShift Bot" notifications@github.com wrote:

continuous-integration/openshift-jenkins/merge FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11334/) (Base
Commit: c04cab8
c04cab8
)


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#11810 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEvl3nYa9RVmQJ7F6fAkI44NPO8P1K26ks5q8lkygaJpZM4KreA2
.

@bparees
Copy link
Contributor

bparees commented Nov 10, 2016

flake #10773
[merge]

@bparees
Copy link
Contributor

bparees commented Nov 10, 2016

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 6243982

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 6243982

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11346/) (Base Commit: 43fbf69)

@openshift-bot
Copy link
Contributor

openshift-bot commented Nov 10, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11346/) (Base Commit: ee5a124) (Image: devenv-rhel7_5347)

@jim-minter
Copy link
Contributor Author

flake #9076 again

@openshift-bot openshift-bot merged commit fc01fb7 into openshift:master Nov 10, 2016
@bparees
Copy link
Contributor

bparees commented Nov 10, 2016

well that has to be some sort of record.

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.

Triggering build with invalid branch will cause the invoke to fail and return a code 500
3 participants