Skip to content

PHOENIX-7443 Add Spotless to the pre-commit checks #2119

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NihalJain
Copy link
Contributor

No description provided.

@NihalJain
Copy link
Contributor Author

NihalJain commented Apr 16, 2025

Follows up #2023
We should merge #2024 before merging this!

@stoty
Copy link
Contributor

stoty commented Apr 16, 2025

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-2119/1/console in case of problems.

@NihalJain
Copy link
Contributor Author

We get spotless error as expected here. (Since we have not run mvn spotless:apply as done in #2024 yet)

16:37:33  JIRA Plugin: no credentials provided to write a comment.
16:37:35  
16:37:35  
16:37:35  -1 overall
16:37:35  
16:37:35  | Vote |          Subsystem |  Runtime   | Comment
16:37:35  ============================================================================
16:37:35  |   0  |            reexec  |   3m 38s   | Docker mode activated. 
16:37:35  +---------------------------------------------------------------------------
16:37:35  |      |                    |            | Prechecks 
16:37:35  +---------------------------------------------------------------------------
16:37:35  |  +1  |           dupname  |   0m  0s   | No case conflicting files found. 
16:37:35  |  +1  |           @author  |   0m  0s   | The patch does not contain any 
16:37:35  |      |                    |            | @author tags.
16:37:35  +---------------------------------------------------------------------------
16:37:35  |      |                    |            | master Compile Tests 
16:37:35  +---------------------------------------------------------------------------
16:37:35  |   0  |            mvndep  |   0m 58s   | Maven dependency ordering for branch 
16:37:35  |  +0  |    hbaserecompile  |   0m 11s   | HBase recompiled. 
16:37:35  |  -1  |          spotless  |   0m 11s   | branch has 63 errors when running 
16:37:35  |      |                    |            | spotless:check, run spotless:apply to
16:37:35  |      |                    |            | fix.
16:37:35  +---------------------------------------------------------------------------
16:37:35  |      |                    |            | Patch Compile Tests 
16:37:35  +---------------------------------------------------------------------------
16:37:35  |   0  |            mvndep  |   0m  7s   | Maven dependency ordering for patch 
16:37:35  |  +1  |         codespell  |   0m  8s   | No new issues. 
16:37:35  |  +1  |            blanks  |   0m  0s   | The patch has no blanks issues. 
16:37:35  |  +1  |        shellcheck  |   0m  2s   | No new issues. 
16:37:35  |  +1  |         shelldocs  |   0m  2s   | No new issues. 
16:37:35  |  -1  |          spotless  |   0m  6s   | patch has 63 errors when running 
16:37:35  |      |                    |            | spotless:check, run spotless:apply to
16:37:35  |      |                    |            | fix.
16:37:35  +---------------------------------------------------------------------------
16:37:35  |      |                    |            | Other Tests 
16:37:35  +---------------------------------------------------------------------------
16:37:35  |   0  |        asflicense  |   0m  0s   | ASF License check generated no 
16:37:35  |      |                    |            | output?
16:37:35  |      |                    |   5m 44s   |
16:37:35  

Reference: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-2119/1/console

CC: @stoty @mnpoonia @lfrancke

@NihalJain NihalJain changed the title PHOENIX-7443 Add spotless phoenix pre commit check PHOENIX-7443 Add Spotless to the pre-commit checks Apr 16, 2025
@stoty
Copy link
Contributor

stoty commented Apr 16, 2025

We should make sure to merge the reformat and this one together.

@stoty
Copy link
Contributor

stoty commented Apr 16, 2025

Maybe make PR with both in a commit chain ?

@NihalJain
Copy link
Contributor Author

Maybe make PR with both in a commit chain ?

Already done at #2120

@NihalJain
Copy link
Contributor Author

We should make sure to merge the reformat and this one together.

Yes makes sense. But should not be a problem even if we do separately. Advantage being its cleaner and keeps manual and auto generated code change separate. I prefer keeping both separate and merging auto format first and then enforcing in build via this PR.

@stoty
Copy link
Contributor

stoty commented Apr 16, 2025

I agree, separate commits, but we should make sure that nothing gets committed without spotless between the reformat and enabling spotless from CI.

@NihalJain
Copy link
Contributor Author

e should make sure that nothing gets committed without spotless between the reformat and enabling spotless from CI.

Right we must time to merge both one after another.

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.

2 participants