Implement multi tenancy in Flow Framework #2835
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- 'whitesource-remediate/**' | |
- 'backport/**' | |
- 'create-pull-request/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
spotless: | |
if: github.repository == 'opensearch-project/flow-framework' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Spotless Check | |
run: ./gradlew spotlessCheck | |
javadoc: | |
if: github.repository == 'opensearch-project/flow-framework' | |
runs-on: ubuntu-latest | |
steps: | |
# TEMPORARY until this is on Maven | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout Metadata Client | |
uses: actions/checkout@v4 | |
with: | |
repository: dbwiddis/opensearch-remote-metadata-sdk | |
ref: main | |
path: opensearch-remote-metadata-sdk | |
- name: Publish to maven local | |
working-directory: opensearch-remote-metadata-sdk | |
run: ./gradlew publishToMavenLocal | |
# end TEMPORARY code | |
- uses: actions/checkout@v4 | |
- name: Javadoc CheckStyle | |
run: ./gradlew checkstyleMain | |
- name: Javadoc Check | |
run: ./gradlew javadoc | |
build: | |
needs: [spotless, javadoc] | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
java: [21] | |
name: Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
# TEMPORARY until this is on Maven | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout Metadata Client | |
uses: actions/checkout@v4 | |
with: | |
repository: dbwiddis/opensearch-remote-metadata-sdk | |
ref: main | |
path: opensearch-remote-metadata-sdk | |
- name: Publish to maven local | |
working-directory: opensearch-remote-metadata-sdk | |
run: ./gradlew publishToMavenLocal | |
# end TEMPORARY code | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew check -x integTest -x yamlRestTest -x spotlessJava | |
- name: Upload Coverage Report | |
if: contains(matrix.os, 'ubuntu') && contains(matrix.java, '21') | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
file: ./build/reports/jacoco/test/jacocoTestReport.xml | |
integTest: | |
needs: [spotless, javadoc] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
java: [21] | |
name: Integ Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
# TEMPORARY until this is on Maven | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout Metadata Client | |
uses: actions/checkout@v4 | |
with: | |
repository: dbwiddis/opensearch-remote-metadata-sdk | |
ref: main | |
path: opensearch-remote-metadata-sdk | |
- name: Publish to maven local | |
working-directory: opensearch-remote-metadata-sdk | |
run: ./gradlew publishToMavenLocal | |
# end TEMPORARY code | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew integTest yamlRestTest | |
integMultiNodeTest: | |
needs: [spotless, javadoc] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
java: [21] | |
name: Multi-Node Integ Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
# TEMPORARY until this is on Maven | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout Metadata Client | |
uses: actions/checkout@v4 | |
with: | |
repository: dbwiddis/opensearch-remote-metadata-sdk | |
ref: main | |
path: opensearch-remote-metadata-sdk | |
- name: Publish to maven local | |
working-directory: opensearch-remote-metadata-sdk | |
run: ./gradlew publishToMavenLocal | |
# end TEMPORARY code | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew integTest -PnumNodes=3 | |
integTenantAwareTest: | |
needs: [spotless, javadoc] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
java: [21] | |
name: Multi-Node Integ Test JDK${{ matrix.java }}, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
# TEMPORARY until this is on Maven | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout Metadata Client | |
uses: actions/checkout@v4 | |
with: | |
repository: dbwiddis/opensearch-remote-metadata-sdk | |
ref: main | |
path: opensearch-remote-metadata-sdk | |
- name: Publish to maven local | |
working-directory: opensearch-remote-metadata-sdk | |
run: ./gradlew publishToMavenLocal | |
# end TEMPORARY code | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew integTest -PnumNodes=3 -Dtests.rest.tenantaware=true |