-
Notifications
You must be signed in to change notification settings - Fork 217
ci: restore blocking Rust package checks #684
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
base: main
Are you sure you want to change the base?
Changes from all commits
bc8e4ac
a86ee30
ad828ae
ec6e702
65ec9ec
9a5cdda
d3b3144
3133082
71537a4
a2948d1
0ecc15c
f4044d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,10 +75,12 @@ jobs: | |
| run: | | ||
| call C:\pixi_ws\ros2-windows\setup.bat | ||
| cd C:\workspace | ||
| set /a rust_package_count=0 | ||
| for /f "tokens=1,2,3" %%A in ('pixi run --manifest-path C:\pixi_ws\pixi.toml colcon list') do ( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the logs, cargo test fails but the step still succeeds and the failure is silently ignored
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in : the Windows batch loop now checks immediately after each , returns a failing step on any package failure, and also fails if the selector matches zero target packages. |
||
| if "%%C"=="(ament_cargo)" ( | ||
| if "%%C"=="(ros.ament_cargo)" ( | ||
| if /I not "%%A"=="examples_rclrs_minimal_pub_sub" if /I not "%%A"=="examples_rclrs_minimal_client_service" if /I not "%%A"=="rust_pubsub" ( | ||
| cd %%B | ||
| set /a rust_package_count+=1 | ||
| cd /d %%B | ||
| echo Running cargo test in %%B | ||
| if /I "%%~nxB"=="rclrs" ( | ||
| cargo test -F default | ||
|
|
@@ -87,9 +89,14 @@ jobs: | |
| ) else ( | ||
| cargo test --all-features | ||
| ) | ||
| cd .. | ||
| if errorlevel 1 exit /b 1 | ||
| cd /d C:\workspace | ||
| ) | ||
| ) | ||
| ) | ||
| if %rust_package_count% EQU 0 ( | ||
| echo No target ros.ament_cargo packages found 1>&2 | ||
| exit /b 1 | ||
| ) | ||
| shell: cmd | ||
| working-directory: C:\workspace | ||
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.
Why?