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

[Repo Assist] ci: add NuGet and uv dependency caching to build-and-test workflow

Aperta
#259 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
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
github-actions, python
Ambito
ci-cd, devops

Direzione di ricerca

Apri .github/workflows/build-and-test.yml e ispeziona i passaggi di ripristino nel workflow build-and-test. Verifica i percorsi della cache e le chiavi dei file di lock proposti rispetto ai comandi di ripristino NuGet e uv esistenti, quindi esegui il workflow o i controlli pertinenti. Il lavoro è completato quando vengono utilizzate entrambe le cache delle dipendenze e il workflow continua a completarsi correttamente.

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

Descrizione

agentic-workflows automation repo-assist

🤖 This is an automated pull request from Repo Assist, an AI assistant for this repository.

Summary

Adds dependency caching to the build-and-test CI workflow to avoid re-downloading packages on every run.

Changes

Two actions/cache@v4 steps are inserted before the restore steps:

Cache Path Key
NuGet packages ~/.nuget/packages paket.lock hash
uv Python packages ~/.cache/uv uv.lock hash

Both caches fall back to prefix-only restore keys so a partial cache hit still saves time when lock files change.

Motivation

Currently every CI run restores all .NET NuGet packages and all Python packages from scratch. These packages rarely change between commits, so caching them can cut the restore step from ~30–60 s down to a few seconds for cache hits.

Trade-offs

  • Cache invalidation is automatic: whenever paket.lock or uv.lock changes, the cache key changes and a fresh download occurs.
  • Storage is minimal (GitHub Actions cache is free up to 10 GB per repo).
  • No behavioural change — only the restore speed improves.

[!WARNING]
Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 24596089857 -n agent -D /tmp/agent-24596089857

# Create a new branch
git checkout -b repo-assist/eng-ci-caching-2026-04-18-3e72f288219c2ec4 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-24596089857/aw-repo-assist-eng-ci-caching-2026-04-18.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-ci-caching-2026-04-18-3e72f288219c2ec4
gh pr create --title '[Repo Assist] ci: add NuGet and uv dependency caching to build-and-test workflow' --base main --head repo-assist/eng-ci-caching-2026-04-18-3e72f288219c2ec4 --repo fable-compiler/Fable.Python

Generated by Repo Assist · ● 2M ·

Lingua principale
F#
Stelle
144
Fork
10
Merge medio
1g 16h
PR unite (30g)
23

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.

Altre issue di fable-compiler/Fable.Python

Tutte le issue di fable-compiler/Fable.Python

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.