@@ -12,29 +12,16 @@ jobs:
1212 matrix :
1313 jdk : [17]
1414 runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
1517 timeout-minutes : 30
1618 steps :
1719 - uses : actions/checkout@v6
1820 with :
1921 fetch-depth : 0
20- - name : Set up JDK
21- uses : actions/setup-java@v5
22+ - uses : ./.github/actions/gradle-test-setup
2223 with :
2324 java-version : ${{ matrix.jdk }}
24- distribution : ' temurin'
25- cache : ' gradle'
26- - shell : bash
27- run : |
28- git remote set-head origin --auto
29- git remote add upstream https://github.com/linkedin/venice
30- git fetch upstream
31- - name : Setup Gradle
32- uses : gradle/actions/setup-gradle@v4
33- with :
34- add-job-summary : never
35- - name : Free up disk space in the background
36- run : |
37- bash scripts/ci/util_free_space.sh > background_cleanup.log 2>&1 &
3825 - name : Run Avro Compatibility Tests
3926 run : ./gradlew -DmaxParallelForks=2 --parallel --build-cache :internal:venice-avro-compatibility-test:test --continue
4027 - name : Package Build Artifacts
@@ -59,29 +46,16 @@ jobs:
5946 matrix :
6047 jdk : [17]
6148 runs-on : ubuntu-latest
49+ permissions :
50+ contents : read
6251 timeout-minutes : 30
6352 steps :
6453 - uses : actions/checkout@v6
6554 with :
6655 fetch-depth : 0
67- - name : Set up JDK
68- uses : actions/setup-java@v5
56+ - uses : ./.github/actions/gradle-test-setup
6957 with :
7058 java-version : ${{ matrix.jdk }}
71- distribution : ' temurin'
72- cache : ' gradle'
73- - shell : bash
74- run : |
75- git remote set-head origin --auto
76- git remote add upstream https://github.com/linkedin/venice
77- git fetch upstream
78- - name : Setup Gradle
79- uses : gradle/actions/setup-gradle@v4
80- with :
81- add-job-summary : never
82- - name : Free up disk space in the background
83- run : |
84- bash scripts/ci/util_free_space.sh > background_cleanup.log 2>&1 &
8559 - name : Run DuckDB Integration Tests
8660 run : ./gradlew -DforkEvery=1 -DmaxParallelForks=1 --parallel --build-cache :integrations:venice-duckdb:integrationTest --continue
8761 - name : Package Build Artifacts
@@ -106,29 +80,16 @@ jobs:
10680 matrix :
10781 jdk : [17]
10882 runs-on : ubuntu-latest
83+ permissions :
84+ contents : read
10985 timeout-minutes : 30
11086 steps :
11187 - uses : actions/checkout@v6
11288 with :
11389 fetch-depth : 0
114- - name : Set up JDK
115- uses : actions/setup-java@v5
90+ - uses : ./.github/actions/gradle-test-setup
11691 with :
11792 java-version : ${{ matrix.jdk }}
118- distribution : ' temurin'
119- cache : ' gradle'
120- - shell : bash
121- run : |
122- git remote set-head origin --auto
123- git remote add upstream https://github.com/linkedin/venice
124- git fetch upstream
125- - name : Setup Gradle
126- uses : gradle/actions/setup-gradle@v4
127- with :
128- add-job-summary : never
129- - name : Free up disk space in the background
130- run : |
131- bash scripts/ci/util_free_space.sh > background_cleanup.log 2>&1 &
13293 - name : Build NAR, shadow jars, and Docker images
13394 shell : bash
13495 run : |
@@ -180,6 +141,8 @@ jobs:
180141 strategy :
181142 fail-fast : false
182143 runs-on : ubuntu-latest
144+ permissions :
145+ contents : read
183146 needs : [AvroCompatibilityTests, DuckVinciIntegrationTests, PulsarVeniceIntegrationTests]
184147 timeout-minutes : 30
185148 if : ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
@@ -188,4 +151,4 @@ jobs:
188151 shell : bash
189152 run : |
190153 echo "Some workflows have failed!"
191- exit 1
154+ exit 1
0 commit comments