[Backport 2.x] Offline calculation of total shard across all node and caching it for weight calculation inside LocalShardBalancer #9456
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: Gradle Assemble | |
on: [pull_request] | |
jobs: | |
assemble: | |
if: github.repository == 'opensearch-project/OpenSearch' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
java: [ 11, 17, 21 ] | |
os: [ubuntu-latest, windows-latest, macos-13] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Setup docker (missing on MacOS) | |
id: setup_docker | |
if: runner.os == 'macos' | |
uses: douglascamata/setup-docker-macos-action@main | |
continue-on-error: true | |
with: | |
upgrade-qemu: true | |
colima: v0.6.8 | |
- name: Run Gradle (assemble) | |
if: runner.os == 'macos' && steps.setup_docker.outcome != 'success' | |
run: | | |
# Report success even if previous step failed (Docker on MacOS runner is very unstable) | |
exit 0; | |
- name: Run Gradle (assemble) | |
if: runner.os != 'macos' | |
run: | | |
./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE | |
- name: Run Gradle (assemble) | |
if: runner.os == 'macos' && steps.setup_docker.outcome == 'success' | |
run: | | |
./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE |