-
Notifications
You must be signed in to change notification settings - Fork 144
85 lines (76 loc) · 3.37 KB
/
Copy pathtest-java-nightly.yml
File metadata and controls
85 lines (76 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Java SLT Nightly
on:
schedule:
- cron: "30 11 * * *" # 11:30 AM UTC daily
workflow_dispatch:
env:
RUSTC_WRAPPER: sccache
# sccache: native GCS backend, credentials come from the runner pod via
# Workload Identity (no secrets).
SCCACHE_GCS_BUCKET: ${{ vars.SCCACHE_GCS_BUCKET }}
SCCACHE_GCS_RW_MODE: READ_WRITE
AWS_ACCESS_KEY_ID: "${{ secrets.CI_GCS_HMAC_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.CI_GCS_HMAC_SECRET_ACCESS_KEY }}"
# sccache cannot cache rustc when incremental is on; required for the
# Rust builds invoked by mvn → sql-to-dbsp to hit the sccache MinIO store.
CARGO_INCREMENTAL: 0
# Pin Maven's local repo so it matches the cache path regardless of the
# container runner's $HOME.
MAVEN_OPTS: -Dmaven.repo.local=/home/ubuntu/.m2/repository
jobs:
java-tests:
name: Execute Java SLT
strategy:
matrix:
include:
- runner: [gke-runners-amd64]
arch: x86_64
target: x86_64-unknown-linux-gnu
- runner: [gke-runners-arm64]
arch: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.runner }}
container:
image: us-central1-docker.pkg.dev/feldera-ci/ghcr-remote/feldera/feldera-dev:sha-a5ab793b8d261068867b9fdfad3f04157b2536fc
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Cache Cargo registry
uses: ./.github/actions/feldera-gcs-cache
with:
# Only the crate downloads, NOT target/ (see test-java.yml for why).
# registry/src is excluded, cargo regenerates it from registry/cache.
path: |
# Absolute paths: CARGO_HOME is /home/ubuntu/.cargo (feldera-dev image
# env), while ~ expands to the runner's HOME (/github/home in container
# jobs), so tilde paths would cache a directory cargo never writes.
/home/ubuntu/.cargo/registry/cache
/home/ubuntu/.cargo/registry/index
/home/ubuntu/.cargo/git/db
key: test-java-nightly-cargo-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
test-java-nightly-cargo-${{ runner.os }}-${{ runner.arch }}-
- name: Cache JVM build dependencies
uses: ./.github/actions/feldera-gcs-cache
with:
path: |
/home/ubuntu/.gradle
/home/ubuntu/.m2/repository
./sql-to-dbsp-compiler/calcite
key: test-java-nightly-jvm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('sql-to-dbsp-compiler/calcite_version.env', 'sql-to-dbsp-compiler/**/pom.xml') }}
restore-keys: |
test-java-nightly-jvm-${{ runner.os }}-${{ runner.arch }}-
# TODO: Avoid doing this twice and ideally download & reuse the JAR from build-java.yml workflow
- name: Run build.sh
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build.sh
working-directory: ./sql-to-dbsp-compiler
env:
CALCITE_BUILD_DIR: ./calcite
GRADLE_HOME: /home/ubuntu/.gradle
- name: Stop gradle daemon
run: gradle --stop
- name: Run SLT tests
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: mvn test --no-transfer-progress -q -B -Dsurefire.failIfNoSpecifiedTests=false -Dtest="RotateTests#rotate"
working-directory: ./sql-to-dbsp-compiler