This is an automated email from the ASF dual-hosted git repository.
fcsaky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-connector-pulsar.git
The following commit(s) were added to refs/heads/main by this push:
new 0d05eb1 [hotfix] Standardize CI and update it to Flink 1.20
0d05eb1 is described below
commit 0d05eb1dedc5a258fb2b045120e3a8f1c87497e7
Author: Ferenc Csaky <[email protected]>
AuthorDate: Tue Oct 21 18:09:55 2025 +0200
[hotfix] Standardize CI and update it to Flink 1.20
---
.github/workflows/{ci.yml => push_pr.yml} | 30 ++++-------------------------
.github/workflows/{daily.yml => weekly.yml} | 25 ++++--------------------
2 files changed, 8 insertions(+), 47 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/push_pr.yml
similarity index 68%
rename from .github/workflows/ci.yml
rename to .github/workflows/push_pr.yml
index 4e3d92d..f5cdcd7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/push_pr.yml
@@ -20,38 +20,16 @@
# between several workflows with the same names while preparing a report for
GHA usage
# https://infra-reports.apache.org/#ghactions
name: Flink Connector Pulsar CI
-on:
- push:
- branches:
- - 'main'
- - 'v*'
- pull_request:
- branches:
- - 'main'
- - 'v*'
-
-# Concurrency strategy:
-# github.workflow: distinguish this workflow from others
-# github.event_name: distinguish `push` event from `pull_request` event
-# github.event.number: set to the number of the pull request if
`pull_request` event
-# github.run_id: otherwise, it's a `push` or `schedule` event, only cancel
if we rerun the workflow
-#
-# Reference:
-# https://docs.github.com/en/actions/using-jobs/using-concurrency
-#
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
+on: [push, pull_request]
concurrency:
- group: ${{ github.workflow }}-${{ github.event_name }}-${{
github.event.number || github.run_id }}
+ group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
-
jobs:
compile_and_test:
strategy:
matrix:
- flink: [ 1.17.1, 1.18.0 ]
- jdk: [ 8, 11, 17 ]
- exclude:
- - jdk: 17
- flink: 1.17.1
+ flink: [ 1.20.3 ]
+ jdk: [ '8, 11, 17' ]
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
with:
flink_version: ${{ matrix.flink }}
diff --git a/.github/workflows/daily.yml b/.github/workflows/weekly.yml
similarity index 76%
rename from .github/workflows/daily.yml
rename to .github/workflows/weekly.yml
index dbca107..7c66def 100644
--- a/.github/workflows/daily.yml
+++ b/.github/workflows/weekly.yml
@@ -19,43 +19,26 @@
# We need to specify repo related information here since Apache INFRA doesn't
differentiate
# between several workflows with the same names while preparing a report for
GHA usage
# https://infra-reports.apache.org/#ghactions
-name: Nightly Flink Connector Pulsar
+name: Weekly Flink Connector Pulsar CI
on:
schedule:
- - cron: "0 0 * * *"
+ - cron: "0 0 * * 0"
workflow_dispatch:
jobs:
compile_and_test:
if: github.repository_owner == 'apache'
strategy:
- fail-fast: false
matrix:
- jdk: [ 8, 11 ]
flink_branches: [{
- flink: 1.17-SNAPSHOT,
+ flink: 1.20-SNAPSHOT,
branch: main
- }, {
- flink: 1.18-SNAPSHOT,
- branch: main
- }, {
- flink: 1.16.2,
- branch: v3.0
- }, {
- flink: 1.17.1,
- branch: v4.0
}]
- include:
- - jdk: 17
- flink_branches: {
- flink: 1.18-SNAPSHOT,
- branch: main
- }
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
with:
- jdk_version: ${{ matrix.jdk }}
flink_version: ${{ matrix.flink_branches.flink }}
connector_branch: ${{ matrix.flink_branches.branch }}
+ jdk_version: ${{ matrix.flink_branches.jdk || '8, 11, 17' }}
run_dependency_convergence: false
timeout_global: 120
timeout_test: 80