Clean up pytest files in /tmp after test runs

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
devops, testing-qa

調査の方向性

The payload names no file in the repository. Start with the Makefile test target and the pytest setup, then check where pytest writes its /tmp/pytest-of-<user> directories. The issue lists three options (an rm after tests, tmpreaper, or a larger /tmp) and no decision has been made, so agree on an approach with maintainers first. Done means a test run leaves no pytest temp directories behind, or the chosen cleanup is documented and works.

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

説明

Currently, tests (using pytest) can leave files around in /tmp (~ 800 MiB per pytest directory) which can then lead to /tmp completely running out of space since it is only 4 GiB in total:

jvperrin@supernova:~$ sudo du -sh /tmp/* | sort -h | tail -n 2
872M	/tmp/pytest-of-gleeb
2.6G	/tmp/pytest-of-dkessler

This has happened several times before, but we should have a better solution than just temporarily cleaning out space again (for instance running a rm of the relevant directory in the Makefile after running tests, or running tmpreaper on these directories periodically).

Additionally, increasing the size of /tmp on supernova would help, but given the size of these pytest outputs (~ 800 MiB per directory), that wouldn't help that much.

主要言語
Python
スター
46
フォーク
106
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

ocf/ocfweb のほかの issue

ocf/ocfweb の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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