Skip to content

Commit

Permalink
Re-enables gradle build cache
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Oct 16, 2023
1 parent 56b6a31 commit 6536c8d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 25 deletions.
3 changes: 1 addition & 2 deletions .github/actions/create-bwc-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ runs:
path: ${{ inputs.plugin-branch }}

- name: Build
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: assemble
build-root-directory: ${{ inputs.plugin-branch }}

Expand Down
3 changes: 1 addition & 2 deletions .github/actions/run-bwc-suite/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ runs:
plugin-branch: ${{ inputs.plugin-next-branch }}

- name: Run BWC tests
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
bwcTestSuite
-Dtests.security.manager=false
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ jobs:
uses: actions/checkout@v4

- name: Build and Test
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
${{ matrix.gradle_task }} -Dbuild.snapshot=false
Expand Down Expand Up @@ -102,11 +101,10 @@ jobs:
uses: actions/checkout@v4

- name: Build and Test
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
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
arguments: integrationTest -Dbuild.snapshot=false

resource-tests:
env:
Expand All @@ -129,9 +127,8 @@ jobs:
uses: actions/checkout@v4

- name: Build and Test
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
integrationTest -Dbuild.snapshot=false --tests org.opensearch.security.ResourceFocusedTests
Expand All @@ -147,9 +144,8 @@ jobs:
uses: actions/checkout@v4

- name: Build BWC tests
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
-p bwc-test build -x test -x integTest
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

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

checkstyle:
Expand All @@ -40,9 +39,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

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

spotbugs:
Expand All @@ -56,9 +54,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

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

check-permissions-order:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/plugin_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ jobs:
uses: actions/checkout@v4

- name: Assemble target plugin
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: assemble

# Move and rename the plugin for installation
Expand Down Expand Up @@ -63,7 +62,6 @@ jobs:
admin-password: ${{ steps.random-password.outputs.generated_name }}

- name: Run sanity tests
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=${{ steps.random-password.outputs.generated_name }} -i
arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=-Dpassword=${{ steps.random-password.outputs.generated_name }}

0 comments on commit 6536c8d

Please sign in to comment.