Scope pull request uploads to the pull request
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Start by reading src/auth.ts, which the issue identifies as enforcing the current upload policy, then trace how cache requests are routed and how vp run addresses cache scopes. The proposal leaves endpoint design, fallback behavior, and retention unresolved, so define those decisions before implementation. Done means same-repository PR runs can write and read their own scope with default-branch fallback, while default-branch builds cannot read PR scopes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Motivation
A pull request can't reuse cache entries from its own earlier runs. Only push jobs on the namespace's default branch can upload (src/auth.ts), so pull_request runs get 403 write_policy and can only restore what the default branch published. After each new push to a PR, tasks whose inputs differ from the default branch rebuild, even if the PR's previous run already built them.
Uploading PR results into the namespace itself would let unreviewed PR code publish entries that default-branch builds restore, so PR entries need their own scope.
Proposal
- A
pull_requestrun uploads to a scope for its PR, derived from the token'srefclaim (refs/pull/<n>/merge). - PR runs read their PR scope first, falling back to the default branch. Default-branch builds never read PR scopes.
- Default-branch publishing is unchanged.
This covers same-repository PRs only; fork PR runs in public repositories don't get id-token: write.
Open questions
- Endpoint: how a client addresses a PR scope (e.g.
/projects/<namespace>/pulls/<n>), with the write policy checking that the token'srefmatches it. - Fallback: the server could serve default-branch entries on a PR-scope miss, or
vp run(vite-task) could read both endpoints. - Retention: PR scopes should expire soon after the PR closes or goes idle, within the namespace's limits.
- Lingua principale
- TypeScript
- Stelle
- 8
- Fork
- 0
- Merge medio
- 2g 15h
- PR unite (30g)
- 33
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 voidzero-dev/vite-plus-remote-cache-cloudflare
-
Dependency DashboardAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#6 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di voidzero-dev/vite-plus-remote-cache-cloudflare
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
formbricks/formbricks#9918 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
thecodacus/pithagoras#364 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
openclimatefix/quartz-frontend#823 ·
I maintainer di solito rispondono entro 4 giorni
-
area:agent-manager community needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
`contacts.create` posts to `/audiences/undefined/contacts` when `audienceId` is undefinedForse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
resend/resend-node#1176 ·
I maintainer di solito rispondono entro 1 giorno