Make CFBM tests and their Python dependencies optional for production builds
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cmake, python
- Área
- build-system, testing
Línea de trabajo
Empieza por el CMakeLists.txt de nivel superior de CFBM y su llamada incondicional a add_subdirectory(tests); comprueba cómo se gestionan actualmente BUILD_TESTING y Python3_EXECUTABLE. Añade la opción solicitada y documenta su uso en compilaciones de producción y cómo sobrescribir el intérprete. Verifica, tal como se describe en la issue, que las pruebas se omiten cuando está desactivada y se registran con el intérprete seleccionado cuando está activada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Fortran
- Estrellas
- 11
- Forks
- 18
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NCAR/fire_behavior
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
NCAR/fire_behavior#73 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NCAR/fire_behavior#50 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
NCAR/fire_behavior#15 ·
-
WAF of no_fuel_cat reduces wind to zero; WAF only works with 10-m windsQuizá libre de nuevo @masih-e la tomó hace 30 días y no hay ningún pull request abierto. Abiertoinvalid
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
NCAR/fire_behavior#70 · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
NCAR/fire_behavior#68 ·
Todos los issues de NCAR/fire_behavior
Issues similares
-
missing Git commit for 10.5-RC2Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
avaje/avaje-metrics#142 ·
-
enhancement github_actions good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
Los mantenedores suelen responder en 1 día
-
nm, cpp, and objdump are absent from the new rule based toolchainPosiblemente ocupada @cerisier la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
bazelbuild/apple_support#707 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Security gate is red on mainAbiertosecurity
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nimbus-agent/Nimbus#2319 ·
Los mantenedores suelen responder en 1 día
-
Build fails with `compile-css`Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nextjournal/clerk#830 ·