Examples have no systematic test coverage; GPU example tests must be hand-registered
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- bash, cmake, docker, dockerfile, python
- Ambito
- build-system, devops, testing-qa
Direzione di ricerca
Inizia da scripts/run_tests_with_cloudxr.sh, deps/cloudxr/Dockerfile.test, le voci dei test di esempio di CMake e la discussione della PR #879. Ricostruisci il funzionamento di CXR_PYTHON_GPU_TESTS e della copia hardcoded di examples/oxr/python/, poi confronta le convenzioni di camera_viz e oxr. Il lavoro è completato quando i test degli esempi sono individuabili o gestiti esplicitamente, gli esempi non compilati ricevono controlli e la convenzione è documentata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
There is no systematic way to test an example, and no convention for where an example test belongs. Examples are separate uv projects, so nothing in a normal build imports or runs them — an example can drift away from the library beside it and only fail when a user runs it. That is not hypothetical: mcap_record_replay and deviceio_live_view shipped pinned to isaacteleop==1.3.9rc1 and every script died on ImportError: cannot import name 'BodyJointIndex' before it started.
Survey of examples/ (15 examples)
| State | Examples |
|---|---|
| Tests that run | teleop_ros2 (C++ integration tests + topic verifier in the ROS2 CI job — the only real end-to-end coverage), camera_viz (3 pytest files via ctest, but behind if(BUILD_VIZ)), oxr (3 python + 2 C++ via run_tests_with_cloudxr.sh), native_openxr (xdev_list, same script) |
| No tests at all | haptic_feedback, retargeting, teleop, teleop_session_manager, schemaio, cloudxr_mujoco_teleop, lerobot, noitom, oglo_tactile |
| Not built by CMake at all | teleop, cloudxr_mujoco_teleop, lerobot, noitom, oglo_tactile — nothing compiles or imports them in CI |
Orphaned tests. examples/oxr/python/ holds nine test_*.py; only three are listed in CXR_PYTHON_GPU_TESTS. These six are copied into the test container by Dockerfile.test and then never invoked:
test_controller_tracker.pytest_full_body_tracker.pytest_hand_inactive_on_plugin_stop.pytest_oak_camera.pytest_session_sharing.pytest_synthetic_hands.py
Why it keeps happening
- GPU/runtime tests are hand-registered in a bash array in
scripts/run_tests_with_cloudxr.sh. Nothing discovers them, so adding a file next to nine others silently does nothing — which is how six accumulated. - The container only sees one example.
deps/cloudxr/Dockerfile.testhardcodesCOPY examples/oxr/python/ /app/tests/, so no other example's tests can reach the CloudXR runtime without editing the Dockerfile. - No home for non-GPU example tests.
camera_vizputs them intests/with its own pyproject;oxrputs them beside the scripts. Neither is documented as the convention.
What would fix it
- Discover GPU example tests instead of listing them, and generalise the
COPYso any example can contribute tests to the CloudXR container. - Pick one convention for headless example tests (ctest entry +
uv run --no-project, isaacteleop from the build tree onPYTHONPATH) and document it. - Decide the six orphans' fate: wire them up or delete them.
- Give the five unbuilt examples at least an import/lint check so they cannot silently rot.
Starting point for the headless half: PR #879 discussion.
- Lingua principale
- Python
- Stelle
- 403
- Fork
- 94
- Merge medio
- 2g 5h
- PR unite (30g)
- 95
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/IsaacCapture
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
NVIDIA/IsaacCapture#910 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
NVIDIA/IsaacCapture#891 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
NVIDIA/IsaacCapture#1217 ·
I maintainer di solito rispondono entro 1 giorno
-
Release Notes Draft: 1.5Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
NVIDIA/IsaacCapture#1214 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
NVIDIA/IsaacCapture#1181 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NVIDIA/IsaacCapture
Issue simili
-
fix formatting of the sample database page of the docsForse già presa @Aaqibhafeezkhan l’ha presa oggi. Apertadocumentation good first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
chaoss/CollectOSS#544 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/plugin good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kestra-io/plugin-soda#137 ·
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
ibm-granite/granite.build#504 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno