-
Notifications
You must be signed in to change notification settings - Fork 24
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
Could not retrieve pipeline status #328
Comments
Ah, it looks like we were swallowing an error there. I started logging it to the PR in #341. Would you mind swapping to that one, and see if the logged error makes sense? |
Cool, will try this again after the holiday break. Thanks @djeebus |
Hi @djeebus , I tried using So probably that line doesn't return a proper pipeline making it bypass the length check? |
Ok, I've added a bunch more fun debugging lines. Take a look when it finishes building, and let's try the new version, see if it spits out any interesting data 🤞 |
@djeebus , yeah confirmed that it was not able to detect any pipelines.
And that means this didn't produced any output since the range is empty. I looked into the implementation of ListProjectPipelines and it looks correct based from this. So at this point not sure yet if why is that not getting the list of pipelines. Side note, go-gitlab was deprecated in github and moved to gitlab. But it just happened recently so I don't think it affects anything. |
Closing this since there is no activity and not a major issue on our end. |
I'm seeing this error from the pod logs.
I confirmed that the token I'm using have the proper permissions to get the pipline status.
I'm using the latest version,
0.0.0-pr298
.Based from the warning above, this line is returning
errNoPipelineStatus
.Tracing back further, it is calling this GetLastPipelinesForCommit fucntion which is returning
nil
to the caller. That means it was not able to detect any pipeline for the particular commit sha.Going further down the functions being called, it originates from this GetPipelinesForCommit which should log
gitlab client: could not get pipelines for commit
and return an error when it was not able to find a pipeline for the commit. I didn't see that error message on our logs so that means that function was able to detect a pipeline for a particular commit.So either
GetPipelinesForCommit
orGetLastPipelinesForCommit
is not returning the proper value. I'm curious also howpipelines
looks like becauseGetLastPipelinesForCommit
depends on it.Looking at the curl output above, it should be able to detect pipelines with
source
set toexternal
.I didn't perform other debugging other than just reading the code. Let me know if I missed anything.
The text was updated successfully, but these errors were encountered: