Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Make use of `restore-keys`

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
github-actions, python
Ambito
ci-cd

Direzione di ricerca

Apri action.yml alle righe 65–70 e verifica la configurazione della cache esistente. Aggiungi il comportamento proposto di restore-keys, quindi testalo apportando una piccola modifica al file di lock e verificando se l’ambiente virtuale memorizzato nella cache viene riutilizzato invece di essere ricreato da zero.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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.

Lingua principale
Nessun dato sulla lingua
Stelle
1
Fork
5
Merge medio
2g 22h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.