Python tests are non-hermetic

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

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

評価

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

調査の方向性

exec.LookPath を呼び出す Go の Python launcher コードから始め、 この検索をトリガーする既存のテストを調べます。テストが PATH に python 実行ファイルが存在することに依存しないように、検索を差し替え可能にします。その後、Python 関連のテストスイートを実行し、python3 だけがインストールされている場合に動作することを確認します。

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

説明

kind/bug lang/python meta/testing

The python launcher uses exec.LookPath to find python in the PATH. As a result, tests fail on vanilla'ish macOS 12.3 where Python 2.7 was removed and Python 3 is only available as python3.

Since the tests don't actually launch Python, we should have the lookup be pluggable.

Workaround: create a python in the PATH before running the tests.

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

環境構築

はじめの一歩

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

GoogleContainerTools/container-debug-support のほかの issue

GoogleContainerTools/container-debug-support の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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