Refactor setup/teardown methods in the functional test setup
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start by reading the functional test setup and the caldav-server-checker script, then trace where unique_calendar_ids and calendar.delete() and calendar creation are used. The issue proposes several possible approaches but does not define a specific outcome, so clarify the intended behavior and which server cases must be supported before assessing completion.
索引モデルが issue の本文から書いたものです。
説明
The current code is an absolute mess, difficult to get the head wrapped around it, and difficult to understand how the calendar(s) and objects are cleaned up or not. THe logic should be simplified.
Some thoughts:
- There is an old "compatibility flag" unique_calendar_ids - do we need it still? We should look through those cases where it's needed, try to understand why it's needed and make checks for it in the caldav-server-checker script.
- Some calendar servers does not support creating new calendars - and I did have an idea once-upon-a-time to allow the test to be able to access a "production calendar" and do stuff there without disturbing the test runs. Hence the need to be able to wipe "things known to have been made by the tests" from the test calendar. However, it's extremely bloat to run this logic after each and every test. Perhaps have local list of UIDs used per test and remove those before/after the test run?
calendar.delete()now has a workaround, on servers not supporting calendar deleting all objects will be deleted. It should probably be followed up with a flag to the calendar create method allowing it to create calendars without raising errors if the calendar already exiss. So that it's possible to run create and delete transparently on calendars not supporting it. At least given that the test calendar already exists.
- 主要言語
- Python
- スター
- 412
- フォーク
- 113
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 43
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-caldav/caldav のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
python-caldav/caldav#687 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
python-caldav/caldav#780 ·
メンテナーはふだん 1 日以内に返信
-
compatibility refactoring
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
python-caldav/caldav#778 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
python-caldav/caldav#777 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
python-caldav/caldav#774 ·
メンテナーはふだん 1 日以内に返信
python-caldav/caldav の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aws-samples/sample-per-model-bedrock#261 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pwncollege/dojo#1188 ·
メンテナーはふだん 1 日以内に返信
-
bug launcher packaging
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
tenstorrent/tt-studio#1426 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
python-attrs/cattrs#796 ·
メンテナーはふだん 1 日以内に返信