You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/05/09 10:00:29 UTC

[GitHub] [incubator-linkis] casionone opened a new issue, #2098: [Feature] License check action detect newly added binaries

casionone opened a new issue, #2098:
URL: https://github.com/apache/incubator-linkis/issues/2098

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.
   
   
   ### Problem Description
   
   Linkis uses the maven rat plugin to detect whether the ASF header of the file is correct,
   
   For binary files, we need to pay special attention. We can filter out Binaries /Archives type files in the execution result of maven rat. If there are new Binaries /Archives files that are no longer in the whitelist, the check fails.
   
   This is the result example of mvn apache-rat:check
   ```
   Summary
   -------
   Generated at: 2022-05-06T09:56:39+08:00
   
   Notes: 0
   Binaries: 1
   Archives: 0
   Standards: 13
   
   Apache Licensed: 13
   Generated Documents: 0
   
   JavaDocs are generated, thus a license header is optional.
   Generated files do not require license headers.
   
   0 Unknown Licenses
   
   *****************************************************
     Files with Apache License headers will be marked AL
     Binary files (which do not require any license headers) will be marked B
     B     D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/entity/UDFVersion.java
     AL    D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/excepiton/UDFException.java
   *****************************************************
   ```
   ---
   
   Linkis 使用maven rat 插件检测文件的ASF头部是否正确,
   但是目前存在一些场景 
   对于二进制文件 我们需要格外的关注,可以过滤出maven rat的执行结果中的 Binaries /Archives 类型的文件,如果存在Binaries /Archives 类型文件不再我们配置的白名单中,检查失败 。
   
   这是执行 mvn apache-rat:check的一个结果集示例
   ```
   Summary
   -------
   Generated at: 2022-05-06T09:56:39+08:00
   
   Notes: 0
   Binaries: 1
   Archives: 0
   Standards: 13
   
   Apache Licensed: 13
   Generated Documents: 0
   
   JavaDocs are generated, thus a license header is optional.
   Generated files do not require license headers.
   
   0 Unknown Licenses
   
   *****************************************************
     Files with Apache License headers will be marked AL
     Binary files (which do not require any license headers) will be marked B
     B     D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/entity/UDFVersion.java
     AL    D:/DataSphere/linkis_svn/1.1.1-RC1/apache-linkis-1.1.1-incubating-src/apache-linkis-1.1.1-incubating-src/linkis-public-enhancements/linkis-publicservice/linkis-udf/linkis-udf-common/src/main/java/org/apache/linkis/udf/excepiton/UDFException.java
   *****************************************************
   ```
   
   
   
   ### Description
   
   _No response_
   
   ### Use case
   
   _No response_
   
   ### solutions
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] peacewong closed issue #2098: [Feature] License check action detect newly added binaries

Posted by GitBox <gi...@apache.org>.
peacewong closed issue #2098: [Feature] License check action detect newly added binaries
URL: https://github.com/apache/incubator-linkis/issues/2098


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org