opendevstack / ods-pipeline

Alternative ODS CI/CD pipeline based on Tekton / OpenShift Pipelines
Apache License 2.0
13 stars 5 forks source link

Upload of artefacts fails with 400 Bad Request #566

Closed michaelsauter closed 2 years ago

michaelsauter commented 2 years ago

When there is a pipeline run for a commit for which artefacts have been uploaded already, some artefacts fail to upload with 400 Bad Request (indicating a re-upload of artefacts, which should in theory be prevented by the artefacts manifest).

michaelsauter commented 2 years ago

I found the cause for this one. ODS Pipeline searches for existing artifacts to avoid uploading twice. The search returned an empty list, so the finish tasked tried to upload again, which fails. Turns out the search in Nexus was broken: the disk usage was over the high water mark (90%), which causes the search to return empty lists (but no error code!). I fixed the search by running a cleanup on Nexus. Now the search works again, and the artifacts are detected again.

So this problem is actually out of our control ... as long as Nexus does not return any kind of error, ODS Pipeline cannot distinguish between an empty list and the "broken search" state. Therefore I am closing this issue.