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

test_session_capacity_k8s.py: k8s_cluster_configured step has the same kubeconfig-exception gap fixtures.py just fixed

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
kubernetes, python
領域
testing-qa

調査の方向性

src/vip/fixtures.py を読み、既存の kubernetes_client の例外処理を比較してから、src/vip_tests/workbench/test_session_capacity_k8s.py の k8s_cluster_configured ステップと、その session-scope に関する要件を調べます。関連するテストファイルを実行します。malformed または unreadable な kubeconfig による失敗が、例外として抜けたり未設定のクラスターとして扱われたりせず、一貫して分類されれば完了です。

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

説明

Summary

PR #716 (2.7, errors-narrow-plugin-fixtures) fixed src/vip/fixtures.py's kubernetes_client fixture so a real Kubernetes client-construction failure (missing SDK, unreadable/malformed kubeconfig — kubernetes.config.ConfigException, OSError, yaml.YAMLError) raises ConfigError instead of being silently swallowed as None/"not configured".

src/vip_tests/workbench/test_session_capacity_k8s.py's k8s_cluster_configured BDD step independently constructs its own KubernetesClient, with its own except RuntimeError-only handling — the same class of gap fixtures.py just closed, but at a different call site that #716 didn't touch (not in that row's file scope, and not covered by wave 2's 2.9, 2.10, or 2.11 rows either — checked their file lists directly).

What's wrong

A malformed/unreadable kubeconfig hitting this BDD step's client construction can raise ConfigException/OSError/YAMLError uncaught, past the narrower except RuntimeError, instead of being classified consistently with how fixtures.py now handles the identical failure mode.

What to do

Apply the same broadened exception handling fixtures.py's kubernetes_client fixture now uses to k8s_cluster_configured's own KubernetesClient construction in test_session_capacity_k8s.py, or refactor the step to reuse the fixture instead of constructing its own client (check whether the step needs the fixture's session scope first).

Origin

Found during independent code review of PR #716 (2.7 errors-narrow-plugin-fixtures), part of the vip quality-program wave 2. Left unfixed there since the file isn't in that row's approved scope.

主要言語
Python
スター
8
フォーク
1
平均マージ
2日 2時間
マージ済み PR(30日)
33

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

posit-dev/vip のほかの issue

posit-dev/vip の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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