Skip to content

[FLINK] CI refine#12430

Open
zhanglistar wants to merge 5 commits into
apache:mainfrom
zhanglistar:flink-ci-refine
Open

[FLINK] CI refine#12430
zhanglistar wants to merge 5 commits into
apache:mainfrom
zhanglistar:flink-ci-refine

Conversation

@zhanglistar

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

Refine CI based on docker to speed up.

How was this patch tested?

CI

Was this patch authored or co-authored using generative AI tooling?

Copilot AI review requested due to automatic review settings July 2, 2026 11:35
@github-actions github-actions Bot added the INFRA label Jul 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request refines the Flink GitHub Actions CI job to run inside a different, pre-built Docker container image, aiming to speed up the pipeline by relying on an Ubuntu-based dependency image instead of installing build deps at runtime.

Changes:

  • Switch the flink-test job container from apache/gluten:centos-8-jdk17 to an Ubuntu 20-based image and configure compiler/JAVA env vars.
  • Update ccache cache key naming from centos8 to ubuntu20 and increase ccache max size.
  • Remove CentOS-specific dependency installation/setup steps and add JAVA_HOME/PATH exporting for Maven runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 61 to +66
runs-on: ubuntu-22.04
container: apache/gluten:centos-8-jdk17
container: listar1111/velox-deps:ubuntu20
env:
CC: /usr/bin/gcc-11
CXX: /usr/bin/g++-11
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64
Copilot AI review requested due to automatic review settings July 2, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment on lines 61 to +66
runs-on: ubuntu-22.04
container: apache/gluten:centos-8-jdk17
container: listar1111/velox-deps:ubuntu20
env:
CC: /usr/bin/gcc-11
CXX: /usr/bin/g++-11
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64
Comment on lines 84 to 86
git clone -b gluten-0530 https://github.com/bigo-sg/velox4j.git
cd velox4j && git reset --hard 9811c337d5e37ab8d16d5bf0791b48836fcd2afd
cd velox4j && git reset --hard 5090dfdb713f53436368c2e177ce85580f31b0e8
git apply $GITHUB_WORKSPACE/gluten-flink/patches/fix-velox4j.patch
Comment on lines 79 to +81
export CCACHE_DIR=${CCACHE_DIR}
export CCACHE_MAXSIZE=2G
export CCACHE_MAXSIZE=5G
export simdjson_SOURCE=BUNDLED

@zhouyuan zhouyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. may need to add a job to build cache in main branch so each PR can benefit from it

export PATH=$JAVA_HOME/bin:$PATH
export CCACHE_DIR=${CCACHE_DIR}
export CCACHE_MAXSIZE=2G
export CCACHE_MAXSIZE=5G

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we really need 5G here?

key: ccache-flink-ubuntu20
restore-keys: |
ccache-flink-centos8
ccache-flink-ubuntu20

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants