Skip to content
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

Fix checkstyle strange behavior #973

Merged
merged 5 commits into from
Jan 9, 2024
Merged

Conversation

skyao
Copy link
Member

@skyao skyao commented Dec 14, 2023

Description

Set sourceDirectory of checkstyle plugin to only check the sources directory, not test source directory / generated source directory.

Issue reference

More details please see issue:

#972

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

…rectory, not test source and generated source

Signed-off-by: Sky Ao <[email protected]>
@skyao skyao requested review from a team as code owners December 14, 2023 16:40
@@ -126,24 +126,24 @@ jobs:
id: integration_tests
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify
- name: Upload test report for sdk
uses: actions/upload-artifact@master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change this from master to v3.0.0 - did you encounter an issue that warranted this change?

@@ -195,6 +195,9 @@
<failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
<sourceDirectories>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see in the open issue on this, you mentioned that there are in fact checkstyle violations. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:check locally. I do not see those same failures/warnings showing up in CI now. Maybe we should add that command you ran locally to CI and only merge once there are no checkstyle violations.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4ed41ad) 76.29% compared to head (60aa835) 76.29%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #973   +/-   ##
=========================================
  Coverage     76.29%   76.29%           
  Complexity     1463     1463           
=========================================
  Files           138      138           
  Lines          4497     4497           
  Branches        524      524           
=========================================
  Hits           3431     3431           
  Misses          784      784           
  Partials        282      282           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@artursouza artursouza merged commit 3dc2a90 into dapr:master Jan 9, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants