-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-36646] Test different versions of the JDK in the Flink image #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
88b3f06
3d04158
85e803e
6e599dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,15 +83,33 @@ jobs: | |
| flink-version: "v1_20" | ||
| http-client: ${{ matrix.http-client }} | ||
| test: test_application_operations.sh | ||
| java_rutimes: | ||
| name: Java runtimes smoke test | ||
| needs: e2e_smoke_test | ||
| strategy: | ||
| matrix: | ||
| http-client: [ "okhttp" ] | ||
| java-version: [ "11", "17"] | ||
| flink-version: | ||
| - "v1_20" | ||
| - "v1_19" | ||
| - "v1_18" | ||
| uses: ./.github/workflows/e2e.yaml | ||
| with: | ||
| java-version: ${{ matrix.java-version }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if it's a bit funky that we are using This would show that a JDK17 operator works with a JDK17 flink image, but not cover the current default operator runtime with a JDK17 flink image.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I had debated making a
I'm not convinced that the operator JDK really matters so don't think its particularly important to have a JDK11 operator deploying a JDK 17 Flink. I can go that direction if others see it as valuable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah you're right we aren't likely to see some incompatibility arising from different JRE combinations. Maybe it would be better to hold the operator JDK constant and vary only the flink runtime. Just to make it clearer which thing is varied.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I agree with @SamBarker. The issue here is actually not the interplay of JDK versions but rather the config supplied by the operator's logic not being compatible (or more accuratly enabling) Java 17 support. So that's what we need to test. |
||
| flink-version: ${{ matrix.flink-version }} | ||
| http-client: ${{ matrix.http-client }} | ||
| test: test_application_operations.sh | ||
| append-java-version: true | ||
| e2e_namespace_tests: | ||
| name: Alternative namespace tests | ||
| needs: e2e_smoke_test | ||
| strategy: | ||
| matrix: | ||
| flink-version: | ||
| - "v1_20" | ||
| - "v1_18" | ||
| - "v1_19" | ||
| - "v1_18" | ||
| - "v1_17" | ||
| - "v1_16" | ||
| mode: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,9 @@ on: | |
| create-namespace: | ||
| type: boolean | ||
| default: false | ||
| append-java-version: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe this should be an optional |
||
| type: boolean | ||
| default: false | ||
|
|
||
| jobs: | ||
| e2e_test: | ||
|
|
@@ -78,6 +81,9 @@ jobs: | |
| - name: Run Flink e2e tests | ||
| run: | | ||
| FLINK_IMAGE=$(sed --regexp-extended 's/v([0-9]+)_([0-9]+)/flink:\1.\2/g' <<< ${{ inputs.flink-version }} ) | ||
| if [[ "${{ inputs.append-java-version }}" == "true" ]]; then | ||
| FLINK_IMAGE=${FLINK_IMAGE}-java${{ inputs.java-version }} | ||
| fi | ||
| echo FLINK_IMAGE=${FLINK_IMAGE} | ||
| sed -i "s/image: flink:.*/image: ${FLINK_IMAGE}/" e2e-tests/data/*.yaml | ||
| sed -i "s/flinkVersion: .*/flinkVersion: ${{ inputs.flink-version }}/" e2e-tests/data/*.yaml | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.