This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 609b5896fbf [ci](fix) license check (#62534) (#62696)
609b5896fbf is described below

commit 609b5896fbf16e6f19b61cb9069f1434c8be6422
Author: Dongyang Li <[email protected]>
AuthorDate: Wed Apr 22 15:11:00 2026 +0800

    [ci](fix) license check (#62534) (#62696)
    
    bp: #62534
---
 .github/workflows/license-eyes.yml        | 56 +++++++++++++++++++++++++++++++
 .licenserc.yaml                           |  7 ++++
 cloud/src/common/CMakeLists.txt           | 17 ++++++++++
 cloud/src/gen-cpp/CMakeLists.txt          | 17 ++++++++++
 cloud/src/meta-service/CMakeLists.txt     | 17 +++++++++-
 cloud/src/meta-store/CMakeLists.txt       | 17 ++++++++++
 cloud/src/rate-limiter/CMakeLists.txt     | 16 +++++++++
 cloud/src/recycler/CMakeLists.txt         | 16 +++++++++
 cloud/src/resource-manager/CMakeLists.txt | 16 +++++++++
 cloud/src/snapshot/CMakeLists.txt         | 17 ++++++++++
 cloud/test/CMakeLists.txt                 | 17 ++++++++++
 conf/ubsan_ignorelist.txt                 | 17 ++++++++++
 extension/dbt-doris/dev-requirements.txt  | 17 ++++++++++
 13 files changed, 246 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/license-eyes.yml 
b/.github/workflows/license-eyes.yml
index c17081fc75b..40cafe74d2f 100644
--- a/.github/workflows/license-eyes.yml
+++ b/.github/workflows/license-eyes.yml
@@ -48,6 +48,62 @@ jobs:
         with:
           ref: ${{ github.event.pull_request.head.sha }}
 
+      - name: Get changed files
+        if: github.event_name == 'pull_request_target'
+        id: changed-files
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: |
+          if ! all=$(gh api repos/${{ github.repository }}/pulls/${{ 
github.event.pull_request.number }}/files \
+            --paginate --jq '.[].filename' 2>/dev/null); then
+            echo "config_file=.licenserc.yaml" >> "$GITHUB_OUTPUT"
+            exit 0
+          fi
+          if [ "$(echo "$all" | wc -l)" -ge 3000 ]; then
+            echo "config_file=.licenserc.yaml" >> "$GITHUB_OUTPUT"
+            exit 0
+          fi
+          if echo "$all" | grep -qxF '.licenserc.yaml'; then
+            echo "config_file=.licenserc.yaml" >> "$GITHUB_OUTPUT"
+            exit 0
+          fi
+          if ! acmr=$(gh api repos/${{ github.repository }}/pulls/${{ 
github.event.pull_request.number }}/files \
+            --paginate --jq '.[] | select(.status != "removed") | .filename' 
2>/dev/null); then
+            echo "config_file=.licenserc.yaml" >> "$GITHUB_OUTPUT"
+            exit 0
+          fi
+          if [ -z "$acmr" ]; then
+            exit 0
+          fi
+          {
+            echo "added_modified<<EOF"
+            echo "$acmr"
+            echo "EOF"
+          } >> "$GITHUB_OUTPUT"
+          echo "config_file=.licenserc-incremental.yaml" >> "$GITHUB_OUTPUT"
+
+      - name: Generate incremental licenserc
+        if: >-
+          github.event_name == 'pull_request_target' &&
+          steps.changed-files.outputs.added_modified != ''
+        env:
+          CHANGED_FILES: ${{ steps.changed-files.outputs.added_modified }}
+        run: |
+          python3 - <<'EOF'
+          import yaml, os
+
+          with open('.licenserc.yaml') as f:
+              config = yaml.safe_load(f)
+
+          changed = os.environ.get('CHANGED_FILES', '').strip().split('\n')
+          changed = [p.strip() for p in changed if p.strip()]
+
+          config['header']['paths'] = changed
+
+          with open('.licenserc-incremental.yaml', 'w') as f:
+              yaml.dump(config, f, default_flow_style=False, 
allow_unicode=True)
+          EOF
+
       - name: Check License
         uses: apache/[email protected]
         env:
diff --git a/.licenserc.yaml b/.licenserc.yaml
index 0fb211fca80..5cd7c30afa8 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -8,7 +8,9 @@ header:
     - "licenses"
     - "**/*.md"
     - "LICENSE"
+    - "LICENSE.txt"
     - "NOTICE"
+    - "NOTICE.txt"
     - "doap_Doris.rdf"
     - ".clang-format"
     - ".clang-format-ignore"
@@ -44,12 +46,14 @@ header:
     - "**/*.parquet"
     - "docs/.markdownlintignore"
     - "fe/fe-core/src/test/resources/data/net_snmp_normal"
+    - "fe/fe-core/src/test/resources/stageUtilTest.txt"
     - 
"fe/fe-core/src/main/java/software/amazon/awssdk/core/client/builder/SdkDefaultClientBuilder.java"
     - "fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaLexer.g4"
     - "fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaParser.g4"
     - "fe/.idea/vcs.xml"
     - "be/dict/ik/*"
     - "be/dict/pinyin/*"
+    - "be/dict/icu/**"
     - "be/src/common/signal_handler.h"
     - "be/src/olap/lru_cache.cpp"
     - "be/src/olap/lru_cache.h"
@@ -79,6 +83,7 @@ header:
     - "be/test/expected_result"
     - "build-support/run_clang_format.py"
     - "regression-test/data"
+    - 
"regression-test/suites/query_p0/sql_functions/conditional_functions/data.txt"
     - "docs/.vuepress/public/css/animate.min.css"
     - "docs/.vuepress/public/js/jquery.min.js"
     - "docs/.vuepress/public/js/wow.min.js"
@@ -98,11 +103,13 @@ header:
     - "regression-test/pipeline/**"
     - "extension/beats/go.mod"
     - "extension/beats/go.sum"
+    - "extension/dbt-doris/dev-requirements.txt"
     - "pytest/hdfs"
     - "pytest/qe"
     - "pytest/sys/data"
     - "pytest/deploy/*.conf"
     - "tools/jeprof"
     - "tools/FlameGraph/*"
+    - "thirdparty/LICENSE.txt"
     - "fs_brokers/cdc_client/src/main/java/io/debezium/**"
   comment: on-failure
diff --git a/cloud/src/common/CMakeLists.txt b/cloud/src/common/CMakeLists.txt
index d3ba8914f9f..ac49267c8aa 100644
--- a/cloud/src/common/CMakeLists.txt
+++ b/cloud/src/common/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/common")
 
diff --git a/cloud/src/gen-cpp/CMakeLists.txt b/cloud/src/gen-cpp/CMakeLists.txt
index 596598e1361..ddd23d2a4b7 100644
--- a/cloud/src/gen-cpp/CMakeLists.txt
+++ b/cloud/src/gen-cpp/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/gen_cpp")
 
 set (GEN_CPP_DIR ${GENSRC_DIR}/gen_cpp)
diff --git a/cloud/src/meta-service/CMakeLists.txt 
b/cloud/src/meta-service/CMakeLists.txt
index 83487dae788..3623d99713e 100644
--- a/cloud/src/meta-service/CMakeLists.txt
+++ b/cloud/src/meta-service/CMakeLists.txt
@@ -1,4 +1,19 @@
-
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/meta-service")
diff --git a/cloud/src/meta-store/CMakeLists.txt 
b/cloud/src/meta-store/CMakeLists.txt
index fba732c1110..8bef12c1965 100644
--- a/cloud/src/meta-store/CMakeLists.txt
+++ b/cloud/src/meta-store/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/meta-store")
 
diff --git a/cloud/src/rate-limiter/CMakeLists.txt 
b/cloud/src/rate-limiter/CMakeLists.txt
index 631c90d656a..023652fe3ca 100644
--- a/cloud/src/rate-limiter/CMakeLists.txt
+++ b/cloud/src/rate-limiter/CMakeLists.txt
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/rate-limiter")
diff --git a/cloud/src/recycler/CMakeLists.txt 
b/cloud/src/recycler/CMakeLists.txt
index 12dc7351853..3721e23faab 100644
--- a/cloud/src/recycler/CMakeLists.txt
+++ b/cloud/src/recycler/CMakeLists.txt
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/recycler")
diff --git a/cloud/src/resource-manager/CMakeLists.txt 
b/cloud/src/resource-manager/CMakeLists.txt
index dbd6d353975..f3fed07a0bc 100644
--- a/cloud/src/resource-manager/CMakeLists.txt
+++ b/cloud/src/resource-manager/CMakeLists.txt
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 
 # where to put generated libraries
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/resource-manager")
diff --git a/cloud/src/snapshot/CMakeLists.txt 
b/cloud/src/snapshot/CMakeLists.txt
index 2c308450d89..160adb377c5 100644
--- a/cloud/src/snapshot/CMakeLists.txt
+++ b/cloud/src/snapshot/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
 set(EXECUTABLE_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lfdb_c 
-L${THIRDPARTY_DIR}/lib")
diff --git a/cloud/test/CMakeLists.txt b/cloud/test/CMakeLists.txt
index f57c9d46282..0d40bd5c2d6 100644
--- a/cloud/test/CMakeLists.txt
+++ b/cloud/test/CMakeLists.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/enterprise/CMakeLists.txt)
     add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/enterprise)
 endif()
diff --git a/conf/ubsan_ignorelist.txt b/conf/ubsan_ignorelist.txt
index 9fca0e59cdd..ea83005c1e6 100644
--- a/conf/ubsan_ignorelist.txt
+++ b/conf/ubsan_ignorelist.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 src:*/rapidjson/*
 # OpenBLAS blas_server_omp.c:exec_threads calls inner_thread through a
 # function pointer whose signature doesn't match the actual definition
diff --git a/extension/dbt-doris/dev-requirements.txt 
b/extension/dbt-doris/dev-requirements.txt
index 5711dcf4952..64aa3cb9684 100644
--- a/extension/dbt-doris/dev-requirements.txt
+++ b/extension/dbt-doris/dev-requirements.txt
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 # install latest changes in dbt-core
 git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core
 
git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to