Skip to content

Commit c89f431

Browse files
SamBarkergyfora
authored andcommitted
[FLINK-36646] add tests of the various different Java versions as the job images.
1 parent 1e48230 commit c89f431

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,33 @@ jobs:
8383
flink-version: "v1_20"
8484
http-client: ${{ matrix.http-client }}
8585
test: test_application_operations.sh
86+
java_runtimes:
87+
name: Java runtimes smoke test
88+
needs: e2e_smoke_test
89+
strategy:
90+
matrix:
91+
http-client: [ "okhttp" ]
92+
java-version: [ "11", "17"]
93+
flink-version:
94+
- "v1_20"
95+
- "v1_19"
96+
- "v1_18"
97+
uses: ./.github/workflows/e2e.yaml
98+
with:
99+
java-version: ${{ matrix.java-version }}
100+
flink-version: ${{ matrix.flink-version }}
101+
http-client: ${{ matrix.http-client }}
102+
test: test_application_operations.sh
103+
append-java-version: true
86104
e2e_namespace_tests:
87105
name: Alternative namespace tests
88106
needs: e2e_smoke_test
89107
strategy:
90108
matrix:
91109
flink-version:
92110
- "v1_20"
93-
- "v1_18"
94111
- "v1_19"
112+
- "v1_18"
95113
- "v1_17"
96114
- "v1_16"
97115
mode:

.github/workflows/e2e.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
create-namespace:
2828
type: boolean
2929
default: false
30+
append-java-version:
31+
type: boolean
32+
default: false
3033

3134
jobs:
3235
e2e_test:
@@ -78,6 +81,9 @@ jobs:
7881
- name: Run Flink e2e tests
7982
run: |
8083
FLINK_IMAGE=$(sed --regexp-extended 's/v([0-9]+)_([0-9]+)/flink:\1.\2/g' <<< ${{ inputs.flink-version }} )
84+
if [[ "${{ inputs.append-java-version }}" == "true" ]]; then
85+
FLINK_IMAGE=${FLINK_IMAGE}-java${{ inputs.java-version }}
86+
fi
8187
echo FLINK_IMAGE=${FLINK_IMAGE}
8288
sed -i "s/image: flink:.*/image: ${FLINK_IMAGE}/" e2e-tests/data/*.yaml
8389
sed -i "s/flinkVersion: .*/flinkVersion: ${{ inputs.flink-version }}/" e2e-tests/data/*.yaml

0 commit comments

Comments
 (0)