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

NPD needs an integration test tier that contributors can run locally

オープン
#1,331 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
gcp, go, kubernetes
領域
devops, testing-qa

調査の方向性

既存の make e2e-test エントリポイントから始め、GCP、イメージ、ゾーン、SSH キーに関する要件を追跡します。--apiserver-override がどのように処理されるかを確認し、固定したログファイルと fake apiserver を使ったプロセスレベルのテストを計画した後、DaemonSet のライフサイクルと NodeCondition の遷移を対象とする KIND のカバレッジを追加します。完了の条件は、両方の層がローカルで実行され、説明されているイベント、条件、クリーンアップをアサートすることです。

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

説明

kind/cleanup sig/node

We should add a test tier between unit tests and the GCE suite that can be run locally.


NPD currently has two test tiers:

  1. Unit tests
  2. GCE e2e tests (Prow)

The e2e suite today only asserts against a local metrics endpoint on a GCE VM; yet, we cannot easily run the same functionality locally. This is because make e2e-test requires a GCP project, a zone, an image, and SSH keys. Not all important behaviors are unit-testable, and having the ability to run e2e tests locally will help author better improvements to NPD.

We should have two additional forms of testing to enable local e2e testing:

Form What it covers Sketch
Process-level log parsing through condition/event run NPD against fixed log files and assert emitted events against a local fake apiserver ( via --apiserver-override)
KIND DaemonSet lifecycle, NodeCondition transitions run NPD as a DaemonSet in a KIND cluster and inject faults, assert conditions and cleanup on shutdown

This pattern is the standard in other Kubernetes repositories. Kubernetes has an integration test tier and only merges PRs when unit, integration, and e2e tests all pass (https://github.com/kubernetes/community/blob/master/contributors/devel/sig-testing/testing.md). Furthermore, cert-manager and cilium run KIND-based e2e locally as well.

Together with #1328, this allows extensive coverage of NPD behavior before reaching a VM.

/sig node
/kind cleanup

主要言語
Go
スター
3.5k
フォーク
704
平均マージ
12時間 21分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

kubernetes/node-problem-detector のほかの issue

kubernetes/node-problem-detector の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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