Add a scraper check utility
まだ誰も着手していません。
評価
調査の方向性
ファイル、テスト、エントリーポイントは指定されていません。まず、ZIMs を作成し、アセットを再エンコードし、最適化キャッシュを使用する scraperlib オブジェクトを整理し、次に一時ファイルの扱いを確認してください。自動的に実行される、または明示的に呼び出されるサニティチェックの仕組みと、失敗時の動作が定義されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently, we rely on various objects in scraperlib to:
- create the ZIM
- re-encode videos and images
- cache these assets on the optimization cache
We might consider to have a mechanism to perform sanity checks on scraper behavior:
- did we cached all re-encoded images / videos when a cache is present?
- did we removed temporary files from the filesystem as they are added to the ZIM? (we know that while we prefer in-memory/streaming approaches, there are still many scrapers which are using the temporary file approach, and even some situation which have to rely on it)
What I do not yet know:
- should we make the scraper fails if these checks fails?
- is there any chance we automate these checks? (i.e. no need to modify the scrapers, or as little as possible - at least not make a call to "check_i_m_ok" mandatory, because the scraper developers might forget about it as well ; I doubt about this because there are many kind of situations)
- can we do these checks early? (so that we fail the scraper asap instead of wasting time and resources)
- 主要言語
- Python
- スター
- 31
- フォーク
- 27
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openzim/python-scraperlib のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openzim/python-scraperlib#339 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openzim/python-scraperlib#292 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
openzim/python-scraperlib#341 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
openzim/python-scraperlib#340 ·
-
bug
openzim/python-scraperlib#334 · 担当者 1 名 ·
openzim/python-scraperlib の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·