matrix-org / matrix-org/setup-python-poetry
Make use of `restore-keys`
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 1
- フォーク
- 5
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 1
説明
If we don't have a cache-hit for the poetry-managed venv, we'll end up recreating it from scratch. We could save a little bit of time by restoring from a different cache with a similar name.
We could probably make use of restore-keys here:
Probably restore-keys: poetry-venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}?
Would need to test it by making a small change to the lockfile and seeing if we modify a cached venv rather than recreating it from scratch. Or we could just make the change and YOLO it.
Either way, it's one for the wishlist.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
action.yml の65–70行目を開き、既存のキャッシュ設定を確認します。提案されている restore-keys の動作を追加し、小さな lockfile の変更を加えて、キャッシュされた仮想環境が最初から再作成されるのではなく再利用されるか確認してテストします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, python
- 領域
- ci-cd
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100