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

Add `Runtime._connect()` method

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
kubernetes, python

調査の方向性

まず、既存の Storage._connect() パターンを Runtime.submit() のエントリーポイントおよび issue 内の Kubernetes の例と比較します。Runtime が一貫した接続経路を提供し、繰り返し行われる送信でセットアップを繰り返すのではなくクライアントを再利用できれば完了です。実装箇所とテストについては、引き続き調査が必要です。

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

説明

Just like we have Storage._connect() to open a connection to the storage service, it would be useful to have a Runtime._connect() method too so the setup doesn't have to be repeated in every .submit() call. For example, with Kubernetes we have this at the moment:

    def submit(self, job_path):
        kubernetes.config.load_kube_config(context=self.config.context)
        client = kubernetes.client.ApiClient()
        return kubernetes.utils.create_from_yaml(client, job_path)

The client could be kept in the object so it would only be created the first time a job is submitted. Maybe this doesn't need to be handled in the base class like for Storage, that's an implementation decision. Having a consistent way to do this between Storage and Runtime would be nice though.

主要言語
Python
スター
120
フォーク
108
平均マージ
1日 12時間
マージ済み PR(30日)
21

環境構築

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

はじめの一歩

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

kernelci/kernelci-core のほかの issue

kernelci/kernelci-core の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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