-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
594 changed files
with
24,392 additions
and
9,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,31 +26,41 @@ jobs: | |
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Use Python 3.x" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
# step 3 | ||
- name: "Set up Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
# step 3 | ||
# step 4 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4.1 | ||
# step 5.1 | ||
- name: "Test, Check style, Check PMD, Check license with Maven and Java8" | ||
if: matrix.java == '8' | ||
run: | | ||
./mvnw -T 4C clean test \ | ||
-Dcheckstyle.skip=false -Dpmd.skip=false -Dlicense.skip=false -DredisCaseEnabled=true \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
# step 4.2 | ||
# step 5.2 | ||
- name: "Test with Maven and Java${{ matrix.java }}" | ||
if: matrix.java != '8' | ||
run: | | ||
./mvnw -T 4C clean test \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
# step 5 | ||
# step 6 | ||
- name: "Codecov" | ||
if: matrix.java == '8' | ||
uses: codecov/[email protected] | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
version: v0.6.0 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
# job 2: Build on 'arm64v8/ubuntu' OS (Skip tests). | ||
build_arm64-binary: | ||
|
@@ -72,10 +82,9 @@ jobs: | |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \ | ||
arm64v8/ubuntu:20.04 \ | ||
bash -exc 'apt-get update -y && \ | ||
apt-get install python2 -y && \ | ||
python2 --version && \ | ||
apt-get install make gcc g++ -y && \ | ||
apt-get install maven -y && \ | ||
apt-get install -y python3 python3-pip python3-distutils && \ | ||
apt-get install -y build-essential && \ | ||
mvn -version && \ | ||
mvn clean install \ | ||
-Prelease-seata \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,22 +32,32 @@ jobs: | |
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Use Python 3.x" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
# step 3 | ||
- name: "Set up Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
# step 3 | ||
## step 3.1: for Ubuntu and MacOS | ||
# step 4 | ||
## step 4.1: for Ubuntu and MacOS | ||
- name: "Test with Maven on '${{ matrix.os }}' OS" | ||
if: matrix.os != 'windows' | ||
run: | | ||
if [ "${{ matrix.os }}" == "macos" ]; then | ||
python3 -m ensurepip --upgrade; | ||
python3 -m pip install --upgrade pip setuptools; | ||
if ! python3 -c "import distutils" &>/dev/null; then | ||
python3 -m pip install --upgrade setuptools | ||
fi | ||
./mvnw -T 4C clean test -P args-for-client-test -P arrch64 -Dspring-boot.version=${{ matrix.springboot }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
else | ||
./mvnw -T 4C clean test -P args-for-client-test -Dspring-boot.version=${{ matrix.springboot }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi | ||
## step 3.2: for Windows | ||
## step 4.2: for Windows | ||
- name: "Build with Maven on 'windows' OS (Skip tests)" | ||
if: matrix.os == 'windows' | ||
run: | # Skip tests, because too many errors in unit-test. | ||
|
@@ -77,22 +87,32 @@ jobs: | |
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Use Python 3.x" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
# step 3 | ||
- name: "Set up Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
# step 3 | ||
## step 3.1: for Ubuntu and MacOS | ||
# step 4 | ||
## step 4.1: for Ubuntu and MacOS | ||
- name: "Test with Maven on '${{ matrix.os }}' OS" | ||
if: matrix.os != 'windows' | ||
run: | | ||
if [ "${{ matrix.os }}" == "macos" ]; then | ||
python3 -m ensurepip --upgrade; | ||
python3 -m pip install --upgrade pip setuptools; | ||
if ! python3 -c "import distutils" &>/dev/null; then | ||
python3 -m pip install --upgrade setuptools | ||
fi | ||
./mvnw -T 4C clean test -P args-for-client-test -P arrch64 -Dspring-boot.version=${{ matrix.springboot }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
else | ||
./mvnw -T 4C clean test -P args-for-client-test -Dspring-boot.version=${{ matrix.springboot }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi | ||
## step 3.2: for Windows | ||
## step 4.2: for Windows | ||
- name: "Build with Maven on 'windows' OS (Skip tests)" | ||
if: matrix.os == 'windows' | ||
run: | # Skip tests, because too many errors in unit-test. | ||
|
@@ -131,6 +151,8 @@ jobs: | |
arm64v8/ubuntu:20.04 \ | ||
bash -exc 'apt-get update -y && \ | ||
apt-get install maven -y && \ | ||
apt-get install -y python3 python3-pip python3-distutils && \ | ||
apt-get install -y build-essential && \ | ||
mvn -version && \ | ||
mvn -T 4C clean install \ | ||
-Dspring-boot.version=${{ matrix.springboot }} \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,35 +208,31 @@ | |
subcomponents is subject to the terms and conditions of the following | ||
licenses. | ||
|
||
For the package org.apache.seata.sqlparser.antlr.mysql.antlr | ||
This product contains a portion of the Antlr project, which is published at | ||
https://github.com/antlr/antlr4. The project is licensed under a BSD 3-Clause License: | ||
|
||
Copyright (c) 2012-2022 The ANTLR Project. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither name of copyright holders nor the names of its contributors | ||
may be used to endorse or promote products derived from this software | ||
without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR | ||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
For the org.apache.seata.sqlparser.antlr.mysql.antlr.MySqlLexer.g4 and | ||
org.apache.seata.sqlparser.antlr.mysql.antlr.MySqlParser.g4: | ||
|
||
This product contains a portion of the antlr/grammars-v4 project, which is published at | ||
https://github.com/antlr/grammars-v4. The code is licensed under an MIT License: | ||
|
||
MySQL (Positive Technologies) grammar | ||
The MIT License (MIT). | ||
Copyright (c) 2015-2017, Ivan Kochurkin ([email protected]), Positive Technologies. | ||
Copyright (c) 2017, Ivan Khudyashev ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.