d4x1 commented on code in PR #6548:
URL:
https://github.com/apache/incubator-devlake/pull/6548#discussion_r1418610890
##########
backend/python/plugins/azuredevops/azuredevops/streams/builds.py:
##########
@@ -37,26 +37,26 @@ def convert(self, b: Build, ctx: Context):
if not b.start_time:
return
- result = None
+ result = devops.CICDResult.RESULT_DEFAULT
if b.result == Build.BuildResult.Canceled:
- result = devops.CICDResult.ABORT
+ result = devops.CICDResult.FAILURE
elif b.result == Build.BuildResult.Failed:
result = devops.CICDResult.FAILURE
elif b.result == Build.BuildResult.PartiallySucceeded:
- result = devops.CICDResult.SUCCESS
- elif b.result == Build.BuildResult.Succeeded:
+ result = devops.CICDResult.FAILURE
Review Comment:
Honestly speaking, I think it should be considered as "FAILURE" althrougth
its name is `PartiallySucceeded`.
##########
backend/python/plugins/azuredevops/azuredevops/streams/builds.py:
##########
@@ -37,26 +37,26 @@ def convert(self, b: Build, ctx: Context):
if not b.start_time:
return
- result = None
+ result = devops.CICDResult.RESULT_DEFAULT
if b.result == Build.BuildResult.Canceled:
- result = devops.CICDResult.ABORT
+ result = devops.CICDResult.FAILURE
elif b.result == Build.BuildResult.Failed:
result = devops.CICDResult.FAILURE
elif b.result == Build.BuildResult.PartiallySucceeded:
- result = devops.CICDResult.SUCCESS
- elif b.result == Build.BuildResult.Succeeded:
+ result = devops.CICDResult.FAILURE
Review Comment:
Honestly speaking, I think it should be considered as "FAILURE" althrough
its name is `PartiallySucceeded`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]