40
40
java-version : ' 21'
41
41
distribution : ' temurin'
42
42
43
+ - name : Setup Gradle
44
+ uses : gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4
45
+ with :
46
+ validate-wrappers : false
47
+
48
+ - name : Prepare Gradle build cache
49
+ uses : ./.github/actions/ci-incr-build-cache-prepare
50
+
43
51
- name : Fix permissions
44
52
run : mkdir -p regtests/output && chmod 777 regtests/output && chmod 777 regtests/t_*/ref/*
45
53
@@ -56,10 +64,41 @@ jobs:
56
64
:polaris-server:quarkusAppPartsBuild --rerun \
57
65
-Dquarkus.container-image.build=true
58
66
67
+ - name : Save partial Gradle build cache
68
+ uses : ./.github/actions/ci-incr-build-cache-save
69
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
70
+ with :
71
+ job-name : spark-plugin-regtest
72
+
59
73
# NOTE: the regression test runs with spark 3.5.5 and scala 2.12 in Java 17. We also have integration
60
74
# tests runs with the existing gradle.yml, which only runs on Java 21. Since spark Java compatibility
61
75
# for 3.5 is 8, 11, and 17, we should run spark client with those compatible java versions.
62
76
# TODO: add separate spark client CI and run with Java 8, 11 and 17.
63
77
- name : Regression Test
64
78
run : |
65
79
docker compose -f plugins/spark/v3.5/regtests/docker-compose.yml up --build --exit-code-from regtest
80
+
81
+ store-gradle-cache :
82
+ name : Store Gradle Cache
83
+ runs-on : ubuntu-24.04
84
+ timeout-minutes : 30
85
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
86
+ needs :
87
+ - spark-plugin-regtest
88
+ steps :
89
+ - name : Set up JDK 21
90
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
91
+ with :
92
+ java-version : ' 21'
93
+ distribution : ' temurin'
94
+ - name : Setup Gradle
95
+ uses : gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4
96
+ with :
97
+ validate-wrappers : false
98
+ - name : Collect partial Gradle build caches
99
+ uses : ./.github/actions/ci-incr-build-cache-prepare
100
+ with :
101
+ cache-read-only : false
102
+ - name : Trigger Gradle home cleanup
103
+ run : ./gradlew --no-daemon :showVersion
104
+ # Note: the "Post Gradle invocation" archives the updated build cache.
0 commit comments