Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(nebula_ros): add smoke tests #240

Merged
merged 6 commits into from
Feb 4, 2025
Merged

test(nebula_ros): add smoke tests #240

merged 6 commits into from
Feb 4, 2025

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Nov 27, 2024

PR Type

  • Improvement

Description

Add smoke tests for all sensors: each smoke test launches Nebula with the sensor's default configuration and with launch_hw:=false.

These ensure (among other behaviors) that:

  • Nebula is launchable in its default configuration
  • the node shuts down cleanly, without segfaults or exceptions

In a later PR, launch_hw:=true should also be included, testing whether Nebula can be terminated when waiting for a connection.

Review Procedure

Remarks

Pre-Review Checklist for the PR Author

PR Author should check the checkboxes below when creating the PR.

  • Assign PR to reviewer

Checklist for the PR Reviewer

Reviewers should check the checkboxes below before approval.

  • Commits are properly organized and messages are according to the guideline
  • (Optional) Unit tests have been written for new behavior
  • PR title describes the changes

Post-Review Checklist for the PR Author

PR Author should check the checkboxes below before merging.

  • All open points are addressed and tracked via issues or tickets

CI Checks

  • Build and test for PR: Required to pass before the merge.

@mojomex mojomex self-assigned this Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.14%. Comparing base (48d9ab9) to head (c743e71).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #240      +/-   ##
==========================================
- Coverage   27.27%   27.14%   -0.14%     
==========================================
  Files         105      105              
  Lines        9465     9271     -194     
  Branches     2337     2057     -280     
==========================================
- Hits         2582     2517      -65     
+ Misses       6435     6334     -101     
+ Partials      448      420      -28     
Flag Coverage Δ
differential 27.14% <ø> (?)
total ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mojomex mojomex requested a review from drwnz February 3, 2025 09:41
mojomex added a commit that referenced this pull request Feb 3, 2025
commit ad35b01
Author: Max SCHMELLER <[email protected]>
Date:   Mon Dec 2 16:28:51 2024 +0900

    chore(cspell): add CMake's `TOLOWER` keyword to dictionary

    Signed-off-by: Max SCHMELLER <[email protected]>

commit 6dee292
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:54:11 2024 +0900

    temp(nebula_tests): run nebula_tests on changes to nebula_ros, nebula_hw_interfaces too

    Signed-off-by: Max SCHMELLER <[email protected]>

commit e981de2
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:36:27 2024 +0900

    temp: only Hesai smoke tests

    Signed-off-by: Max SCHMELLER <[email protected]>

commit 40b6532
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:20:03 2024 +0900

    test(nebula_ros): add smoke test for every sensor

    Signed-off-by: Max SCHMELLER <[email protected]>

Signed-off-by: Max SCHMELLER <[email protected]>
Copy link
Collaborator

@drwnz drwnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just added one comment about including XT16, since we have support for it now.

nebula_ros/CMakeLists.txt Outdated Show resolved Hide resolved
@mojomex mojomex merged commit 324d721 into main Feb 4, 2025
11 of 12 checks passed
@mojomex mojomex deleted the test/launch-tests branch February 4, 2025 06:52
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.

2 participants