Skip to content

Commit

Permalink
[Backport 2.x][Build Break] Disable gradlew build cache to ensure mos…
Browse files Browse the repository at this point in the history
…t up-to-date dependencies (#3187)

Backport 5e8f12c from #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
#3185

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit 5e8f12c)
  • Loading branch information
peternied authored Aug 15, 2023
1 parent 4a14af4 commit 892a99a
Show file tree
Hide file tree
Showing 5 changed files with 8 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
Expand Up @@ -35,6 +35,7 @@ runs:
- name: Build
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
arguments: assemble -Dbuild.snapshot=false
build-root-directory: ${{ inputs.plugin-branch }}

Expand Down
1 change: 1 addition & 0 deletions .github/actions/run-bwc-suite/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

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

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

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

spotbugs:
Expand All @@ -56,4 +58,5 @@ jobs:

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

- name: Create Setup Script
Expand All @@ -53,4 +54,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 892a99a

Please sign in to comment.