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
Update gitlab API to version v4 #2068 #2161
Conversation
|
|
|
thanks for this! so it sounds like status API is broken on the gitlab end? can you provide some more details so we can document as a known issue and maybe link to the gitlab issue? |
c9a90b5
to
65f60f9
Compare
|
@bradrydzewski don't know what is wrong. According to gitlab docs, the implementation is correct. Also I've rebased code onto master. I can deal with commit status in separate issue, if you want (: |
|
@vanadium23 maybe check to make sure you have for example |
|
Adding the scheme to |
|
@bradrydzewski, yes, problem was in the scheme, because I set it as localhost (: |
remote/gitlab/client/project.go
Outdated
| @@ -1,17 +1,16 @@ | |||
| package client | |||
|
|
|||
| import ( | |||
| b64 "encoding/base64" | |||
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.
remove alias and use base64 package name below
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.
Done.
65f60f9
to
babe5ed
Compare
|
this issue closes #2068 (don't know why github doesnt link these issues when the issue # is in the title) btw. Gitlab decided to keep the v3 api around a bit longerbecause they had too many v3 api requests to their site.. So latest gitlab still works with drone which is good |
|
@bradrydzewski everything is fine? |
babe5ed
to
6074a01
Compare
|
ok, sorry for the delays. thanks again for this! I plan to snapshot rc.4 on monday for those waiting for a tagged release. |
|
So we've been working on upgrading our Drone version to 0.8 - installing and delivering on rc3. rc4 is released and all of a sudden doesn't work with our supported version of GitLab? So to use Drone, we now need to do a major version upgrade of GitLab? As @thomasf suggests - v3 is still around. By migrating to v4 and not supporting any backward compatibility, you are really making this difficult for us. |
|
I don't think it's unfair to require the v4 API, the v3 API will not be |
|
If we wrote some code to allow us to add a flag to the startup in order to use the v3 version, would you accept it? |
|
@Spedge no worries. I just merged #2215 I ended up just copying the old gitlab code into a gitlab3 folder so that we have old and new code in sibling packages. This way I didn't have to make any major code changes in drone. remote/gitlab
+remote/gitlab3I then added an environment variable that you can use to switch: This change is available in the |
|
I've just tried out the |
|
Thanks Guy for the quick reply, happy to help! |
|
Brilliant, thanks Brad - really, really appreciate the quick turnaround on this. |
Hello, fellows.
I've moved drone gitlab client from api/v3 to api/v4, also slightly change unit test so they've been passing, but imo we need to refactor them in the way other clients do.
I've tested it against local gitlab and gitlab.com and both works, except commit status is not changing, but it's broken from gitlab API.