`pytest-cov` emits hundreds of megabytes of `AstArcAnalyzer`

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
testing-qa

調査の方向性

Start by reproducing the interaction between pytest-cov, a mocked os module, and an internal pytest error, focusing on os.getenv("COVERAGE_TRACK_ARCS") and AstArcAnalyzer. Trace why a truthy value causes large AST data to be emitted. Done means the failure no longer produces hundreds of megabytes of output and the behavior has a regression test.

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

説明

Struggling to create a minimal implementation of this, but it seems that when we're using pytest-cov, mocking out os, and then have an internal pytest error we have hundreds of megabytes of AST data printed out because os.getenv("COVERAGE_TRACK_ARCS") gets accidentally set to a truthy value.

Working on a minimal reproduction..

主要言語
Python
スター
2.1k
フォーク
256
平均マージ
6日 10分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

pytest-dev/pytest-cov のほかの issue

pytest-dev/pytest-cov の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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