Skip to content

Conversation

@loserwang1024
Copy link
Contributor

@loserwang1024 loserwang1024 commented Jun 25, 2025

Purpose

Linked issue: close #1195

Brief change log

Tests

API and Format

Documentation

@loserwang1024
Copy link
Contributor Author

@leonardBang @wuchong , CC

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

  1. Let's set default java to 11.
  2. Add a profile for java8
  3. Add a daily CI for build and test against java8 profile

@loserwang1024 loserwang1024 changed the title [build] Add a new explicitly-opt-in java11-target profile to set the target version to Java 11 [build] Upgrade JDK compile version as 11 Jun 27, 2025
@loserwang1024 loserwang1024 force-pushed the jdk11 branch 3 times, most recently from 837c643 to c798e31 Compare June 27, 2025 04:07
@loserwang1024 loserwang1024 requested a review from wuchong June 27, 2025 05:52
@loserwang1024
Copy link
Contributor Author

  1. Let's set default java to 11.
  2. Add a profile for java8
  3. Add a daily CI for build and test against java8 profile

done it @wuchong


jobs:
build:
compile-on-jdk8:
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it can be renamed to 'build-on-jdk8' here to be consistent with 'build-on-jdk11' below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this test, I just want to compile on jdk8 but not run, thus I want to distingush with 'build-on-jdk11' . Because run both jdk 8 and 11 will cost too much time for each code pull request. I add a daily run test on jdk8.

fail-fast: false
matrix:
module: [ core, flink ]
steps:
Copy link
Member

Choose a reason for hiding this comment

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

Could you use a workflow template to reuse the steps with ci.yaml? You can learn this from Flink: https://github.com/apache/flink/blob/997b48340d2aac1de48c0788b4204d660e34cedd/.github/workflows/template.flink-ci.yml#L129

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add a ci-template.yaml

@loserwang1024 loserwang1024 force-pushed the jdk11 branch 4 times, most recently from 3d15fbe to 995537b Compare June 30, 2025 05:51
@loserwang1024 loserwang1024 requested a review from wuchong June 30, 2025 05:52
distribution: 'temurin'
- name: Build
run: |
mvn -T 1C -B clean install -DskipTests ${{ steps.profile.outputs.maven_profile }}
Copy link
Member

Choose a reason for hiding this comment

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

What is the variable ${{ steps.profile.outputs.maven_profile }} used for?

on:
schedule:
# Run at 2:00 daily.
- cron: "0 2 * * *"
Copy link
Member

Choose a reason for hiding this comment

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

This CRON is scheduled in UTC time zone, so it's actually 10:00 in UTC+8. I suggest to run at 20:00 UTC, because it's the lowest commit traffic according to the ossinsight

image

pom.xml Outdated

<profiles>
<profile>
<id>java8-target</id>
Copy link
Member

Choose a reason for hiding this comment

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

We can name this profile java8 for simplicity.

pom.xml Outdated
</requireMavenVersion>
<requireJavaVersion>
<version>${target.java.version}</version>
<version>[1.8,)</version>
Copy link
Member

Choose a reason for hiding this comment

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

This looks strange because it allows java8 when the target/source version is java11. It's better to keep ${target.java.version} here.

@wuchong
Copy link
Member

wuchong commented Aug 10, 2025

I pushed a commit to address the comments and resolve the conflicts. Please take another look @loserwang1024 .

@loserwang1024
Copy link
Contributor Author

@wuchong LGTM!

@wuchong wuchong merged commit 7f70265 into apache:main Aug 11, 2025
4 checks passed
zcoo pushed a commit to luoyuxia/fluss that referenced this pull request Aug 18, 2025
polyzos pushed a commit to polyzos/fluss that referenced this pull request Aug 30, 2025
polyzos pushed a commit to Alibaba-HZY/fluss that referenced this pull request Aug 31, 2025
polyzos pushed a commit to polyzos/fluss that referenced this pull request Sep 21, 2025
polyzos pushed a commit to polyzos/fluss that referenced this pull request Sep 21, 2025
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.

Upgrade JDK compile version as 11

3 participants