Older Git and LFS versions installed in Bamboo can cause delay in build when using Automatic branch merging
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
When LFS is enabled for a repository and Automatic branch merging is enabled, plan branches may spend a significant amount of time ~35 minutes to 1 hour in the queue before it starts building a new change.
環境
This applies to Bamboo DC or server versions.
診断
- Perform a thread dump
The analysis will show the threads are blocked waiting for a slow-performing LFS thread.
... com.atlassian.bamboo.plugins.git.GitCommandProcessor.runLfsPullCommand(GitCommandProcessor.java:575) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout(NativeGitOperationHelper.java:491) ...
原因
- It is potentially caused by a performance bottleneck when older Git and LFS versions are installed and used (e.g. Git 1.8.3, LFS 2.10.0).
ソリューション
- Upgrade Git and LFS to a more recent supported version.