-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][ci] Fixes #23079: Checkstyle checks applied to all test #24492
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
Conversation
The checkstyle check does not pass |
@BewareMyPower i solved above checks, please again review. |
|
I don't know why Checkstyle doesn't check some modules locally when I build the project. @BewareMyPower Can you please help me with this? |
In above module checks, Checkstyle doesn't enforce the rules when I build the project locally, but it does check them in the CI workflows. There are some other modules that behave the same way. |
|
@BewareMyPower Thanks |
|
@BewareMyPower Now, I have resolved all Checkstyle violations. Please review. |
|
@BewareMyPower Please approve workflows |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24492 +/- ##
============================================
+ Coverage 73.57% 74.33% +0.76%
- Complexity 32624 32868 +244
============================================
Files 1877 1868 -9
Lines 139502 145902 +6400
Branches 15299 16728 +1429
============================================
+ Hits 102638 108462 +5824
+ Misses 28908 28840 -68
- Partials 7956 8600 +644
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…o all test (apache#24492)" This reverts commit 13e0a7b.
|
@BewareMyPower You added the release labels for maintenance branches. It will be a significant effort to backport this change to maintenance branches (comments in the issue). Who is going to handle the backporting? |
|
Let me do that |
|
I will only cherry-pick it to 4.0.x releases, since there is no plan for 4.1.0 for now. |
…st (apache#24492) (cherry picked from commit 13e0a7b) (cherry picked from commit 2e07576)
…st (apache#24492) (cherry picked from commit 13e0a7b) (cherry picked from commit 2e07576)
…st (apache#24492) (cherry picked from commit 13e0a7b)

Fixes #23079
Motivation
To improve code quality and maintainability, I resolved all existing Checkstyle violations in the codebase. This ensures consistent coding standards across modules, reduces CI noise, and creates a cleaner environment for contributors. It also helps streamline future development and reviews by eliminating style-related distractions.
Modifications
Fixed all Checkstyle violations in the test directories of the Apache Pulsar repository. The changes address issues related to
ImportOrder, extra blank lines between import statements,LineLength,StaticVariableName,ClassName,MethodName,FileTabCharacter,RegexpSingleline, and other style checks. This ensures cleaner, consistent, and CI-compliant test code throughout the project.Verifying this change
Added the following specific suppressions because fixing the Checkstyle violations would require changes to the existing code.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-complete