Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ 初心者向け
#228 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
gitlab, shell

調査の方向性

bin/devops/k8s.sh の image_variants_and_warm 関数と、issue にある GitLab ジョブの説明を読み、結合後のジョブ名を確認してください。そのうえで content/6.deployment/3.ci-cd.md の246行目と268行目を更新し、variants と warm の個別のジョブ名を、結合したジョブ image variants and warm <track> に置き換えてください。content/6.deployment/4.variables.md の376行目の表現も確認してください。3つのページがそれぞれトラックごとに1つのジョブを説明していれば完了です。リリースへのリンクは、テンプレートが公開されるまで待ちます。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
1時間 20分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

components-web-app/docs のほかの issue

components-web-app/docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。