-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Improve build performance of modules #12486
Conversation
@@ -41,12 +41,12 @@ | |||
<version>${project.parent.version}</version> | |||
<scope>provided</scope> | |||
</dependency> | |||
<dependency> | |||
<!-- <dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better to remove it directly from the file.
server/pom.xml
Outdated
@@ -49,12 +49,12 @@ | |||
<version>${project.parent.version}</version> | |||
<scope>runtime</scope> | |||
</dependency> | |||
<dependency> | |||
<!-- <dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after CI
<artifactId>druid-console</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>runtime</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up: I am reverting this change here 592ddd4
Removing the druid-console dependency makes the web console no longer be part of Druid...
The e2e tests do not run unless there are JS changes which is how this PR passed CI. I was struggling to figure out why my console PR (#12489) was failing to even start the e2e tests when it turned out that the console was just gone...
So I am adding this dependency back. Fun fact, my PR (linked above) will actually improve the console build speed a little bit by removing the stylus
dependency but obviously not as much as not building the console all together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on ^, I think maybe we should consider running web e2e tests on java changes, instead of just web-console changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running web e2e tests on java changes may be too burden. IMO, we can add one test case to check if localhost:888/unified-console.html
returns HTTP 200.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vogievetsky Do you mean the druid-console.jar
is missing in the distribution package after deleting the depedency declaration from server/pom.xml ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The final distribution package is packaged by maven-assembly-plugin. I think we can make some modifications to the assembly file under distribution/src/assembly/assembly.xml
to include the druid-console
module in the final package. If it's viable, we don't need to include druid-console
module in the druid-server
module which really looks a little bit strange.
Fixes #12485
Description
Removing unused dependencies between modules can improved parallelism of parallel builds.
This PR has: