-
Notifications
You must be signed in to change notification settings - Fork 433
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
fix: do not send setStatut + add memory cache on commit status list #5059
Conversation
if !sdk.StatusIsTerminated(nodeRun.Status) { | ||
continue | ||
var err error | ||
commitsMap, err = SendVCSEvent(ctx, db, store, proj, *wr, nodeRun, commitsMap) |
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 understand the commitsMap thing, but i think it could be nice to instanciate an object (VCSEventMessenger
?) that holds and hides this commitsMap
+ the vcsClient and then put the SendVCSEvent
function as a method of this object
if err := sendVCSEventStatus(ctx, db, store, proj, wr, &nodeRun, notif); err != nil { | ||
log.Error(ctx, "resyncCommitStatus> Error sending status %s %s err:%v", statusFound.State, details, err) | ||
if err := sendVCSEventStatus(ctx, db, store, proj.Key, wr, &nodeRun, notif, vcsServer.Name, client); err != nil { | ||
return commitsStatusMap, sdk.WrapError(err, "resyncCommitStatus> Error sending status %s %s err:%v", statusFound.State, details, err) |
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.
no need to display the error in the wrap
CDS Report build-all-cds#12761.0 ✘
|
@ovh/cds