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

CI/CD: image variants and the cache warm now run in one GitLab job

Aperta Adatta ai principianti
#228 1 commento 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
62/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
gitlab, shell

Direzione di ricerca

Leggi la funzione image_variants_and_warm in bin/devops/k8s.sh e la descrizione del job GitLab nell'issue per confermare il nome combinato del job. Poi aggiorna content/6.deployment/3.ci-cd.md alle righe 246 e 268, sostituendo i nomi separati di variants e warm con il job combinato image variants and warm <track>. Controlla la formulazione in content/6.deployment/4.variables.md alla riga 376. È completato quando le tre pagine descrivono un unico job per track; il link alla release attende che il template venga rilasciato.

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

Descrizione

From components-web-app/components-web-app#160 (commit 5f987be09ccf7ecfda261be61662020f7d72ea67, in the template's Unreleased section, so the next release after 2.0.0-alpha.30).

On GitLab, the image variants <track> and warm cache <track> jobs are now one job per track, image variants and warm <track> (the image_variants_and_warm function in bin/devops/k8s.sh). A separate warm job waited about 50 s for a runner after every deploy.

  • It runs the variants first and then the warm, in the same order as before (the warm must never come first, #153).
  • Each half keeps its switch: CWA_CI_IMAGE_VARIANTS_* and CWA_CI_WARM_CACHE_*, with production on unless "false" and the other tracks off unless "true". The job runs when either is on.
  • If one half fails, the other still runs. Either failure fails the job, which is allow_failure, so a live deploy is never marked failed.
  • The performance audit <track> jobs now needs: the combined job.
  • GitHub is unchanged: its steps already run one after another in the same job.

Pages to update:

  • content/6.deployment/3.ci-cd.md:246: lists image variants review/staging/canary/production as their own jobs.
  • content/6.deployment/3.ci-cd.md:268: says the warm runs "as its own job" and lists the warm cache <track> jobs.
  • Check content/6.deployment/4.variables.md:376 (CWA_CI_PRODUCTION_DISABLED removes "image variants, cache warm … jobs"); the wording can stay, but there's now one job for both.
  • Add the release link once the template version is released.

Upgrade note for downstream projects: copy .gitlab-ci.yml and bin/devops/k8s.sh. A project job that needs: either old job name must use the new name.

Lingua principale
Vue
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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

  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 components-web-app/docs

Tutte le issue di components-web-app/docs

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.