clone / fetch operations are extremely slow on gitlab cloud repos
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 408
- 平均マージ
- 2日 57分
- マージ済み PR(30日)
- 7
説明
Reproduces on pygit2 1.17.0/1.18.0 / python 3.11 on Mac / Linux:
import pygit2
pygit2.clone_repository("https://gitlab.com/antora/antora", "/tmp/antora")
Takes more than 10 minutes, while the cli equivalent:
git clone https://gitlab.com/antora/antora /tmp/antora
Takes a few seconds.
Started happening ~10 days ago in our production env, worked well before and still works well for github and bitbucket hosted repos (moving the problematic repos to github solves it).
Started happening out of no where - we didn't deploy or made any change in our environment.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
レポートに示されている pygit2.clone_repository の呼び出しから始め、その動作を GitLab リポジトリに対する git CLI の動作と比較してください。Python 3.11 で pygit2 1.17.0 と 1.18.0 を使って再現し、その後、GitHub と Bitbucket の clone は遅くないのに、なぜ GitLab の clone は遅いのかを調査してください。clone と fetch が CLI と同程度の時間で完了すれば完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, gitlab, python
- 領域
- devtools, networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100