Make tests deterministic and independent of global state
Los mantenedores suelen responder en 9 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- matplotlib, numpy, python
- Área
- testing-qa
Línea de trabajo
Start by locating the listed planners and filters, especially informed_rrt_star_path_planner.py, and inspect their random number and matplotlib setup; then review the test layout to see how tests are run. Add the test-level setup described in the issue and remove constructor changes to global state. Done means repeated test runs are deterministic and all tests pass on CI.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
- RRT, RRT*, bidirectional RRT*, particle filter, GNSS noise, EKF/UKF and MPPI use unseeded random numbers. A planner that fails to find a path makes the smoke test fail or hang by chance.
informed_rrt_star_path_planner.pycallsmatplotlib.use(...)andnp.random.seed(42)inside its constructor, which changes global state for every later test in the same process.- CI doesn't set a non-interactive matplotlib backend.
Expected fix
- Add
test/conftest.pythat sets theAggbackend and fixes the random seed for each test - Remove
matplotlib.useandnp.random.seedfrom component constructors
Done when
Repeated test runs give the same results and all tests pass on CI.
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 313
- Merge medio
- 9 d 10 h
- PR fusionados (30 d)
- 7
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
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 ShisatoYano/AutonomousVehicleControlBeginnersGuide
-
good first issue refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#129 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#99 ·
Los mantenedores suelen responder en 9 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#98 ·
Los mantenedores suelen responder en 9 días
-
documentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#88 ·
Los mantenedores suelen responder en 9 días
-
long term
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#131 ·
Los mantenedores suelen responder en 9 días
Todos los issues de ShisatoYano/AutonomousVehicleControlBeginnersGuide
Issues similares
-
Support .aac audio uploadsPosiblemente ocupada @julien731 la tomó hoy. Abiertofeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nimblehq/audio-transcriber#153 ·
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
antonyrag/ragleap-core#1062 ·
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
gke-labs/kube-agents#4321 ·
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Git-Hospital/githealthcheck#61 ·
Los mantenedores suelen responder en 1 día
-
changelog investigate
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ramnes/notion-sdk-py#433 ·