Skip to content

Enforce the checkstyle when test and compile. - #1128

Merged
tdas merged 4 commits into
unitycatalog:mainfrom
openinx:1085-checkstyle-fix
Oct 24, 2025
Merged

tdas merged 4 commits into
unitycatalog:mainfrom
openinx:1085-checkstyle-fix

Conversation

@openinx

@openinx openinx commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Related issue is here: #1085

@openinx
openinx requested a review from tdas as a code owner October 23, 2025 21:29
@openinx
openinx force-pushed the 1085-checkstyle-fix branch from 681033c to 6124d25 Compare October 23, 2025 21:53
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
@openinx

openinx commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator Author

The unit tests look good, except the MLFlow tests , it failed because of:

+ ai/dev/start_unitycatalog.sh
Building and starting the Unity Catalog Server
UC server started with PID 2281
Waiting for UC server to be ready...
Waiting for UC server... (1/48)
Waiting for UC server... (2/48)
Waiting for UC server... (3/48)
Waiting for UC server... (4/48)
Waiting for UC server... (5/48)
Waiting for UC server... (6/48)
Waiting for UC server... (7/48)
Waiting for UC server... (8/48)
Waiting for UC server... (9/48)
Waiting for UC server... (10/48)
Waiting for UC server... (11/48)
Waiting for UC server... (12/48)
Waiting for UC server... (13/48)
Waiting for UC server... (14/48)
Waiting for UC server... (15/48)
Waiting for UC server... (16/48)
Waiting for UC server... (17/48)
Waiting for UC server... (18/48)
Waiting for UC server... (19/48)
Waiting for UC server... (20/48)
Waiting for UC server... (21/48)
Waiting for UC server... (22/48)
Waiting for UC server... (23/48)
Waiting for UC server... (24/48)
Waiting for UC server... (25/48)
Waiting for UC server... (26/48)
Waiting for UC server... (27/48)
Waiting for UC server... (28/48)
Waiting for UC server... (29/48)
Waiting for UC server... (30/48)
Waiting for UC server... (31/48)
Waiting for UC server... (32/48)
Waiting for UC server... (33/48)
Waiting for UC server... (34/48)
Waiting for UC server... (35/48)
Waiting for UC server... (36/48)
Waiting for UC server... (37/48)
Waiting for UC server... (38/48)
Waiting for UC server... (39/48)
Waiting for UC server... (40/48)
Waiting for UC server... (41/48)
Waiting for UC server... (42/48)
Waiting for UC server... (43/48)
Waiting for UC server... (44/48)
Waiting for UC server... (45/48)
Waiting for UC server... (46/48)
Waiting for UC server... (47/48)
Waiting for UC server... (48/48)
ai/dev/start_unitycatalog.sh: line 36: kill: (2281) - No such process
UC server failed to start within 240 seconds
Error: Process completed with exit code 1.

@openinx

openinx commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator Author

Let's try again.

@openinx openinx closed this Oct 24, 2025
@openinx openinx reopened this Oct 24, 2025
@openinx openinx closed this Oct 24, 2025
@openinx openinx reopened this Oct 24, 2025
Comment thread project/Checkstyle.scala
)
}

private def javaCheckstyle(log: Logger, reportFile: File): Unit = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

docs on each function explaining what it does.
sbt scala code is hard to read and understnd .. so docs is important.

Comment thread project/Checkstyle.scala
private lazy val compileJavastyle = taskKey[Unit]("compileJavastyle")
private lazy val testJavastyle = taskKey[Unit]("testJavastyle")

def javaCheckstyleSettings(checkstyleFile: String): Def.SettingsDefinition = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

docs.

Comment thread project/plugins.sbt
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.8.0")

addSbtPlugin("com.etsy" % "sbt-checkstyle-plugin" % "3.1.1")
addSbtPlugin("software.purpledragon" % "sbt-checkstyle-plugin" % "4.0.1")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why this upgrade?

@tdas tdas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thank you for doing this!!! this was a much needed improvement!

@tdas

tdas commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

i am merging it to prevent additional conflicts when other PRs are merged. please do address my comments in follow up PR which will be very small.

@tdas
tdas merged commit 487f89f into unitycatalog:main Oct 24, 2025
timothyw553 pushed a commit to timothyw553/unitycatalog that referenced this pull request Oct 24, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Related issue is here:
unitycatalog#1085

---------

Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
openinx added a commit to openinx/unitycatalog that referenced this pull request Nov 11, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Related issue is here:
unitycatalog#1085

---------

Signed-off-by: Zheng Hu <[email protected]>
openinx added a commit to openinx/unitycatalog that referenced this pull request Nov 11, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Related issue is here:
unitycatalog#1085

---------

Signed-off-by: Zheng Hu <[email protected]>
openinx added a commit to openinx/unitycatalog that referenced this pull request Nov 11, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Related issue is here:
unitycatalog#1085

---------

Signed-off-by: Zheng Hu <[email protected]>
tdas pushed a commit that referenced this pull request Nov 12, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [x] If you've fixed a bug or added code that should be tested, add
tests!
- [x] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Backport #1128 and
#1095 to the branch-0.3

The whole progress of backport is here:
#1163

---------

Signed-off-by: Zheng Hu <[email protected]>
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