Skip to content

Commit

Permalink
[CI] Add apache-rat check in Ci (apache#9815)
Browse files Browse the repository at this point in the history
* [CI] Add apache-rat check in Ci
---

*Motivation*

Add apache-rat check in CI for checking the src license header.

* Fix the apache-rat include and exclude file

* only use exclude for the apache-rat

* Fix the ci
  • Loading branch information
zymap authored Mar 8, 2021
1 parent b8f3040 commit a81b332
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

- name: build and check license
if: steps.docs.outputs.changed_only == 'no'
run: mvn -q -B -ntp -DskipTests initialize license:check install
run: mvn -q -B -ntp -DskipTests apache-rat:check initialize license:check install

- name: license check
if: steps.docs.outputs.changed_only == 'no'
Expand Down
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ flexible messaging model and an intuitive client API.</description>
<exclude>src/test/resources/athenz.conf.test</exclude>
<exclude>deployment/terraform-ansible/templates/myid</exclude>
<exclude>certificate-authority/index.txt</exclude>
<exclude>certificate-authority/serial</exclude>
<exclude>certificate-authority/README.md</exclude>

<!-- Exclude ZK test data file -->
Expand All @@ -1384,6 +1385,51 @@ flexible messaging model and an intuitive client API.</description>
<!-- helm files -->
<exclude>**/.helmignore</exclude>
<exclude>**/_helpers.tpl</exclude>

<!-- project ignored files -->
<exclude>*.md</exclude>
<exclude>.github/**</exclude>
<exclude>**/*.nar</exclude>
<exclude>**/.terraform/**</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/.svn</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.cbp</exclude>
<exclude>**/*.pyc</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings</exclude>
<exclude>**/target/**</exclude>
<exclude>**/CMakeFiles/**</exclude>
<exclude>**/CMakeCache.txt</exclude>
<exclude>**/cmake_install.cmake</exclude>
<exclude>pulsar-client-cpp/**/Makefile</exclude>
<exclude>pulsar-client-cpp/tests/main</exclude>
<exclude>pulsar-client-cpp/examples/SampleAsyncProducer</exclude>
<exclude>pulsar-client-cpp/examples/SampleConsumer</exclude>
<exclude>pulsar-client-cpp/examples/SampleConsumerListener</exclude>
<exclude>pulsar-client-cpp/examples/SampleProducer</exclude>
<exclude>pulsar-client-cpp/perf/perfProducer</exclude>
<exclude>pulsar-client-cpp/perf/perfConsumer</exclude>
<exclude>**/python/dist/**</exclude>
<exclude>**/pulsar-client-cpp/pkg/rpm/RPMS/**</exclude>
<exclude>**/pulsar-client-cpp/pkg/rpm/SOURCES/**</exclude>
<exclude>**/pulsar-client-cpp/pkg/deb/BUILD/**</exclude>
<exclude>**/python/wheelhouse/**</exclude>
<exclude>**/python/MANIFEST</exclude>
<exclude>**/*.egg-info/**</exclude>
<exclude>**/*.log</exclude>
<exclude>**/build/**</exclude>
<exclude>**/file:/**</exclude>
<exclude>**/SecurityAuth.audit*</exclude>
<exclude>**/site2/**</exclude>
<exclude>**/.idea/**</exclude>
<exclude>**/*.a</exclude>
<exclude>**/*.so</exclude>
<exclude>**/*.so.*</exclude>
<exclude>**/*.dylib</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
19 changes: 19 additions & 0 deletions pulsar-functions/scripts/python/setup.py.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# 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.
#

"""pulsar functions setuptools based setup module"""
import os, re, sys
from setuptools import setup, find_packages
Expand Down
1 change: 0 additions & 1 deletion tests/certificate-authority/index.txt.attr

This file was deleted.

1 change: 0 additions & 1 deletion tests/certificate-authority/index.txt.attr.old

This file was deleted.

5 changes: 0 additions & 5 deletions tests/certificate-authority/index.txt.old

This file was deleted.

1 change: 0 additions & 1 deletion tests/certificate-authority/serial.old

This file was deleted.

0 comments on commit a81b332

Please sign in to comment.