Cover the pre-commit CI configuration in Renovate and the CI cache key

オープン 初心者向け
#579 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, json, yaml
領域
ci-cd, tooling

調査の方向性

docs/decisions/0005-commit-hook-framework.md の ADR-0005 から始め、次に .github/renovate.json5 を開き、既存の managerFilePatterns エントリが .skillsaw.yaml に対して持つ形をコピーして、.pre-commit-config.yaml と .github/pre-commit-ci.yaml の両方が対象になるようにする。.github/workflows/ci-workflow.yaml では、キャッシュキーに使われる hashFiles 呼び出しを両方のファイルを受け取るように拡張しつつ、restore-keys はプレフィックスベースのままにし、キーは任意の ref ではなくチェックアウトされたツリーから導出したままにする。完了とは、どちらかのファイルを編集するとキーが変わることを、文書化されたチェックまたはテストが示している状態を意味する。

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

説明

feature infra needs-human risk/low triaged

Context

ADR-0005 adds .github/pre-commit-ci.yaml. Two CI integrations still assume a single configuration:

  1. .github/renovate.json5 has a managerFilePatterns entry for .skillsaw.yaml, but none for either pre-commit file. Renovate cannot update hook revs in the CI configuration.
  2. .github/workflows/ci-workflow.yaml sets the cache key from hashFiles('.pre-commit-config.yaml') only. A change to the CI configuration does not change the cache key.

Done when

  1. .github/renovate.json5 manages hook revs in both .pre-commit-config.yaml and .github/pre-commit-ci.yaml.
  2. The cache key hashes both files: hashFiles('.pre-commit-config.yaml', '.github/pre-commit-ci.yaml').
  3. restore-keys stays prefix-based.
  4. A test or a documented check shows that a change to either file changes the key.
  5. The key derives from the checked-out tree. It must not read a ref or a branch tip.

Out of scope

  • The cutover itself.
  • Retiring the cache bootstrap.

Related

  • ADR-0005 follow-up "Renovate and CI cache keys" (docs/decisions/0005-commit-hook-framework.md)

(AI generated)

主要言語
Go
スター
7
フォーク
9
平均マージ
22時間 37分
マージ済み PR(30日)
118

環境構築

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

はじめの一歩

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

redhat-et/ProtoBot のほかの issue

redhat-et/ProtoBot の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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