actions / actions/setup-python
PIP cache should cache the installed packages as well
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.2k
- フォーク
- 739
- 平均マージ
- 6日 18時間
- マージ済み PR(30日)
- 1
説明
Description:
Currently, setup-python caches only the ~/.cache/pip directory to avoid redownloads. However, it doesn't cache the installed packages. As some package have lengthy installation steps, this leads to delays in builds.
You can see the current behaviour for example in https://github.com/crabhi/setup-python-cache-test/actions/runs/1789016634 (or in attached build.txt) - the pip install output shows "Collecting" and "Installing" instead of "Requirement already satisfied" for all packages.
Justification:
For example installing the ansible package takes well over a minute even if it's already downloaded.
Are you willing to submit a PR?
Yes, I can try.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンク先の再現ワークフローにおける setup-python の現在の ~/.cache/pip のキャッシュ動作と pip install ステップを追跡します。キャッシュされたパッケージとインストールされたパッケージのパスを比較し、復元されたキャッシュによって pip がパッケージを再インストールせずに "Requirement already satisfied" と報告する場合の変更を確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, python, typescript
- 領域
- ci-cd
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100