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

buildkite-agent 3.44.0 breaks on submodule mirrors with older git versions #1999

Closed
adamsb6 opened this issue Mar 7, 2023 · 2 comments
Closed

Comments

@adamsb6
Copy link

adamsb6 commented Mar 7, 2023

Version 3.44.0 includes #1959, which creates mirror directories for submodule repos. This PR guards against adding duplicate remotes by catching git exit code 3, which is what should be thrown according to the docs. Unfortunately, in earlier git versions, duplicates will result in exit code 128.

This includes at least version 2.25.1, the latest distributed with Ubuntu 20.04 LTS.

In our environment this meant that running more than one job for the same repo on an agent would break. We worked around by installing a later git version than was available in Ubuntu's repo.

See here for a repro case using the Ubuntu 20.04 Docker image: https://gist.github.com/adamsb6/29c3bf4cc81a6e59fff3955440d455c3

@moskyb
Copy link
Contributor

moskyb commented Mar 8, 2023

hi there! we're looking into the various intricacies of submodule/git mirror interactions. we recently merged a change from @jonahbull which removes the exit code 3 handling entirely - does this change resolve your issue?

@adamsb6
Copy link
Author

adamsb6 commented Mar 8, 2023

Thanks for the quick response! That PR should take care of this problem for us, if we're not adding remotes then we can't encounter the issue.

@adamsb6 adamsb6 closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants