-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add spotless support #3171
Add spotless support #3171
Conversation
Skipping CI for Draft Pull Request. |
/cc @pierDipi I will push the code changes for those reformatted .java file if you don't see any problem with the all the changes I have made so far! |
/retest |
afcb843
to
8886379
Compare
Codecov Report
@@ Coverage Diff @@
## main #3171 +/- ##
============================================
+ Coverage 63.42% 63.46% +0.03%
+ Complexity 755 753 -2
============================================
Files 167 167
Lines 11805 11815 +10
Branches 241 246 +5
============================================
+ Hits 7487 7498 +11
+ Misses 3754 3750 -4
- Partials 564 567 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
/meow |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Let's see what others have to say about this. |
Regarding the format, I don't have strong opinions, I just like a consistent style, the shared link does make valid arguments in favor of the Palantir format, up to you all on which format you think is the best for our project |
/retest |
1 similar comment
/retest |
/retest-required |
I think the build-tests is failing because you have added a new module and that should be reflected in |
This patch might fix the problem: diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh
index af3b8106a..d77b1000b 100755
--- a/hack/update-codegen.sh
+++ b/hack/update-codegen.sh
@@ -77,14 +77,13 @@ group "Update deps post-codegen"
if ! ${GITHUB_ACTIONS:-false}; then
"${REPO_ROOT_DIR}"/hack/generate-proto.sh
+ pushd "${REPO_ROOT_DIR}/data-plane"
# Update Java third party file
- pushd data-plane
./mvnw -Dlicense.outputDirectory=. license:aggregate-add-third-party
- popd
-
# Run maven command to apply spotless formatting
- pushd "${REPO_ROOT_DIR}/data-plane"
- mvn spotless:apply
+ ./mvnw spotless:apply
+ # Clean target directories
+ ./mvnw clean
popd
fi
...skipping...
+ ./mvnw clean
popd
fi
diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh
index 1286dc245..2766c5a71 100755
--- a/hack/verify-codegen.sh
+++ b/hack/verify-codegen.sh
@@ -38,7 +38,13 @@ mkdir -p "${TMP_DIFFROOT}"
DIRS=(
"/go.mod"
"/go.sum"
- "/data-plane"
+ "/data-plane/contract"
+ "/data-plane/core"
+ "/data-plane/dispatcher"
+ "/data-plane/dispatcher-vertx"
+ "/data-plane/receiver"
+ "/data-plane/receiver-vertx"
+ "/data-plane/tests"
"/control-plane/pkg/core/config"
"/control-plane/pkg/apis"
"/control-plane/pkg/client" |
Because the error says that the target directory and binary files are different so we need to avoid comparing those |
/cc @pierDipi Ready for review |
@Leo6Leo: GitHub didn't allow me to request PR reviews from the following users: Ready, for, review. Note that only knative-sandbox members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
/retest |
1 similar comment
/retest |
/cc @pierDipi Ready for review again |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leo6Leo, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #3166
Proposed Changes
Release Note