notifications: regression/ recipients with scope
メンテナーはふだん 2 日以内に返信
@felipebergamin がすでに取り組んでいます。
2026年10月22日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- backend, ci-cd, documentation, testing
調査の方向性
まず、backend/data/notifications/subscriptions/ 配下にある既存のサブスクリプションファイルと、typeModels で使用されている Pydantic モデルを調査します。次に、backend/data/notifications/metrics/ を追加して docs/notifications.md を更新する前に、現在のパーサーと CI 検証テストを追跡します。完了の条件は、既存のすべてのファイルを読み込めること、無効なファイルによってファイルおよびフィールドのエラーとともに CI が失敗すること、そして受信者の同値性がテストされていることです。
索引モデルが issue の本文から書いたものです。
説明
Problem
[REGRESSION] Cc is the default_recipients of the tree file whose url matches the issue (_get_default_tree_recipients in helpers/common.py). Branch and architecture are ignored. The same list is also Cc on the daily [STATUS] summary.
Change
[REGRESSION] Cc moves to backend/data/notifications/regression/. default_recipients stays in subscriptions/ and stays the [STATUS] Cc. Do not remove or empty it. Automatic sending stays maestro build issues. Regzbot Cc, REGZBOT_TREES, and KERNELCI_REPLYTO stay in helpers/common.py.
The first commit copies recipients once: for every subscriptions/*.yaml that is not *_hardware.yaml, including files with no reports key, write regression/<tree>.yaml with one entry whose recipients are that file's default_recipients, copied unchanged (display name included). Skip files with an empty list. This is committed data. Do not add a command or any runtime read of subscriptions/ to fill regression/. After the commit, regression/ is edited by hand.
# regression/default.yaml
# Replaces KERNELCI_RESULTS on the regression path only. The [STATUS] cron
# keeps --add-mailing-lists and the constants in common.py.
to: [email protected]
# regression/stable.yaml — top-level key must be a tree key in subscriptions/
stable:
- recipients: [[email protected]] # no scope keys: every build issue on this tree's URL
- branch: [linux-6.12.y, linux-6.6.y]
architecture: [arm64]
recipients: [[email protected]]
| Key | Values | Matched against |
|---|---|---|
recipients |
RFC 5322 strings, ≥1, stored and sent unchanged | — |
issues |
build only |
issue kind |
branch |
str or list | git_repository_branch already returned by kcidb_issue_details (first incident, the branch printed in the mail) |
architecture, config_name, compiler |
str or list | any row already returned by kcidb_build_incidents |
No new query. An entry matches when every key it sets is satisfied. Cc is the union of matching entries, deduplicated. An entry with only recipients matches every build issue on that tree's URL. platform, origin, hardware-keyed files, and issues other than build are validation errors.
--to, --cc, --add-mailing-lists, and --ignore-recipients keep today's semantics; --ignore-recipients skips regression/. generate_test_report does not use scoped entries: its Cc is the union of entries that have no scope keys, matched by URL, which is today's list.
Implementation
typeModels/notificationRecipients.py:RecipientEntry(pydantic,extra="forbid", str-or-list normalized to list),RecipientDefault(toonly).load_recipient_files(directory, *, allowed_keys, allowed_issues) -> dict[str, list[RecipientEntry]]. Each tree key must exist insubscriptions/; the loader records that tree'surl. Two subscription files with the sameurlis a validation error. Errors carry file, entry index, and key.- Commit the copied
regression/<tree>.yamlfiles. helpers/common.py: replace_get_default_tree_recipientswithresolve_regression_recipients(issue, build_incidents) -> list[str], reading onlyregression/.send_email_reportstops calling the lookup;generate_issue_reportpassesrecipients=.generate_test_reportpasses the unscoped entries for that URL.- On the regression path, the list address used when
--add-mailing-listsis set comes fromregression/default.yamlinstead ofKERNELCI_RESULTS. Reply-To and regzbot behavior are unchanged. - Header line in
issue_build.txt.j2andissue_boot.txt.j2:Cc from: regression/<tree>.yaml. No header change intest_report.txt.j2. docs/notifications.md: regression Cc is edited inregression/;default_recipientsis the[STATUS]list only.
Tests
Loader fixtures: valid, unknown tree, duplicate URL, unknown key, platform, origin, issues: [boot]. Resolver fixtures: branch, architecture, no match, dedup, scope-less entry matches all, test-report path ignores scoped entries. One test loads the real regression/ directory so an invalid committed file fails pytest -m unit.
Acceptance
- After the copy commit, every tree's
[REGRESSION]Cc equals its olddefault_recipients, and[STATUS]Cc is unchanged - A scoped entry is Cc'd only when the branch and a build incident match
- An invalid file fails CI with file, entry, and key
- The build and boot bodies name the
regression/file
#2159 is rebased onto this scope: keep the loader and validation work, drop the per-recipient issues list, the rewrite of the subscription files, and the metrics directory.
Closes #1080.
- 主要言語
- Python
- スター
- 10
- フォーク
- 31
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kernelci/dashboard のほかの issue
-
notifications
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
[Labs] filter tree, hardware, and issue reads by lab対応中かも @alanpeixinho が 6 日前に担当しました。 オープン
kernelci/dashboard#2209 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Backend
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
-
Slow endpoints: where the time goes対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
kernelci/dashboard#2182 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[Labs] Add a lab details API and lab filters on existing read endpoints対応中かも @alanpeixinho が 6 日前に担当しました。 オープンBackend q4-plan
難易度 4/5 3〜5日 初心者へのやさしさ 24/100
kernelci/dashboard#2169 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
kernelci/dashboard の issue をすべて見る
似ている issue
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 2 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
メンテナーはふだん 2 日以内に返信
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ramnes/notion-sdk-py#441 ·
-
qa_bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA-NeMo/Gym#5644 ·
メンテナーはふだん 2 日以内に返信
-
BUG: catalog database credentials printed to logs at startup対応中かも @cjboyle が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信