@@ -80,48 +80,61 @@ jobs:
8080 ut-modules : ${{ steps.ut-modules.outputs.modules }}
8181 it-modules : ${{ steps.it-modules.outputs.modules }}
8282 steps :
83- - uses : actions/checkout@v3 # required for push event
83+ - uses : actions/checkout@v4
84+ with :
85+ fetch-depth : ' 2000'
86+ - name : checkout apache seatunnel dev branch
87+ id : git_init
88+ run : |
89+ /usr/bin/git remote add apache https://github.com/apache/seatunnel
90+ /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=2000 apache +refs/heads/dev*:refs/remotes/apache/dev* +refs/tags/dev*:refs/tags/dev*
91+ /usr/bin/git checkout apache/dev
92+ /usr/bin/git checkout '${{ github.ref }}'
93+ echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
8494 - uses : actions/setup-python@v4
8595 with :
8696 python-version : ' 3.11.0'
87- - name : Check for file changes
88- uses : dorny/paths-filter@v2
97+ - name : Check for file changes by python
8998 id : filter
90- with :
91- token : ${{ github.token }}
92- list-files : json
93- # The following is a single composite pattern that allows next CI steps,
94- # the pattern is in form of [not (foo or bar)] to be safe.
95- # When new files come in, the CI will NOT ignore them unless listed,
96- # so remember to extend here if they do not serve functional purposes.
97- # NOTE: careful with using ** in expression, keep !**/{old, new things}.
98- filters : |
99- cv2:
100- - "seatunnel-connectors-v2/**"
101- cv2-e2e:
102- - "seatunnel-e2e/seatunnel-connector-v2-e2e/**"
103- api:
104- - "seatunnel-api/**"
105- - "seatunnel-common/**"
106- - "seatunnel-config/**"
107- - "seatunnel-connectors/**"
108- - "seatunnel-core/**"
109- - "seatunnel-e2e/seatunnel-e2e-common/**"
110- - "seatunnel-formats/**"
111- - "seatunnel-plugin-discovery/**"
112- - "seatunnel-transforms-v2/**"
113- - "seatunnel-translation/**"
114- - "seatunnel-e2e/seatunnel-transforms-v2-e2e/**"
115- - "seatunnel-connectors/**"
116- - "pom.xml"
117- - "**/workflows/**"
118- - "**/tools/**"
119- engine:
120- - "seatunnel-engine/**"
121- engine-e2e:
122- - "seatunnel-e2e/seatunnel-engine-e2e/**"
123- deleted-poms:
124- - deleted: "**/pom.xml"
99+ run : |
100+ current_branch='${{ steps.git_init.outputs.branch }}'
101+ pip install GitPython
102+ workspace="${GITHUB_WORKSPACE}"
103+ cv2_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-connectors-v2/**"`
104+ true_or_false=${cv2_files%%$'\n'*}
105+ file_list=${cv2_files#*$'\n'}
106+ echo "cv2=$true_or_false" >> $GITHUB_OUTPUT
107+ echo "cv2_files=$file_list" >> $GITHUB_OUTPUT
108+
109+ cv2_e2e_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-e2e/seatunnel-connector-v2-e2e/**"`
110+ true_or_false=${cv2_e2e_files%%$'\n'*}
111+ file_list=${cv2_e2e_files#*$'\n'}
112+ echo "cv2-e2e=$true_or_false" >> $GITHUB_OUTPUT
113+ echo "cv2-e2e_files=$file_list" >> $GITHUB_OUTPUT
114+
115+ engine_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-engine/**"`
116+ true_or_false=${engine_files%%$'\n'*}
117+ file_list=${engine_files#*$'\n'}
118+ echo "engine=$true_or_false" >> $GITHUB_OUTPUT
119+ echo "engine_files=$file_list" >> $GITHUB_OUTPUT
120+
121+ deleted_poms_files=`python tools/update_modules_check/check_file_updates.py d $workspace apache/dev origin/$current_branch "**/pom.xml"`
122+ true_or_false=${deleted_poms_files%%$'\n'*}
123+ file_list=${deleted_poms_files#*$'\n'}
124+ echo "deleted-poms=$true_or_false" >> $GITHUB_OUTPUT
125+ echo "deleted-poms_files=$file_list" >> $GITHUB_OUTPUT
126+
127+ engine_e2e_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-e2e/seatunnel-engine-e2e/**"`
128+ true_or_false=${engine_e2e_files%%$'\n'*}
129+ file_list=${engine_e2e_files#*$'\n'}
130+ echo "engine-e2e=$true_or_false" >> $GITHUB_OUTPUT
131+ echo "engine-e2e_files=$file_list" >> $GITHUB_OUTPUT
132+
133+ api_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-api/**" "seatunnel-common/**" "seatunnel-config/**" "seatunnel-connectors/**" "seatunnel-core/**" "seatunnel-e2e/seatunnel-e2e-common/**" "seatunnel-formats/**" "seatunnel-plugin-discovery/**" "seatunnel-transforms-v2/**" "seatunnel-translation/**" "seatunnel-e2e/seatunnel-transforms-v2-e2e/**" "seatunnel-connectors/**" "pom.xml" "**/workflows/**" "tools/**"`
134+ true_or_false=${api_files%%$'\n'*}
135+ file_list=${api_files#*$'\n'}
136+ echo "api=$true_or_false" >> $GITHUB_OUTPUT
137+ echo "api_files=$file_list" >> $GITHUB_OUTPUT
125138
126139 - name : Check Connector V2 Update
127140 id : cv2-modules
@@ -257,7 +270,7 @@ jobs:
257270 matrix :
258271 java : [ '8', '11' ]
259272 os : [ 'ubuntu-latest', 'windows-latest' ]
260- timeout-minutes : 36
273+ timeout-minutes : 60
261274 steps :
262275 - uses : actions/checkout@v2
263276 - name : Set up JDK ${{ matrix.java }}
@@ -902,4 +915,4 @@ jobs:
902915 run : |
903916 ./mvnw -B -T 1C verify -DskipUT=true -DskipIT=false -D"license.skipAddThirdParty"=true --no-snapshot-updates -pl :connector-rocketmq-e2e -am -Pci
904917 env :
905- MAVEN_OPTS : -Xmx4096m
918+ MAVEN_OPTS : -Xmx4096m
0 commit comments