forked from apache/rocketmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE apache#8058]Support for upgrading metadata in json to rocksdb (a…
- Loading branch information
LetLetMe
committed
May 21, 2024
1 parent
159a603
commit 7320c70
Showing
18 changed files
with
1,075 additions
and
174 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 |
---|---|---|
@@ -1,34 +1,56 @@ | ||
name: Build and Run Tests by Maven | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
push: | ||
branches: [master, develop, bazel] | ||
|
||
jobs: | ||
java_build: | ||
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
jdk: [8] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK ${{ matrix.jdk }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
distribution: "adopt" | ||
cache: "maven" | ||
|
||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Upload JVM crash logs | ||
|
||
- name: Run tests with increased memory and debug info | ||
run: mvn test -X -Dparallel=none -DargLine="-Xmx1024m -XX:MaxPermSize=256m" | ||
|
||
- name: Upload Auth JVM crash logs | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jvm-crash-logs | ||
path: /Users/runner/work/rocketmq/rocketmq/auth/hs_err_pid*.log | ||
retention-days: 1 | ||
|
||
- name: Check for broker JVM crash logs | ||
if: failure() | ||
run: | | ||
echo "Checking for JVM crash logs..." | ||
ls -al /Users/runner/work/rocketmq/rocketmq/broker/ | ||
- name: Upload broker JVM crash logs | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jvm-crash-logs | ||
path: /Users/runner/work/rocketmq/rocketmq/broker/hs_err_pid*.log | ||
retention-days: 1 |
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.