Storage path prefix follow-up: deploy tidies and refuses review/./.. segments, per-app lifecycle rule and its age, pre-alpha.37 review apps (template #168, #169)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, php
- Ambito
- cloud, devops, documentation
Direzione di ricerca
Read the linked template issues #168 and #169 and docs#247, then check the template branch fix/storage-prefix-168-169 and its CHANGELOG.md for the final commits. Verify the documented GCLOUD_PATH_PREFIX rules, lifecycle prefix and age guidance, pre-alpha.37 migration steps, and stop warning path against that change; done when the docs accurately cover each behavior and the upgrade steps.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to docs#247 (closed, documented in de3025f), from template components-web-app#168 and #169. Fix on the template branch fix/storage-prefix-168-169, landing in the next template release after 2.0.0-alpha.37; the template's CHANGELOG.md will link the final commits. Found while working on #170.
GCLOUD_PATH_PREFIX rules (variables "Storage path prefix")
- The deploy now tidies the prefix exactly as php does (trims whitespace, squeezes doubled slashes, strips leading/trailing
/, adds one trailing/), sosite-a//stores review apps undersite-a/review/<slug>/. - The deploy fails before touching the cluster on a
.or..segment, or on a wholereviewsegment (review/,site/review):review/is where review apps store.reviews/ormy-review/are fine. Upgrade note: rename such a prefix first, moving its objects with it.
Lifecycle rule (ci-cd "Review app storage")
- One rule per prefixed app:
matchesPrefix: ["<GCLOUD_PATH_PREFIX>review/"](["review/"]only with no prefix). agecounts from each object's creation, not from the review app's stop, so pick an age longer than review apps live, or the rule deletes a running review app's uploads.
Review apps deployed before 2.0.0-alpha.37
- Their uploads sit at the bucket root. After their next deploy (which adds the
review/<slug>/prefix) those uploads 404 and the orphan scan no longer sees them. - Fix: redeploy with fresh fixtures (
CWA_CI_FIXTURES_PURGE=trueon the review fixture job), or stop and recreate the review app, then delete the old root objects by hand. - Stop review's warning (when the guarded delete fails) now prints the app's real path, e.g.
site-a/review/<slug>/, and the lifecycle prefix to rely on.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1h 20m
- PR unite (30g)
- 1
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 components-web-app/docs
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
components-web-app/docs#260 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
components-web-app/docs#259 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
components-web-app/docs#258 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
components-web-app/docs#257 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
components-web-app/docs#256 · 1 commento ·
Tutte le issue di components-web-app/docs
Issue simili
-
[测试] 等待仓库加载后再记录多仓库排序基线Forse già presa @myot233 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
area:arcade p3-medium ready-for-agent testing type:docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fderuiter/deruiter.dev#2369 ·
I maintainer di solito rispondono entro 1 giorno
-
area:devenv origin:agent type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
overengineeringstudio/effect-utils#1949 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ccch1mneyyy/dsh-TUI#1631 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MiniMax-AI/minimax-code#507 ·
I maintainer di solito rispondono entro 1 giorno