Skip to content

Commit

Permalink
[release] release for 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly authored Dec 16, 2022
2 parents c95d49f + fad95fe commit d0f63fd
Show file tree
Hide file tree
Showing 398 changed files with 7,324 additions and 2,444 deletions.
55 changes: 31 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,53 @@ on:
branches: [ develop, master ]

jobs:
build_arm64-binary:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Build arm-binary
run: |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
arm64v8/ubuntu:20.04 \
bash -exc 'apt-get update -y && \
apt-get install maven -y && \
mvn -Prelease-seata -Dmaven.test.skip=true clean install -U'
build:
runs-on: ${{ matrix.os }}
name: "build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11 ]
os: [ ubuntu-18.04 ]
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0

# step 2
- name: "Set up Java JDK"
uses: actions/setup-java@v2.1.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}

# step 3
- name: "Set up ENV"
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
run: if [ "${{ matrix.java }}" == "8" ]; then
echo "IMAGE_NAME=openjdk:8u212-jre-alpine" >> $GITHUB_ENV;
elif [ "${{ matrix.java }}" == "11" ]; then
echo "IMAGE_NAME=openjdk:11-jre-stretch" >> $GITHUB_ENV;
fi

# step 4
- name: "Build with Maven"
env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
# https://docs.github.com/cn/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context
run: if [ "${{matrix.java}}" == "8" ] && [ "${{github.event_name}}" == "push" ] && [ "${{github.ref}}" == "refs/heads/develop" ]; then
./mvnw -T 4C clean install -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -P image -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
./mvnw -T 4C clean install -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
run: |
if [ "${{ matrix.java }}" == "8" ]; then
./mvnw -T 4C clean test -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
elif [ "${{ matrix.java }}" == "11" ]; then
./mvnw -T 4C clean test -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
# step 5
# step 4
- name: "Codecov"
if: matrix.java == '8'
uses: codecov/codecov-action@v1.5.0
uses: codecov/codecov-action@v2.1.0
27 changes: 27 additions & 0 deletions .github/workflows/license-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: License checker

on:
pull_request:
branches: [ develop, master ]

jobs:
check-license:
runs-on: ubuntu-latest
steps:
# step 1
- name: Checkout
uses: actions/[email protected]
# step 2
- name: Check License Header
uses: apache/skywalking-eyes/header@25edfc2fd8d52fb266653fb5f6c42da633d85c07
with:
log: info
config: .licenserc.yaml
mode: check
# step 3
- name: Check Dependencies' License
uses: apache/skywalking-eyes/dependency@25edfc2fd8d52fb266653fb5f6c42da633d85c07
with:
log: info
config: .licenserc.yaml
mode: check
57 changes: 57 additions & 0 deletions .github/workflows/publishes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Publishes"

on:
push:
branches: [ snapshot, "*.*.*" ]
#tags: [ "*" ]

#This schedule only takes effect in the default branch
schedule:
- cron: '0 16 * * *' #GMT+0

jobs:
publish:
name: "Publish"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
type: [ "OSSRH", "image" ]
steps:
# step 1
- name: "Checkout"
uses: actions/[email protected]

# step 2
- name: "Setup Java JDK"
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 8
server-id: oss_seata
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD

# step 3 for type=OSSRH
- name: "Import GPG-SECRET-KEY, Package and Publish-To-OSSRH"
if: matrix.type == 'OSSRH'
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import;
./mvnw -T 4C clean deploy -Prelease,release-by-github-actions -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
# step 4 for type=image
- name: "Package and Publish-Image-To-DockerHub"
if: matrix.type == 'image'
env:
IMAGE_NAME: openjdk:8u342
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
if [ "${{ github.ref_name }}" == "develop" ] || [ "${{ github.ref_name }}" == "snapshot" ]; then
./mvnw -T 4C clean package -Pimage -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
./mvnw -T 4C clean package -Pimage,release-image -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
77 changes: 58 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,85 @@ name: "test"

on:
push:
branches: [ test*, 1.*.*, 2.*.* ]
branches: [ test*, "*.*.*" ]

jobs:
test:
name: "test"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17 ]
springboot: [
2.6.4,
2.5.10,
2.4.13,
2.3.12.RELEASE,
2.2.13.RELEASE,
#2.1.18.RELEASE,
#2.0.9.RELEASE,
#1.5.22.RELEASE,
#1.4.7.RELEASE,
#1.3.8.RELEASE,
#1.2.8.RELEASE,
#1.1.12.RELEASE,
#1.0.2.RELEASE
2.7.2 -Dspring-framework.version=5.3.22,
2.6.10 -Dspring-framework.version=5.3.22,
2.5.14 -Dspring-framework.version=5.3.20,
2.4.13 -Dspring-framework.version=5.3.13,
2.3.12.RELEASE -Dspring-framework.version=5.2.15.RELEASE,
2.2.13.RELEASE -Dspring-framework.version=5.2.12.RELEASE,
#2.1.18.RELEASE,
#2.0.9.RELEASE,
#1.5.22.RELEASE,
#1.4.7.RELEASE,
#1.3.8.RELEASE,
#1.2.8.RELEASE,
#1.1.12.RELEASE,
#1.0.2.RELEASE
]
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0

# step 2
- name: "Set up Java JDK"
uses: actions/setup-java@v2.1.0
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}

# step 3
- name: "Test with Maven"
# https://docs.github.com/cn/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context
run: if [ "${{ matrix.java }}" == "8" ]; then
./mvnw -T 4C clean install -e -Dspring-boot.version=${{ matrix.springboot }} -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
run: |
if [ "${{ matrix.java }}" == "8" ]; then
./mvnw -T 4C clean test -Dspring-boot.version=${{ matrix.springboot }} -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
./mvnw -T 4C clean install -e -P args-for-un-java8 -Dspring-boot.version=${{ matrix.springboot }} -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
./mvnw -T 4C clean test -Dspring-boot.version=${{ matrix.springboot }} -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
arm64-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
springboot: [
2.7.2 -Dspring-framework.version=5.3.22,
2.6.10 -Dspring-framework.version=5.3.22,
2.5.14 -Dspring-framework.version=5.3.20,
2.4.13 -Dspring-framework.version=5.3.13,
2.3.12.RELEASE -Dspring-framework.version=5.2.15.RELEASE,
2.2.13.RELEASE -Dspring-framework.version=5.2.12.RELEASE,
#2.1.18.RELEASE,
#2.0.9.RELEASE,
#1.5.22.RELEASE,
#1.4.7.RELEASE,
#1.3.8.RELEASE,
#1.2.8.RELEASE,
#1.1.12.RELEASE,
#1.0.2.RELEASE
]
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: install
run: |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
arm64v8/ubuntu:20.04 \
bash -exc 'apt-get update -y && \
apt-get install maven -y'
- name: test-arm64
run: |
./mvnw -T 4C clean test -Dspring-boot.version=${{ matrix.springboot }} -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ dependency-reduced-pom.xml
/distribution/bin/
/distribution/conf/
/distribution/lib/
/distribution/ext/
/distribution/logs/
/distribution/*/bin/
/distribution/*/conf/
/distribution/*/lib/
/distribution/*/logs/
/distribution/*/ext/
/server/*root.*
/server/.root.*
/server/sessionStore/
Expand Down
86 changes: 86 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#
# Copyright 1999-2019 Seata.io Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
header:
license:
spdx-id: Apache-2.0
copyright-owner: Seata.io
content: |
Copyright 1999-2019 Seata.io Group.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '.travis.yml'
- 'codecov.yml'
- 'CONTRIBUTING.md'
- 'CONTRIBUTING_CN.md'
- 'CODE_OF_CONDUCT.md'
- 'README.md'
- 'LICENSE'
- 'NOTICE'
- '**/*.md'
- '.github/**'
#SPI、spring.factories、spring-configuration-metadata.json、additional-spring-configuration-metadata.json
- '**/src/test/resources/META-INF/**'
- '**/src/main/resources/META-INF/**'
- '**/target/**'
- '**/*.iml'
- 'mvnw'
- 'mvnw.cmd'
- '*.sh'
- 'changes/**'
- 'style/**'
- 'script/**'
- 'seata-plugins/**'
- '.mvn/**'
- 'sessionStore/**'
- 'distribution/LICENSE-BIN'
- 'distribution/NOTICE-BIN'
- 'test/src/test/resources/**'
- 'serializer/seata-serializer-protobuf/src/main/resources/protobuf/io/seata/protocol/transcation/*.proto'
- 'saga/seata-saga-statemachine-designer/node_modules/**'
- 'node_modules/**'
- 'saga/seata-saga-statemachine-designer/**'
- '**/src/test/resources/statelang/**'
- 'console/src/main/resources/static/console-fe/**'
- '**/io/seata/sqlparser/antlr/**/*.g4'
- '**/io/seata/sqlparser/antlr/mysql/parser/*'
- '**/integration/**/*.proto'
- 'console/src/main/resources/static/**'
- 'ext/apm-seata-skywalking-plugin/config/agent.config'
- 'server/src/main/resources/lua/redislocker/redislock.lua'


comment: on-failure
dependency:
files:
- pom.xml
- saga/seata-saga-statemachine-designer/package.json
- console/src/main/resources/static/console-fe/package.json
excludes:
- name: io.seata:*
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ install: true

before_script:
- if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ]; then
export IMAGE_NAME="openjdk:8u212-jre-alpine";
export IMAGE_NAME="openjdk:8u212-jre-alpine";
fi
- if [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then
export IMAGE_NAME="openjdk:11-jre-stretch";
export IMAGE_NAME="openjdk:11-jre-stretch";
fi

script:
- if [ "$TRAVIS_BRANCH" == "develop" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then
travis_wait 30 ./mvnw clean install -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -P image -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
travis_wait 30 ./mvnw clean test -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -P image -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
travis_wait 30 ./mvnw clean install -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
travis_wait 30 ./mvnw clean test -DskipTests=false -Dcheckstyle.skip=false -Dlicense.skip=false -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
5 changes: 5 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Seata
Copyright 2019-2022 Seata.io Group.

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
Loading

0 comments on commit d0f63fd

Please sign in to comment.