matrix-org / matrix-org/setup-python-poetry

Make use of `restore-keys`

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
言語のデータがありません
スター
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:

https://github.com/matrix-org/setup-python-poetry/blob/71e0c442d1dff598316bd217a8c7afe86a83958f/action.yml#L65-L70

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

action.yml の65–70行目を開き、既存のキャッシュ設定を確認します。提案されている restore-keys の動作を追加し、小さな lockfile の変更を加えて、キャッシュされた仮想環境が最初から再作成されるのではなく再利用されるか確認してテストします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions, python
領域
ci-cd
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。