Skip to content

test: add V4 compat layer coverage for camera labels, radar, get_sequence_meta#96

Merged
janickm merged 1 commit intoNVIDIA:mainfrom
janickm:janickm/test-v4-compat-coverage
May 7, 2026
Merged

test: add V4 compat layer coverage for camera labels, radar, get_sequence_meta#96
janickm merged 1 commit intoNVIDIA:mainfrom
janickm:janickm/test-v4-compat-coverage

Conversation

@janickm
Copy link
Copy Markdown
Collaborator

@janickm janickm commented May 7, 2026

Summary

  • Adds integration tests for the three untested V4 compat APIs in SequenceLoaderV4:
    • Camera labels (camera_labels_ids, get_camera_labels, query_camera_labels, and the CameraLabels wrapper class) — full write-then-read integration test parameterized over itar/directory store types
    • Radar sensor (get_radar_sensor) — exercises basic properties and ray-bundle API (count, timestamps, valid mask, distances, directions)
    • get_sequence_meta() — verifies it returns a non-empty dict without raising

Details

The TestCameraLabelsCompatIntegration class writes 3 label instances (depth@front, segmentation@front, depth@rear) using the component writers, loads through SequenceLoaderV4, and verifies all protocol methods including query filtering by camera_id, label_type, and label_category.

All 28 test targets pass on both Python 3.8 and 3.11.

@janickm janickm force-pushed the janickm/test-v4-compat-coverage branch 2 times, most recently from 3ca7709 to 4c88354 Compare May 7, 2026 08:30
@janickm janickm self-assigned this May 7, 2026
@janickm janickm force-pushed the janickm/test-v4-compat-coverage branch 2 times, most recently from bc5096a to 700c762 Compare May 7, 2026 08:50
…nd get_sequence_meta

Cover the three untested compat APIs in SequenceLoaderV4:
- camera_labels_ids, get_camera_labels, query_camera_labels (full integration)
- get_radar_sensor ray-bundle API exercise
- get_sequence_meta basic verification

Also adds -> None type annotations to all test methods so mypy checks them,
and fixes pre-existing type issues (np.random.seed/rand -> default_rng,
Runfiles.Rlocation nullability, sensor list type annotation).
@janickm janickm force-pushed the janickm/test-v4-compat-coverage branch from 700c762 to 4b43853 Compare May 7, 2026 08:55
@janickm janickm merged commit d91fcc9 into NVIDIA:main May 7, 2026
5 checks passed
@janickm janickm deleted the janickm/test-v4-compat-coverage branch May 7, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant