Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

CloudXR service tests can only run against a mocked runtime; no GPU path for src/core/cloudxr_tests

Abierto
#931 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
docker-compose, github-actions, python

Línea de trabajo

Comienza con src/core/cloudxr_tests y el precedente del workflow test-viz-gpu. Añade un nivel de pruebas de runtime real que se omita cuando no haya ningún runtime disponible y que se ejecute en el GPU runner, manteniendo los mocks solo para estados imposibles. Se considera terminado cuando el comportamiento del ciclo de vida, como start, stop y status, se prueba contra el runtime real, mientras que CPU ctest permanece limpio.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

src/core/cloudxr_tests and src/core/rig_tests run only under ctest on GitHub-hosted, GPU-less runners, so every test that touches the runtime has to fake one: a hand-bound unix socket for is_runtime_live(), a mocked Popen for the runtime process, and now a patched runtime_version() (it dlopens libcloudxr, which needs libcuda). At that point we are testing the mocks as much as the service. Nothing verifies that service start really detaches, that stop really tears the runtime down, or that status reads a real /proc cmdline.

What already exists

  • GPU runners: [self-hosted, linux, gpu, x64|arm64], used by test-viz-gpu, test-cloudxr, test-teleop-ros2. Gated only on needs: build-ubuntu, so they do run on PRs.
  • ctest never runs on them. It runs only in build-ubuntu, unfiltered.
  • test-viz-gpu is the precedent worth copying: viz python tests carry pytestmark = skipif(not _gpu_available()), skip cleanly on the CPU runner, and the same files are re-run with pytest against the built wheel on the GPU runner.
  • test-cloudxr cannot host these as-is — the runtime is a separate compose service and the run dir is mounted :ro, so no lifecycle test can write to it.

Direction

Add a real-runtime tier to cloudxr_tests that skips when no runtime is available, and run it on the GPU runner the way test-viz-gpu runs the viz suite. Keep mocks only for branches a real runtime cannot produce (wedged service, stale pid).

Related: #880 (hand-registered GPU example tests — same root cause on the examples/ side). Stubs introduced by #927.

Lenguaje dominante
Python
Estrellas
403
Forks
94
Merge medio
2 d 17 min
PR fusionados (30 d)
121

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/IsaacCapture

Todos los issues de NVIDIA/IsaacCapture

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.