Repository navigation
Add CI that builds and tests the package in the Space ROS image (#21). - #22
Open
EmbryoSpace wants to merge 1 commit into
Open
EmbryoSpace wants to merge 1 commit into
EmbryoSpace wants to merge 1 commit into
Conversation
…e-ros#21). process_sarif has no CI, so nothing runs its tests on pull requests. Its linter tests have been crashing in the Space ROS image without anyone noticing. This commit adds two workflows: - ci.yml builds the package with colcon in osrf/space-ros:latest and runs the unit tests with --return-code-on-test-failure, so a failing test fails the check. Linter tests (pytest marker "linter") run in a separate, non-blocking step: today they cannot pass, because ament_flake8 and ament_pep257 crash with the flake8/pydocstyle shipped in the image, and the package has existing flake8 and pep257 findings. - pr.yaml runs space-ros/check-commit-message-action, as the other Space ROS repositories do.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #21.
Adds two workflows:
ci.yml: builds with colcon inosrf/space-ros:latest(as root, soactions/checkoutcan write the workspace) and runs the unit tests with--return-code-on-test-failure, so a failing test fails the check. Linter tests (pytest markerlinter) run in a separate step withcontinue-on-error, because today they cannot pass:ament_flake8/ament_pep257crash in the image (ament_flake8andament_pep257crash in the Space ROS image, so flake8 and pep257 never check anything space-ros#450), and once that is fixed the package has existing flake8 and pep257 findings. The step can be made blocking after those are cleaned up.pr.yaml: the standardspace-ros/check-commit-message-action, as in the other Space ROS repositories.Testing: I replayed the workflow steps locally in
osrf/space-ros:latestwithbash -e. Onmain: build passes, unit tests pass (7 tests, 0 failures, 2 skipped), the linter step fails and is ignored. With a deliberately failing test added: the unit test step fails (exit 1). GitHub's own run on this PR will be the real check; it may need a maintainer to approve workflows for a first-time contributor.