Skip to content

Commit

Permalink
[Build Break] Disable gradlew build cache to ensure most up-to-date d…
Browse files Browse the repository at this point in the history
…ependencies (opensearch-project#3186)

Disable gradlew build cache to ensure most up-to-date dependencies

We suspect that we are seeing the snapshot build of opensearch be cached
in some circumstances and not cached in others that is creating a mix of
build failures that are hard to interpret.

Follow up issue to revisit and potentially renable this setting
opensearch-project#3185

Signed-off-by: Peter Nied <petern@amazon.com>
peternied authored Aug 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0b89858 commit 5e8f12c
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/create-bwc-build/action.yaml
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@ runs:
- name: Build
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: assemble
build-root-directory: ${{ inputs.plugin-branch }}

1 change: 1 addition & 0 deletions .github/actions/run-bwc-suite/action.yaml
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ runs:
- name: Run BWC tests
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: |
bwcTestSuite
-Dtests.security.manager=false
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ jobs:
- name: Build and Test
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: |
${{ matrix.gradle_task }} -Dbuild.snapshot=false
-x test
@@ -99,6 +100,7 @@ jobs:
uses: gradle/gradle-build-action@v2
continue-on-error: true # Until retries are enable do not fail the workflow https://github.com/opensearch-project/security/issues/2184
with:
cache-disabled: true
arguments: |
integrationTest -Dbuild.snapshot=false
3 changes: 3 additions & 0 deletions .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ jobs:

- uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: spotlessCheck

checkstyle:
@@ -41,6 +42,7 @@ jobs:

- uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: checkstyleMain checkstyleTest

spotbugs:
@@ -56,6 +58,7 @@ jobs:

- uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: spotbugsMain

check-permissions-order:
2 changes: 2 additions & 0 deletions .github/workflows/plugin_install.yml
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ jobs:
- name: Assemble target plugin
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: assemble

# Move and rename the plugin for installation
@@ -59,4 +60,5 @@ jobs:
- name: Run sanity tests
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=admin

0 comments on commit 5e8f12c

Please sign in to comment.