From fab94361082437a9f9546cf10972a0039f717c52 Mon Sep 17 00:00:00 2001 From: Zelin Hao Date: Wed, 6 Jul 2022 15:50:27 -0700 Subject: [PATCH 1/3] Exclude manifest checks for 3.0.0 for now Signed-off-by: Zelin Hao --- .github/workflows/manifests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml index e01a5282cb..5bcf07401f 100644 --- a/.github/workflows/manifests.yml +++ b/.github/workflows/manifests.yml @@ -5,7 +5,8 @@ on: push: pull_request: paths: - - manifests/**/*.yml + - 'manifests/**/*.yml' + - '!manifests/3.**/**' schedule: - cron: 0 0 * * * From 1222e951e4f7025f86023cfd61cd44e09a9c18b7 Mon Sep 17 00:00:00 2001 From: Zelin Hao Date: Wed, 6 Jul 2022 17:25:38 -0700 Subject: [PATCH 2/3] Add conditional checks for jdk14 and jdk17 Signed-off-by: Zelin Hao --- .github/workflows/manifests.yml | 47 ++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml index 5bcf07401f..c61b40adfd 100644 --- a/.github/workflows/manifests.yml +++ b/.github/workflows/manifests.yml @@ -5,31 +5,64 @@ on: push: pull_request: paths: - - 'manifests/**/*.yml' - - '!manifests/3.**/**' + - manifests/**/*.yml schedule: - cron: 0 0 * * * jobs: + list-manifests14: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - uses: actions/checkout@v2 + - id: set-matrix + run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2<3)print$0}' | jq -R -s -c 'split("\n")[:-1]')" - list-manifests: + list-manifests17: runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - uses: actions/checkout@v2 - id: set-matrix - run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | jq -R -s -c 'split("\n")[:-1]')" + run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2>3)print$0}' | jq -R -s -c 'split("\n")[:-1]')" - check: - needs: list-manifests + manifest-checks-jdk14: + needs: list-manifests14 runs-on: ubuntu-latest env: PYTHON_VERSION: 3.7 JDK_VERSION: 14 strategy: matrix: - manifest: ${{ fromJson(needs.list-manifests.outputs.matrix) }} + manifest: ${{ fromJson(needs.list-manifests14.outputs.matrix) }} + steps: + - uses: actions/checkout@v2 + - name: Set Up JDK ${{ env.JDK_VERSION }} + uses: actions/setup-java@v1 + with: + java-version: ${{ env.JDK_VERSION }} + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Install Pipenv and Dependencies + run: | + python -m pip install --upgrade pipenv wheel + - name: OpenSearch Manifests + run: |- + ./ci.sh ${{ matrix.manifest }} --snapshot + + manifest-checks-jdk17: + needs: list-manifests17 + runs-on: ubuntu-latest + env: + PYTHON_VERSION: 3.7 + JDK_VERSION: 17 + strategy: + matrix: + manifest: ${{ fromJson(needs.list-manifests17.outputs.matrix) }} steps: - uses: actions/checkout@v2 - name: Set Up JDK ${{ env.JDK_VERSION }} From fb6d56963a711fa5d10b8bfc709dfd8ce0b63986 Mon Sep 17 00:00:00 2001 From: Zelin Hao Date: Mon, 11 Jul 2022 10:16:31 -0700 Subject: [PATCH 3/3] Change jdk version Signed-off-by: Zelin Hao --- .github/workflows/manifests.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml index c61b40adfd..2166c2fca3 100644 --- a/.github/workflows/manifests.yml +++ b/.github/workflows/manifests.yml @@ -10,14 +10,14 @@ on: - cron: 0 0 * * * jobs: - list-manifests14: + list-manifests11: runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - uses: actions/checkout@v2 - id: set-matrix - run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2<3)print$0}' | jq -R -s -c 'split("\n")[:-1]')" + run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2<2)print$0}' | jq -R -s -c 'split("\n")[:-1]')" list-manifests17: runs-on: ubuntu-latest @@ -26,17 +26,17 @@ jobs: steps: - uses: actions/checkout@v2 - id: set-matrix - run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2>3)print$0}' | jq -R -s -c 'split("\n")[:-1]')" + run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | awk -F/ '{if($2>2)print$0}' | jq -R -s -c 'split("\n")[:-1]')" - manifest-checks-jdk14: - needs: list-manifests14 + manifest-checks-jdk11: + needs: list-manifests11 runs-on: ubuntu-latest env: PYTHON_VERSION: 3.7 - JDK_VERSION: 14 + JDK_VERSION: 11 strategy: matrix: - manifest: ${{ fromJson(needs.list-manifests14.outputs.matrix) }} + manifest: ${{ fromJson(needs.list-manifests11.outputs.matrix) }} steps: - uses: actions/checkout@v2 - name: Set Up JDK ${{ env.JDK_VERSION }}