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

Improve build performance of modules #12486

Merged
merged 4 commits into from
May 1, 2022
Merged

Conversation

MC-JY
Copy link
Contributor

@MC-JY MC-JY commented Apr 27, 2022

Fixes #12485

Description

Removing unused dependencies between modules can improved parallelism of parallel builds.

This PR has:

  • been self-reviewed.

@@ -41,12 +41,12 @@
<version>${project.parent.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<!-- <dependency>
Copy link
Member

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>
Copy link
Member

Choose a reason for hiding this comment

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

remove this too

Copy link
Member

@FrankChen021 FrankChen021 left a comment

Choose a reason for hiding this comment

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

LGTM after CI

@FrankChen021 FrankChen021 merged commit bb08069 into apache:master May 1, 2022
<artifactId>druid-console</artifactId>
<version>${project.parent.version}</version>
<scope>runtime</scope>
</dependency>
Copy link
Contributor

@vogievetsky vogievetsky May 3, 2022

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...

image

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...

image

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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 ?

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve build performance of modules
5 participants