|
12 | 12 | paths-ignore: |
13 | 13 | - "javadoc/**" |
14 | 14 | - "website/**" |
15 | | - - "cpp/**" |
16 | 15 | - "python/**" |
| 16 | + - "cpp/**" |
17 | 17 | - "**.md" |
18 | 18 | branches: |
19 | 19 | - 'main' |
20 | 20 | pull_request: |
21 | 21 | paths-ignore: |
22 | 22 | - "javadoc/**" |
23 | 23 | - "website/**" |
24 | | - - "cpp/**" |
25 | 24 | - "python/**" |
| 25 | + - "cpp/**" |
26 | 26 | - "**.md" |
27 | 27 | branches: |
28 | 28 | - 'main' |
@@ -202,6 +202,79 @@ jobs: |
202 | 202 | retention-days: 5 |
203 | 203 | if-no-files-found: error |
204 | 204 |
|
| 205 | + spark-test-gluten: |
| 206 | + runs-on: ubuntu-latest |
| 207 | + needs: [ build-rust-linux-x86_64 ] |
| 208 | + |
| 209 | + services: |
| 210 | + # Label used to access the service container |
| 211 | + postgres: |
| 212 | + # Docker Hub image |
| 213 | + image: postgres:14.5 |
| 214 | + # Provide the password for postgres |
| 215 | + env: |
| 216 | + POSTGRES_PASSWORD: lakesoul_test |
| 217 | + POSTGRES_USER: lakesoul_test |
| 218 | + POSTGRES_DB: lakesoul_test |
| 219 | + # Set health checks to wait until postgres has started |
| 220 | + options: >- |
| 221 | + --health-cmd pg_isready |
| 222 | + --health-interval 10s |
| 223 | + --health-timeout 5s |
| 224 | + --health-retries 5 |
| 225 | + --name lakesoul-test-pg |
| 226 | + ports: |
| 227 | + # Maps tcp port 5432 on service container to the host |
| 228 | + - 5432:5432 |
| 229 | + |
| 230 | + steps: |
| 231 | + - uses: actions/checkout@v4 |
| 232 | + - name: Set up JDK 11 |
| 233 | + uses: actions/setup-java@v4 |
| 234 | + with: |
| 235 | + java-version: '11' |
| 236 | + distribution: 'temurin' |
| 237 | + cache: maven |
| 238 | + - name: Install psql |
| 239 | + run: sudo apt-get install -y postgresql-client-16 |
| 240 | + - name: Init PG |
| 241 | + run: | |
| 242 | + ./script/meta_init_for_local_test.sh -j 1 |
| 243 | + - name: Install Protoc |
| 244 | + uses: arduino/setup-protoc@v2 |
| 245 | + with: |
| 246 | + version: "23.x" |
| 247 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 248 | + - uses: actions/download-artifact@v4 |
| 249 | + with: |
| 250 | + name: lakesoul-nativemetadata-x86_64-unknown-linux-gnu-maven-test |
| 251 | + path: ./rust/target/release/ |
| 252 | + - uses: actions/download-artifact@v4 |
| 253 | + with: |
| 254 | + name: lakesoul-nativeio-x86_64-unknown-linux-gnu-maven-test |
| 255 | + path: ./rust/target/release/ |
| 256 | + - name: Build with Maven |
| 257 | + run: | |
| 258 | + sudo apt-get update && sudo apt-get install --only-upgrade tzdata |
| 259 | + wget -q https://dmetasoul-bucket.obs.cn-southwest-2.myhuaweicloud.com/releases/lakesoul/gluten-1.6.0-84ac41874-snapshot.tar.gz |
| 260 | + mkdir -p ~/.m2/repository |
| 261 | + tar xf gluten-1.6.0-84ac41874-snapshot.tar.gz -C ~/.m2/repository |
| 262 | + rm -f gluten-1.6.0-84ac41874-snapshot.tar.gz |
| 263 | + MAVEN_OPTS="-Xmx4g -Dio.netty.tryReflectionSetAccessible=true" mvn -B test -pl lakesoul-spark-gluten -am -Pgluten -Pcross-build --file pom.xml -Dtest='LakeSoulGlutenCompatSuite,UpdateGlutenTestSuite,UpsertGlutenTestSuite,DeleteSQLGlutenTestSuite,MergeIntoSQLGlutenTestSuite,' -Dsurefire.failIfNoSpecifiedTests=false |
| 264 | + - name: Generate Report Site |
| 265 | + if: always() |
| 266 | + run: | |
| 267 | + mvn surefire-report:report-only -pl lakesoul-spark-gluten -am -Pgluten |
| 268 | + - name: Upload Test Report |
| 269 | + if: always() |
| 270 | + continue-on-error: true |
| 271 | + uses: actions/upload-artifact@v4 |
| 272 | + with: |
| 273 | + name: maven-test-report-artifact-spark-2 |
| 274 | + path: lakesoul-spark-gluten/target/site |
| 275 | + retention-days: 5 |
| 276 | + if-no-files-found: error |
| 277 | + |
205 | 278 | spark-test-rbac: |
206 | 279 | runs-on: ubuntu-latest |
207 | 280 | needs: [ build-rust-linux-x86_64 ] |
|
0 commit comments