[ISSUE #8248]fix: getTotalBatchMaxBytes return holdSize #5152
Workflow file for this run
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
name: Build and Run Tests by Maven | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
branches: [master, develop, bazel] | |
permissions: | |
actions: write | |
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 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: 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 | |
- name: Retry if failed | |
# if it failed , retry 2 times at most | |
if: failure() && fromJSON(github.run_attempt) < 3 | |
continue-on-error: true | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "Attempting to retry workflow..." | |
gh workflow run rerun-workflow.yml -F run_id=${{ github.run_id }} |