Make bitbucket server/data center git commit status functionality more robust#701
Make bitbucket server/data center git commit status functionality more robust#701gdasson wants to merge 1 commit intofluxcd:mainfrom
Conversation
Signed-off-by: Gaurav Dasson <gaurav.dasson@gmail.com>
stefanprodan
left a comment
There was a problem hiding this comment.
Hey @gdasson thanks for this, but we can't make this controller depend on another. I propose you open a new PR with just the bug fix. To handle the reasons, first we need to move them to fluxcd/pkg then we can use those here without adding cross-controller dependencies.
|
@stefanprodan thanks for the review and feedback. What is the process to add constants to |
@gdasson It should be fine to just open a PR adding the necessary reasons in https://github.com/fluxcd/pkg/blob/b60db8e44ea93b1a27a05b5083d77d9c56123e9f/apis/meta/conditions.go#L123 along with the other reasons. And then another PR in kustomize-controller using these new constants from pkg repo. We haven't had any formal process for adding such common constant values. |
|
@gdasson can you please open a separate PR to fix the bug so we can include it in the next patch release? The handling of status conditions can't go into a patch release and these should cover all Git providers not only BitBucket. |
This is an extension to this initial PR
This PR offers the below:
SUCCESSFULorFAILEDbased on event severity typesinfoorerrorrespectively.For some
infoevents, the bitbucket server build status is incorrectly being set asSUCCESSFUL. For example:DependencyNotReadyshould ideally be set asUNKNOWNProgressing(for ex: Health checks still haven't passed),should ideally be set asINPROGRESSThis PR adds these functionalities.
Reference: This REST API document shows the different Bitbucket server build status states available for use.
Screenshot to show the different states on Bitbucket Server UI
