Skip to content

Conversation

@SamBarker
Copy link
Contributor

@SamBarker SamBarker commented Oct 6, 2024

What is the purpose of the change

Fixes the docker build for edge to edge (e2e) ci tests so that they build the operator with the Java version specified by the test matrix.

Brief change log

  • Ensure the CI tests run with appropriate JVM version

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changes to the CustomResourceDescriptors: no
  • Core observer or reconciler logic that is regularly executed: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

@SamBarker SamBarker force-pushed the build-with-target-jdk branch from e5fb53d to 765d7ac Compare October 6, 2024 22:27
@SamBarker SamBarker force-pushed the build-with-target-jdk branch from 8197362 to 20e7fad Compare October 7, 2024 03:55
Comment on lines +26 to +28
branches:
- main
- release-*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly needed for this PR, but reduces the number of build jobs to wade through (especially useful when debugging). Happy to drop/move to a new PR if desired.

# Build
FROM maven:3.8.4-eclipse-temurin-11 AS build
ARG JAVA_VERSION=11
FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumps the maven version. I went for the oldest version which supports all three of the desired java versions. Could equally jump to the latest maven version (3.9.9 IIRC).

This is the core of the fix so that maven in the docker container actually builds with the desired JVM version.

@SamBarker SamBarker changed the title Build with target jdk [FLINK-36392] Build with target jdk Oct 7, 2024
@gyfora gyfora merged commit 70eb2b6 into apache:main Oct 7, 2024
229 checks passed
@SamBarker SamBarker deleted the build-with-target-jdk branch October 10, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants