Clean up read-only runtime cache trees after tests
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
tests/plugin_testing.py の discard_tree() ヘルパーを読み、削除前に書き込み権限をどのように復元しているかを確認してください。次に、テスト内で ignore_errors=True を指定して shutil.rmtree を呼んでいる箇所を grep し、一時的なランタイムキャッシュのクリーンアップを discard_tree() に切り替えます。これらのテストが、非特権ユーザーとして実行したときに読み取り専用のキャッシュツリーを削除し、ディレクトリを残さないことが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
Proposed Changes
Use the existing discard_tree() helper from tests/plugin_testing.py to clean up temporary runtime cache directories created by tests.
Justification
The runtime cache intentionally makes published revision trees read-only. Several tests use shutil.rmtree() with ignore_errors=True for cleanup, which silently leaves these trees behind when running as an unprivileged user.
Reusing discard_tree() ensures that write permissions are restored before removal and prevents temporary directories from accumulating across repeated test runs.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 13時間 4分
- マージ済み PR(30日)
- 77
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
netbox-community/netbox-scripts#212 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts Bucket: KTLO severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
netbox-community/netbox-scripts#204 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts Bucket: Improve status: backlog type: documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
netbox-community/netbox-scripts#200 ·
メンテナーはふだん 1 日以内に返信
-
Script result page omits Job-level failure reasons対応中かも @pheus が 4 日前に担当しました。 オープンapp: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
netbox-community/netbox-scripts#153 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Data Source revisions can import native extensions instead of reviewed Python source対応中かも @pheus が 4 日前に担当しました。 オープンapp: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
netbox-community/netbox-scripts#146 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
ApacheTomcatImporterPipeline truncates milestone fixed versions (e.g. 11.0.0-M6 -> 11.0.0)対応中かも @nikolya-ctrl が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
aboutcode-org/vulnerablecode#2533 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PermafrostDiscoveryGateway/water-timeseries-v2#312 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ClickHouse/dbt-clickhouse#829 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信