-
Notifications
You must be signed in to change notification settings - Fork 32
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
Move CI to an independent crate. #362
Open
evshary
wants to merge
4
commits into
eclipse-zenoh:main
Choose a base branch
from
evshary:refine_ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+218
−194
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ jobs: | |
- name: Code format check | ||
run: cargo fmt --check -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate" | ||
- name: Clippy | ||
run: cargo clippy --all --examples -- -D warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- --deny warnings | ||
|
||
- name: Build zenoh-plugin-ros2dds | ||
run: cargo build -p zenoh-plugin-ros2dds --verbose --all-targets | ||
|
@@ -63,45 +63,59 @@ jobs: | |
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
# system_tests_with_ros2_humble: | ||
# name: System tests with ROS 2 Humble | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest | ||
# steps: | ||
# - uses: ros-tooling/[email protected] | ||
# with: | ||
# required-ros-distributions: humble | ||
|
||
# - uses: actions/checkout@v4 | ||
# - uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
# - name: Install ACL | ||
# run: sudo apt-get -y install libacl1-dev | ||
|
||
# - name: Run ROS tests (enable feature ros_test) | ||
# shell: bash | ||
# run: "source /opt/ros/humble/setup.bash && cargo test --features ros_test --verbose" | ||
|
||
# system_tests_with_ros2_jazzy: | ||
# name: System tests with ROS 2 Jazzy | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest | ||
# steps: | ||
# - uses: ros-tooling/[email protected] | ||
# with: | ||
# required-ros-distributions: jazzy | ||
|
||
# - uses: actions/checkout@v4 | ||
# - uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
# - name: Install ACL | ||
# run: sudo apt-get -y install libacl1-dev | ||
|
||
# - name: Run ROS tests (enable feature ros_test) | ||
# shell: bash | ||
# run: "source /opt/ros/jazzy/setup.bash && cargo test --features ros_test --verbose" | ||
system_tests_with_ros2_humble: | ||
name: System tests with ROS 2 Humble | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest | ||
steps: | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: humble | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- name: Install ACL | ||
run: sudo apt-get -y install libacl1-dev | ||
|
||
- name: Code format check | ||
shell: bash | ||
run: 'source /opt/ros/humble/setup.bash && cd zenoh-test-ros2dds && cargo fmt --check -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate"' | ||
- name: Clippy | ||
shell: bash | ||
run: "source /opt/ros/humble/setup.bash && cd zenoh-test-ros2dds && cargo clippy --tests -- --deny warnings" | ||
|
||
- name: Run ROS tests | ||
shell: bash | ||
run: "source /opt/ros/humble/setup.bash && cd zenoh-test-ros2dds && cargo test --verbose" | ||
|
||
system_tests_with_ros2_jazzy: | ||
name: System tests with ROS 2 Jazzy | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest | ||
steps: | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: jazzy | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- name: Install ACL | ||
run: sudo apt-get -y install libacl1-dev | ||
|
||
- name: Code format check | ||
shell: bash | ||
run: 'source /opt/ros/jazzy/setup.bash && cd zenoh-test-ros2dds && cargo fmt --check -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate"' | ||
- name: Clippy | ||
shell: bash | ||
run: "source /opt/ros/jazzy/setup.bash && cd zenoh-test-ros2dds && cargo clippy --tests -- --deny warnings" | ||
|
||
- name: Run ROS tests | ||
shell: bash | ||
run: "source /opt/ros/jazzy/setup.bash && cd zenoh-test-ros2dds && cargo test --verbose" | ||
|
||
# NOTE: In GitHub repository settings, the "Require status checks to pass | ||
# before merging" branch protection rule ensures that commits are only merged | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Copyright (c) 2024 ZettaScale Technology | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: | ||
# ZettaScale Zenoh Team, <[email protected]> | ||
# | ||
[package] | ||
name = "zenoh-test-ros2dds" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
cdr = "0.2.4" | ||
futures = "0.3.26" | ||
r2r = "0.9" | ||
serde = "1.0.154" | ||
serde_json = "1.0.114" | ||
tokio = { version = "1.35.1", default-features = false } # Default features are disabled due to some crates' requirements | ||
zenoh = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main", features = [ | ||
"plugins", | ||
"unstable", | ||
] } | ||
zenoh-config = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main", default-features = false } | ||
zenoh-plugin-ros2dds = { version = "1.0.0-dev", path = "../zenoh-plugin-ros2dds/", default-features = false } | ||
|
||
# We need an empty workspace to avoid being viewed as a part of zenoh-plugin-ros2dds | ||
[workspace] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@JEnoch I updated the clippy argument here to match the one we used in Zenoh. I added
--all-targets
and--all-features
to avoid the possible changes in the future. Also,--all
is replaced by--workspace
.