Skip to content

Conversation

@wass3r
Copy link
Collaborator

@wass3r wass3r commented Jul 14, 2022

closes go-vela/community#643

most details on this can be found in the issue above. i commented some of the changes.

we also added some TODOs for things to look at in lieu of creating new issues to start some conversation and not lose track of it.

we are adding to top of HEAD since there were only two minor merges that only impact tests.

Comment on lines -405 to -412
// check if the retry limit has been exceeded
if i < retryLimit {
logrus.WithError(retErr).Warning("retrying")

// continue to the next iteration of the loop
continue
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

opted to remove this retry logic since ConfigBackoff is already retrying 5x. if that fails it's likely this is just failing, period.

@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #671 (c0f87af) into master (a831efd) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #671      +/-   ##
==========================================
- Coverage   55.07%   54.96%   -0.11%     
==========================================
  Files         195      195              
  Lines       15926    15956      +30     
==========================================
  Hits         8771     8771              
- Misses       6781     6811      +30     
  Partials      374      374              
Impacted Files Coverage Δ
api/build.go 1.65% <0.00%> (-0.02%) ⬇️
api/webhook.go 0.00% <0.00%> (ø)

b, _ = database.GetBuild(b.GetNumber(), r)
// TODO: this can be dropped once we return
// the created build above
b, err = database.GetBuild(b.GetNumber(), r)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if we don't handle any potential errors here, we will get issues downstream from here

h.SetStatus(constants.StatusFailure)
h.SetError(retErr.Error())

return
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we probably don't want to return a build if there was an error. this also creates a conflict because this sets a 500 return code that later gets changed to a 200.

@wass3r wass3r marked this pull request as ready for review July 14, 2022 21:52
@wass3r wass3r requested a review from a team as a code owner July 14, 2022 21:52
Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

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

lgtm

@wass3r wass3r merged commit d475046 into master Jul 15, 2022
Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

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

lgtm

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.

Fix panic in webhook intake

7 participants