Make CFBM tests and their Python dependencies optional for production builds
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cmake, python
- 領域
- build-system, testing
調査の方向性
CFBM のトップレベルにある CMakeLists.txt と、無条件に実行される add_subdirectory(tests) の呼び出しから始め、BUILD_TESTING と Python3_EXECUTABLE が現在どのように扱われているかを確認してください。要求されたオプションを追加し、プロダクションビルドでの使用方法とインタープリターの上書き方法を文書化してください。Issue の説明に従い、無効時にはテストがスキップされ、有効時には選択したインタープリターで登録されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Configuring WRF with -DENABLE_CFBM=ON also configures the CFBM test suite. The top-level CFBM CMakeLists.txt calls add_subdirectory(tests) unconditionally. With the default generated regression suite, CMake requires Python 3.11 or newer and imports NumPy, netCDF4, and PyYAML during configuration. A missing package therefore stops a production WRF-CFBM build before Fortran compilation starts, even when the user only wants the model executables. Passing -DBUILD_TESTING=OFF currently leaves that dependency in place.
Proposed change
Add a CMake option named CFBM_BUILD_TESTS, defaulting to ON, that controls whether CMake enters the CFBM tests directory. Document -DCFBM_BUILD_TESTS=OFF for production builds. For builds with tests enabled, document the existing -DPython3_EXECUTABLE=/path/to/python override for environments where CMake finds an interpreter without the required packages.
Verification
- Configure and compile WRF with
-DENABLE_CFBM=ON -DCFBM_BUILD_TESTS=OFFin an environment where Python is available for WRF configuration but the CFBM regression packages are absent. Confirm the coupled executable builds and CTest lists no CFBM tests. - With the option omitted or explicitly enabled, confirm the existing CFBM unit and regression tests are registered and the generated suite uses the selected Python interpreter.
- 主要言語
- Fortran
- スター
- 11
- フォーク
- 18
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NCAR/fire_behavior のほかの issue
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
NCAR/fire_behavior#73 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NCAR/fire_behavior#50 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
NCAR/fire_behavior#15 ·
-
WAF of no_fuel_cat reduces wind to zero; WAF only works with 10-m winds再び着手できるかも @masih-e が 30 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンinvalid
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NCAR/fire_behavior#70 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NCAR/fire_behavior#68 ·
NCAR/fire_behavior の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
avaje/avaje-metrics#142 ·
-
enhancement github_actions good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
メンテナーはふだん 1 日以内に返信
-
nm, cpp, and objdump are absent from the new rule based toolchain対応中かも @cerisier が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bazelbuild/apple_support#707 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nimbus-agent/Nimbus#2319 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nextjournal/clerk#830 ·