You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2020/01/16 18:27:00 UTC

[jira] [Commented] (FLINK-15623) Buildling flink-python with maven profile docs-and-source fails

    [ https://issues.apache.org/jira/browse/FLINK-15623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17017389#comment-17017389 ] 

Chesnay Schepler commented on FLINK-15623:
------------------------------------------

The maven-source-plugin, which runs as part of the {{release}} profile, re-executes the early maven life-cycle, including the checkstyle run. Unfortunately at this point the python module already generated the classes which violate our checkstyle rules.

I quickly looked at the protobuf-generator and source-plugin documentation and could not find a solution; so we'll likely just have to exclude them from checkstyle.

> Buildling flink-python with maven profile docs-and-source fails
> ---------------------------------------------------------------
>
>                 Key: FLINK-15623
>                 URL: https://issues.apache.org/jira/browse/FLINK-15623
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 1.10.0
>         Environment: rev: 91d96abe5f42bd088a326870b4885d79611fccb5
>            Reporter: Gary Yao
>            Priority: Blocker
>             Fix For: 1.10.0
>
>
> *Description*
> Building flink-python with maven profile docs-and-source fails due to checkstyle violations. 
> *How to reproduce*
> Running
> {noformat}
> mvn clean install -pl flink-python -Pdocs-and-source -DskipTests -DretryFailedDeploymentCount=10
> {noformat}
> should fail with the following error
> {noformat}
> [...]
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8343] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8344] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8345] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8346] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8347] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8348] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8349] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [ERROR] generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8350] (regexp) RegexpSinglelineJava: Line has leading space characters; indentation should be performed with tabs only.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18.046 s
> [INFO] Finished at: 2020-01-16T16:44:01+00:00
> [INFO] Final Memory: 158M/2826M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on project flink-python_2.11: You have 7603 Checkstyle violations. -> [Help 1]
> [ERROR]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)