Flaky pydap network tests due to `test.opendap.org` outages
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 22/100
調査の方向性
The network tests that depend on test.opendap.org are in the pydap test modules, including TestPyDAPDatatreeIO in test_datatree.py, which uses the three /opendap/dap4/ files. The open question is which of the five options to adopt, so read the thread before writing code. Using the unaligned_datatree_nc fixture and the code near line 499 as a reference, check whether CI can generate the datatree files locally. Done means a maintainer has chosen an approach and the flaky job no longer fails on server outages.
索引モデルが issue の本文から書いたものです。
説明
What is your issue?
The pydap network tests depend on the public test.opendap.org server. Whenever that server is unreachable or returns errors (e.g. HTTP 503), the flaky/network CI job fails for unrelated PRs.
Some options:
- Run our own OPeNDAP server in CI. OPeNDAP publishes the server behind
test.opendap.orgas a Docker image (opendap/hyrax). Most of the test data is already in the image, and the rest could be added in CI. The tests would then read the server URL from an environment variable that defaults totest.opendap.org. The downside is a large image (~1.4 GB) and some extra CI setup. - Use pydap's built-in server. Start
pydap[server]from a pytest fixture with local files. This is lightweight, but as far as I can tell it doesn't serve DAP4 data responses, so it would only cover part of the tests. - Record and replay HTTP responses. Store the server responses in the repo (e.g. with
vcrpy/pytest-recording) and replay them in the tests. This is fast and needs no network, but the recordings need refreshing and wouldn't catch server-side changes. - Skip when the server is unavailable. Check reachability once in a fixture and skip the tests if the server is down. This is the simplest option, but the tests silently stop running during outages.
- Move the tests to a scheduled job. Run them nightly instead of on every PR, so outages don't block PRs. Breakages would only show up later, though.
I think 1. could be feasable. Some things to consider:
- Maybe we should mirror the dockerhub image to ghcr.
- Not sure how to handle hyrax updates (another CI to update those?)
- Caching is probably not worth
- Not covered yet: the datatree tests (TestPyDAPDatatreeIO in test_datatree.py) use three files under /opendap/dap4/ that the image doesn't include:
- SimpleGroup.nc4.h5: in OPeNDAP's server repo at modules/hdf5_handler/data/ (30 KB). We could commit it or download it in CI.
- unaligned_simple_datatree.nc.h5 and all_aligned_child_nodes.nc.h5: these look like custom uploads to the public server. test_datatree.py already builds equivalent files locally (the unaligned_datatree_nc fixture and the code at line 499). Since the tests only check structure, CI could generate them before starting the container.
- 主要言語
- Python
- スター
- 4.2k
- フォーク
- 1.5k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 74
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pydata/xarray のほかの issue
-
xarray removes axis grid from pcolormesh対応中かも @Sealdot が今日担当しました。 オープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
`DataTree.map_over_datasets` behavior can be obscure sometimes対応中かも @mohansree14 が 24 日前に担当しました。 オープンneeds triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pydata/xarray#11813 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Comparing attrs that contain a dict of NumPy arrays raises ValueError in identical / assert_identical対応中かも @SohamXYZDev が 29 日前に担当しました。 オープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
pydata/xarray#11777 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
RangeIndex` with datetime64 bounds cannot be printed (`Unknown format code 'g'`)対応中かも @d-chambers が 60 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pydata/xarray#11598 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
DataTree constructor error message says dict even though dict is not accepted対応中かも @aryansk が 100 日前に担当しました。 オープンbug contrib-good-first-issue topic-DataTree topic-error reporting
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pydata/xarray#11514 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
abetlen/llama-cpp-python#2424 ·
メンテナーはふだん 1 日以内に返信
-
Bug IronPython Python 3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pyrevitlabs/pyRevit#4184 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
jqueryscript/awesome-claude-code#1009 ·
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信