mrutkows closed pull request #52: Add license verification document

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/ b/docs/
new file mode 100644
index 0000000..44872cb
--- /dev/null
+++ b/docs/
@@ -0,0 +1,65 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more 
+# license agreements.  See the NOTICE file distributed with this work for 
+# 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 
+# at:
+# Unless required by applicable law or agreed to in writing, software 
+# 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.
+# Verify License Compliance
+This document describes the work to verify OpenWhisk release artifacts are 
compliant with ASF licensing policy.
+## Policies and rules
+As described in [Apache Release 
Policy](, every 
artifact distributed MUST contain only appropriately licensed code per Apache 
Licensing Policy. It includes two check points:
+- Each package MUST provide a LICENSE file and a NOTICE file.
+- With a few exceptions, source files consisting of works submitted directly 
to the ASF by the copyright owner or owner's agent must contain the appropriate 
ASF license header. Here are the exceptions:
+  + Files without any degree of creativity don't require a license header.
+  + Sometimes shorter form of ASF license header can be used if the 
recommended Apache source header is not appropriate.
+In OpenWhisk project, we will exclude below type of files from license header 
verification because of little creativity:
+- Json files
+- Gradle setting files
+- Configuration files prefixed with dot
+- Template files used in OpenWhisk installation
+In OpenWhisk project, we decided to apply short form of header to minified 
OpenWhisk action source files in order to get better performance.
+## Tools and scripts
+[](../tools/ in the `tools` folder 
is to verify license compliance. [Apache Rat]( 
is used to verify license headers. Files excluded license header verification 
following the previous rules are configured in the file 
+cp $SCRIPTDIR/lib/pom.xml ./
+mvn clean apache-rat:check 
+Below script snippet is used to check LICENSE file and NOTICE file in every 
+for repo in $(echo $repos | sed "s/,/ /g")
+    repo_name=$(echo "$repo" | sed -e 's/^"//' -e 's/"$//')
+    echo "Check the repository $repo_name"
+Although [Apache Tentacles]( is a tool 
to check LICENSE file and NOTICE file in artifacts uploading to a staging 
repository, it is not usable for us because it doesn't support the unpacking of 
tar.gz files.
+## How to
+After downloading the source codes to your local disk, run the following 
script to verify license compliance:
+$ ./tools/travis/ <WORK_DIR>


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to