-
Notifications
You must be signed in to change notification settings - Fork 12
Fix README smoke tests in CI #26
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
Fix README smoke tests in CI #26
Conversation
Greptile OverviewGreptile SummaryThis PR improves CI smoke tests by removing the
Key improvements:
Issue found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant CI as GitHub CI
participant Setup as Setup Phase
participant Test as Smoke Test
participant ROS as ROS2 Runtime
participant Topics as Topic Publishers
CI->>Setup: Install ros-base package
CI->>Setup: Build greenwave_monitor
CI->>Setup: Install r2s_gw from requirements.txt
CI->>Setup: Build r2s_gw with colcon
CI->>Test: Run smoke tests (set -e enabled)
Test->>ROS: timeout 10s ncurses_dashboard + 'q' input
ROS-->>Test: Exit 0 (success)
Test->>ROS: timeout 10s ncurses_dashboard --demo + 'q' input
ROS-->>Test: Exit 0 (success)
Test->>ROS: timeout 10s r2s_gw_dashboard + 'q' input
ROS-->>Test: Exit 0 (success)
Test->>ROS: timeout 10s r2s_gw_dashboard --demo + 'q' input
ROS-->>Test: Exit 0 (success)
Test->>Topics: Start /topic1 publisher (background)
Test->>Topics: Start /topic2 publisher (background)
Test->>Test: Set trap to kill publishers on EXIT
Test->>Test: sleep 1s (allow publishers to start)
Test->>ROS: timeout --signal=INT --preserve-status 5s hz.launch.py
ROS-->>Test: Monitor topics until SIGINT
Note over ROS,Test: Expects exit 130 (SIGINT) or 0 (clean exit)
Test->>Topics: trap executes: kill publishers
Test-->>CI: Return exit code (0 = pass, non-zero = fail)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
0d0da99 to
7ce3300
Compare
Signed-off-by: Blake McHale <bmchale@nvidia.com>
Signed-off-by: Blake McHale <bmchale@nvidia.com>
Signed-off-by: Blake McHale <bmchale@nvidia.com>
887651c to
06b847c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
Signed-off-by: Blake McHale <bmchale@nvidia.com>
5b6e798 to
4c55aa2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
Signed-off-by: Blake McHale <bmchale@nvidia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 2 comments
|
Thankyou but can you please update the PR description, you actually did fix the hz.launch.py test as well. |
|
Updated the description. Realized I could fix it so decided to not remove. |
Smoke tests for the README in CI always return true. Failures are currently not being caught because of this. Updated the smoke tests to run the TUI applications and their demo modes. Updated the
hz.launch.pytest to measure topics we publish in the background so it doesn't error.