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

optimize: publish images based on java 8, 8-slim, 17, 17-slim #5168

Merged
merged 38 commits into from
Mar 2, 2023

Conversation

wangliang181230
Copy link
Contributor

@wangliang181230 wangliang181230 commented Dec 19, 2022

optimize: Publish images to Docker Hub based on java 8, 8-slim, 17, 17-slim, and upgrade setup-java to 3.9.0, and simplify the action script.

  1. 基于 java8, java8-slim, java17, java17-slim 发布docker镜像到 Docker Hub 上;
  2. 升级 setup-java3.9.0,并简化发布脚本。

另外,调整 build.yml 的脚本:

  1. compile 的job,编译java11,同时运行 checkstyle .
  2. build 的job,测试java8和17。

参照我fork仓库里的action记录,执行成功了。
https://github.com/wangliang181230/seata/actions/runs/3779671964


我自己的测试仓库里,上传成功的镜像记录截图。
https://hub.docker.com/r/easyj/seata-server/tags
图片

@wangliang181230 wangliang181230 changed the title optimize: upgrade setup-java to 3.9.0 optimize: upgrade setup-java to 3.9.0, and simplify the action script Dec 19, 2022
@wangliang181230 wangliang181230 changed the title optimize: upgrade setup-java to 3.9.0, and simplify the action script optimize: upgrade setup-java to 3.9.0, and simplify the action script Dec 19, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2022

Codecov Report

Merging #5168 (c16fda0) into develop (28b3413) will increase coverage by 0.07%.
The diff coverage is n/a.

❗ Current head c16fda0 differs from pull request most recent head 1f8b1be. Consider uploading reports for the commit 1f8b1be to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #5168      +/-   ##
=============================================
+ Coverage      48.69%   48.77%   +0.07%     
+ Complexity      4187     4176      -11     
=============================================
  Files            744      743       -1     
  Lines          26687    26626      -61     
  Branches        3332     3333       +1     
=============================================
- Hits           12995    12986       -9     
+ Misses         12295    12239      -56     
- Partials        1397     1401       +4     
Impacted Files Coverage Δ
...ta/core/protocol/IncompatibleVersionException.java 0.00% <0.00%> (-100.00%) ⬇️
.../src/main/java/io/seata/core/protocol/Version.java 7.50% <0.00%> (-40.12%) ⬇️
...ver/storage/redis/session/RedisSessionManager.java 45.61% <0.00%> (-5.27%) ⬇️
...va/io/seata/rm/datasource/exec/UpdateExecutor.java 80.00% <0.00%> (-5.25%) ⬇️
...erver/storage/file/session/FileSessionManager.java 48.40% <0.00%> (-5.10%) ⬇️
...in/java/io/seata/server/session/GlobalSession.java 79.00% <0.00%> (-4.97%) ⬇️
...ava/io/seata/server/lock/LockerManagerFactory.java 56.25% <0.00%> (-4.87%) ⬇️
...c/main/java/io/seata/server/store/StoreConfig.java 59.45% <0.00%> (-2.71%) ⬇️
...rage/redis/store/RedisTransactionStoreManager.java 74.67% <0.00%> (-2.35%) ⬇️
...in/java/io/seata/server/session/SessionHelper.java 63.63% <0.00%> (-1.82%) ⬇️
... and 28 more

@wangliang181230 wangliang181230 added this to the 1.6.2 milestone Dec 21, 2022
@wangliang181230 wangliang181230 modified the milestones: 1.6.2, 1.7.0 Dec 22, 2022
@wangliang181230 wangliang181230 changed the title optimize: upgrade setup-java to 3.9.0, and simplify the action script optimize: Publish images to Docker Hub based on java8, java8-slim, java17, java17-slim Dec 26, 2022
@wangliang181230 wangliang181230 changed the title optimize: Publish images to Docker Hub based on java8, java8-slim, java17, java17-slim optimize: Publish images to Docker Hub based on java8, java8-slim, java17, java17-slim, and upgrade setup-java to 3.9.0 Dec 26, 2022
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

@wangliang181230 wangliang181230 changed the title optimize: Publish images to Docker Hub based on java8, java8-slim, java17, java17-slim, and upgrade setup-java to 3.9.0 optimize: Publish images to Docker Hub based on java 8, 8-slim, 17, 17-slim, and upgrade setup-java to 3.9.0 Dec 26, 2022
<version>${junit-jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

避免项目下载低版本的junit5的依赖。

bash -exc 'apt-get update -y && \
apt-get install maven -y && \
mvn -Prelease-seata -Dmaven.test.skip=true clean install -U'
./mvnw -T 4C clean test-compile -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
Copy link
Member

Choose a reason for hiding this comment

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

just compile src undersrc/test ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it contains src/main

strategy:
# job 1: Compile based on java11, and checkstyle.
compile:
name: "compile"
Copy link
Member

Choose a reason for hiding this comment

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

I think the hierarchy is clearer and simpler without splitting(compile and build )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, remove the compile job.

@slievrly slievrly changed the title optimize: Publish images to Docker Hub based on java 8, 8-slim, 17, 17-slim, and upgrade setup-java to 3.9.0 optimize: publish images based on java 8, 8-slim, 17, 17-slim Mar 2, 2023
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly merged commit bb7e373 into apache:develop Mar 2, 2023
@wangliang181230 wangliang181230 deleted the upgrade-setup-java branch March 2, 2023 06:01
wangliang181230 added a commit to wangliang181230/seata that referenced this pull request Mar 8, 2023
l81893521 pushed a commit to l81893521/seata that referenced this pull request Mar 28, 2023
l81893521 pushed a commit to l81893521/seata that referenced this pull request Mar 28, 2023
l81893521 pushed a commit to l81893521/seata that referenced this pull request Mar 28, 2023
l81893521 pushed a commit to l81893521/seata that referenced this pull request Mar 28, 2023
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.

4 participants