Skip to content

Conversation

@rb3ckers
Copy link
Contributor

@rb3ckers rb3ckers commented Dec 24, 2025

Creating a Merge request on at least one of our repositories on gitlab.com seems to always take > 30 seconds. This caused a panic that is fixed by this PR. After fixing that I could troubleshoot it and couldn't find any obvious reason except gitlab.com sometimes being extremely slow when creating an MR.

To solve that issue I ended up bumping the timeout to 60 seconds which also seems to be the default timeout used by Gitlab itself. I'm also open to other solutions if anyone has any suggestions.

I've verified that, with these changes, the MR can be created against our repository.

I wasn't sure if I should also create an issue for this first, if needed I can still do that.

Test

To test this pull request, you can run the following commands:

cd <to_package_directory>
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Timeout increased to accomodate slow merge request creation on gitlab.com
@rb3ckers rb3ckers changed the title Panic when create merge request times out fix(gitlab): Panic when create merge request times out Dec 24, 2025
@olblak
Copy link
Member

olblak commented Dec 24, 2025

Thanks for the pull request, you don't need to create an issue if you already open a pull request

@olblak
Copy link
Member

olblak commented Dec 24, 2025

In the future we may need to parametrize this setting

@olblak olblak enabled auto-merge (squash) December 24, 2025 17:35
@olblak olblak merged commit 14b92a7 into updatecli:main Dec 24, 2025
5 checks passed
@olblak olblak added the bug Something isn't working label Dec 25, 2025
@rb3ckers rb3ckers deleted the gitlab-mr-timeout branch January 5, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants