Skip to content

Commit

Permalink
Add --warning-mode none when assembling OpenSearch in CI (#231)
Browse files Browse the repository at this point in the history
* Add `--warning-mode none` when assembling OpenSearch in CI

This should hopefully fix the integration test with unreleased OpenSearch
versions, as per:

#229 (review)

Signed-off-by: Tim Düsterhus <tim@tideways-gmbh.com>

* Build OpenSearch with Temurin 21

The OpenJDK installed by default appears to be:

> JDK Version           : 11 (Eclipse Temurin JDK)

which apparently is too old.

Signed-off-by: Tim Düsterhus <tim@tideways-gmbh.com>

---------

Signed-off-by: Tim Düsterhus <tim@tideways-gmbh.com>
  • Loading branch information
TimWolla authored Oct 21, 2024
1 parent 1866e6e commit 5b9b251
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test_unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ jobs:
path: opensearch/distribution/archives/linux-tar/build/distributions
key: ${{ steps.get-key.outputs.key }}

- uses: actions/setup-java@v4
if: steps.cache-restore.outputs.cache-hit != 'true'
with:
distribution: "temurin"
java-version: "21"

- name: Assemble OpenSearch
if: steps.cache-restore.outputs.cache-hit != 'true'
working-directory: opensearch
run: ./gradlew :distribution:archives:linux-tar:assemble
run: ./gradlew :distribution:archives:linux-tar:assemble --warning-mode none

- name: Save cached build
if: steps.cache-restore.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 5b9b251

Please sign in to comment.