Skip to content
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 dependencies #286

Merged
merged 6 commits into from
Aug 28, 2024
Merged

Update dependencies #286

merged 6 commits into from
Aug 28, 2024

Conversation

souleb
Copy link
Member

@souleb souleb commented Aug 15, 2024

Description

Update dependencies, notably github.com/google/go-github/v64.

Signed-off-by: Soule BA <bah.soule@gmail.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @souleb

@souleb
Copy link
Member Author

souleb commented Aug 15, 2024

gitlab tests keep failing. I tried a new version locally without success. @makkes any idea?

@makkes
Copy link
Member

makkes commented Aug 15, 2024

gitlab tests keep failing. I tried a new version locally without success. @makkes any idea?

I'll take a look.

@makkes
Copy link
Member

makkes commented Aug 15, 2024

I was able to find out that the failures start appearing with github.com/xanzy/go-gitlab v0.106.0 and v0.105.0 still works. Need to dig deeper what changed in 106.

@makkes
Copy link
Member

makkes commented Aug 15, 2024

I bisected the upstream codebase and identified the bad commit to be xanzy/go-gitlab@f49ba02. I suppose we're depending on a specific type of error to be returned.

The upstream gitlab library changed the way it handles 404s returned
from the GitLab instance in the way that it now simply returns a
sentinel error (see xanzy/go-gitlab@f49ba02#diff-044b5a63fdba539bf87d25040d91912aec34173e76af7b9e0f40d14da57edebeR973-R974)
for details.

We now need to check for that sentinel error explicitly and return an
appropriate gitprovider error type.

Signed-off-by: Max Jonas Werner <max.werner@associmates.eu>
@makkes
Copy link
Member

makkes commented Aug 15, 2024

@souleb I pushed a commit to fix the e2e errors for GitLab. Please see the commit message for an explanation. It's awful. 🤦🏻‍♂️ They just changed the API surface in a breaking way.

@makkes
Copy link
Member

makkes commented Aug 15, 2024

There seems to be one case missing somewhere but I don't have time today to dig into it.

@stefanprodan
Copy link
Member

Let's go with go-gitlab v0.105.0 if that's the most recent version that works for us.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan
Copy link
Member

I fixed the GitLab breaking changes, but now GitHub broke their public API, the fix is here google/go-github#3248 with no release for it. I will try pin go-github to main.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added the dependencies Pull requests that update a dependency file label Aug 28, 2024
@stefanprodan stefanprodan merged commit f087250 into main Aug 28, 2024
9 checks passed
@stefanprodan stefanprodan deleted the update-go-github-63 branch August 28, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants