[Repo Assist] ci: add NuGet and uv dependency caching to build-and-test workflow
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
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
🤖 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.lockoruv.lockchanges, 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 DeniedThis 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
workflowspermission 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fable-compiler/Fable.Python
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fable-compiler/Fable.Python#117 ·
-
Pandas binding Apertahelp wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fable-compiler/Fable.Python#65 · 5 commenti ·
-
Support for Attributes? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fable-compiler/Fable.Python#48 · 5 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
fable-compiler/Fable.Python#5 · 7 commenti ·
Tutte le issue di fable-compiler/Fable.Python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
automated issue report
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
facebookincubator/velox#19143 ·