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

3.2.2 release cherry-pick cp: Reduce the size of tarball to continue ASF release #16042

Merged
merged 20 commits into from
May 25, 2024

Conversation

wangxj3
Copy link
Contributor

@wangxj3 wangxj3 commented May 21, 2024

Purpose of the pull request

It is prepared for version 3.2.2, mainly to reduce the size of the release package and fix the helm version problem.

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

wangxj and others added 6 commits May 16, 2024 17:55
* Fix rpc channel leak due to concurrent operation

* Throw channel create failed exception

---------

Co-authored-by: Rick Cheng <rickchengx@gmail.com>
…apache#15540)

* Reduce the size of tarball to continue ASF release

for more detail you can see https://lists.apache.org/thread/rmp7fghlj0n7h9y2v3p8gkw9f9qbo6qt
# Conflicts:
#	tools/dependencies/known-dependencies.txt
rickchengx and others added 2 commits May 21, 2024 11:16
Co-authored-by: Eric Gao <ericgao.apache@gmail.com>
…ers (apache#16033)

Co-authored-by: Rick Cheng <rickchengx@gmail.com>
@ruanwenjun
Copy link
Member

Build failed
image

sdhzwc and others added 3 commits May 21, 2024 15:39
…/project parameters data type (apache#15967)

* [Improvement][parameter] New data types and type filtering

* [Improvement][parameter] Improvement startup parameters/global parameters data type

* fix api interfaces compatible

* add project parameter data type default value

* [Improvement][parameter] New data types and type filtering

* [Improvement][parameter] Improvement startup parameters/global parameters data type

* fix api interfaces compatible

* add project parameter data type default value

* improvement project code

* remove useless imports

* remove method onClearSearchTaskType

* add parameter doc

* optimisation logic

* code conflict resolution

* code conflict resolution

* [Improvement][Monitor] Show master && worker Busy Or Normal Status and Show Commands table list (apache#15978)

* update

* test

* add monitor enhance ui

* update

* update

* update doc

* fix spotless

* update

* update

* Update dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataAnalysisController.java

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* Update dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataAnalysisController.java

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* Update dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ErrorCommandMapper.java

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* Update dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ErrorCommandMapper.xml

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* Update dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/CommandMapper.java

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* Update dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ErrorCommandMapper.xml

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* update

* fix spotless

* update

---------

Co-authored-by: Wenjun Ruan <wenjun@apache.org>

* [Improvement][Monitor] Add UT for montor (apache#15998)

* formatting Code

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 3.1.0
appVersion: 3.2.2
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this appVersion should be changed.
dolphinscheduler.master.labels quotes appVersion

{{- define "dolphinscheduler.common.labels" -}}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
{{- end -}}
{{/*
Create a master labels.
*/}}
{{- define "dolphinscheduler.master.labels" -}}
app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}-master
app.kubernetes.io/component: master
{{ include "dolphinscheduler.common.labels" . }}
{{- end -}}

And dolphinscheduler.master.labels as master's matchLabels, but matchLabels are immutable, which means that, Updating helm charts for an already deployed dolphinscheduler will fail

selector:
matchLabels:
{{- include "dolphinscheduler.master.labels" . | nindent 6 }}

Copy link
Member

Choose a reason for hiding this comment

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

If we still want to modify the appVersion, then we should remove the app.kubernetes.io/version: {{ .Chart.AppVersion }} from dolphinscheduler.common.labels first

Copy link
Member

Choose a reason for hiding this comment

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

I have created a PR #16066 to fix this issue.
After merging, we can modify the appversion as normal.

@wangxj3 Please remember to cherry pick this PR #16066 before 3.2.2 is released

Comment on lines 49 to 58
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.13</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

I don't see any related test cases being added. Why add this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

delete it

@@ -74,7 +74,7 @@

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-all</artifactId>
<artifactId>dolphinscheduler-task-all-prune</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

What is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reduce release package size

ruanwenjun and others added 5 commits May 24, 2024 10:34
Co-authored-by: xiangzihao <460888207@qq.com>
Fix the PreparedStatement parameter is TIME, set it to java.sql.Time

Co-authored-by: Aaron Wang <wangweirao16@gmail.com>
Co-authored-by: Rick Cheng <rickchengx@gmail.com>
@github-actions github-actions bot removed the test label May 24, 2024
Comment on lines +35 to +421
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-hivecli</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-chunjun</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-dms</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-datasync</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-kubeflow</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-linkis</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-datafactory</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-task-remoteshell</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
Copy link
Member

Choose a reason for hiding this comment

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

If we do this, please inform the user in the documentation that this is an incompatible change. This may lead to serious production accidents. cc @ruanwenjun @EricGao888 @Radeity

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is a sad solution from 3.2.1, since no-one want to refactor the release architecture. Right now, the release package size is 1.x g, large than ASF limit. I create #15960 to do this.

Copy link
Member

Choose a reason for hiding this comment

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

+1

@github-actions github-actions bot added UI ui and front end related e2e e2e test labels May 24, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 52.27273% with 42 lines in your changes are missing coverage. Please review.

Project coverage is 40.66%. Comparing base (7b7a333) to head (c025eb7).

Current head c025eb7 differs from pull request most recent head 4ded5ad

Please upload reports for the commit 4ded5ad to get more accurate results.

Files Patch % Lines
...scheduler/plugin/task/api/utils/PropertyUtils.java 0.00% 14 Missing ⚠️
...duler/extract/base/client/NettyRemotingClient.java 65.21% 6 Missing and 2 partials ⚠️
...cheduler/common/log/remote/S3RemoteLogHandler.java 0.00% 3 Missing ⚠️
...r/plugin/registry/zookeeper/ZookeeperRegistry.java 40.00% 1 Missing and 2 partials ⚠️
...eduler/service/expand/CuringParamsServiceImpl.java 66.66% 2 Missing and 1 partial ⚠️
...cheduler/api/service/impl/ExecutorServiceImpl.java 0.00% 1 Missing and 1 partial ⚠️
...phinscheduler/plugin/task/emr/AbstractEmrTask.java 0.00% 2 Missing ⚠️
...scheduler/plugin/task/sagemaker/SagemakerTask.java 0.00% 2 Missing ⚠️
...inscheduler/api/controller/ExecutorController.java 50.00% 1 Missing ⚠️
...duler/api/service/impl/WorkerGroupServiceImpl.java 0.00% 0 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@                 Coverage Diff                 @@
##             3.2.2-prepare   #16042      +/-   ##
===================================================
+ Coverage            40.58%   40.66%   +0.07%     
- Complexity            5216     5225       +9     
===================================================
  Files                 1380     1380              
  Lines                46056    46011      -45     
  Branches              4916     4919       +3     
===================================================
+ Hits                 18693    18710      +17     
+ Misses               25437    25376      -61     
+ Partials              1926     1925       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wangxj3 wangxj3 merged commit 646bbf4 into apache:3.2.2-prepare May 25, 2024
42 of 44 checks passed
Copy link

sonarcloud bot commented May 25, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@wangxj3 wangxj3 deleted the 3.2.2-release branch May 30, 2024 08:27
@wangxj3 wangxj3 restored the 3.2.2-release branch May 30, 2024 08:27
@wangxj3 wangxj3 deleted the 3.2.2-release branch May 30, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend document e2e e2e test UI ui and front end related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet