In CI checkstyle is not executed for tests. ./gradlew test does not execute checkstyle.
This bug leads to the problem that checkstyle errors are not caught downstream if working with our current merge pattern (downstream sub-feature branch to downstream feature branch to upstream main branch). However, the checkstyle errors show up upstream.
Expected Behavior
Downstream CI checkstyle should also be executed for tests in order to catch checkstyle errors early before creating an upstream PR.
Observed Behavior
Downstream CI check in PR is not showing checkstyle errors for an end-to-end test.
The checkstyle step in CI is skipped because the PR is against a feature branch and not against main.
The end-to-end tests step in CI is not executing checkstyle.
Bug Report
Upstream issue https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/issues/1567
Describe the Bug
In CI checkstyle is not executed for tests.
./gradlew test
does not execute checkstyle.This bug leads to the problem that checkstyle errors are not caught downstream if working with our current merge pattern (downstream sub-feature branch to downstream feature branch to upstream main branch). However, the checkstyle errors show up upstream.
Expected Behavior
Downstream CI checkstyle should also be executed for tests in order to catch checkstyle errors early before creating an upstream PR.
Observed Behavior
Downstream CI check in PR is not showing checkstyle errors for an end-to-end test.
main
.Steps to Reproduce
Green checkstyle run downstream PR: https://github.com/agera-edc/DataSpaceConnector/runs/7098753291?check_suite_focus=true
Red checkstyle run upstream PR: https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/runs/7106397176?check_suite_focus=true
Context Information
GitHub CI. See links in
Steps to Reproduce
.Detailed Description
.github/workflows/verify.yaml
Checkstyle step is only executed if the event is a pull request and then only against
main
.For end-to-end tests Gradle is only executed to run tests which does not include checkstyle.
Possible Implementation
End-to-end tests in Gradle should also execute checkstyle.