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

Ahmed Hamdy commented on FLINK-35454:
-------------------------------------

https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=59823&view=logs&s=ae4f8708-9994-57d3-c2d7-b892156e7812&j=fc5181b0-e452-5c8f-68de-1097947f6483

> Connector ArchTests fails due to dependency on fink.util.Preconditions
> ----------------------------------------------------------------------
>
>                 Key: FLINK-35454
>                 URL: https://issues.apache.org/jira/browse/FLINK-35454
>             Project: Flink
>          Issue Type: Bug
>          Components: Test Infrastructure
>    Affects Versions: 1.20.0
>            Reporter: Ahmed Hamdy
>            Priority: Major
>             Fix For: 1.20.0
>
>
> h2. Description
>  - Arch Unit Rules for connectors limits dependencies of any classes in 
> connectors on @Public or @PublicEvolving with exceptions of connector package 
> classes, this is not true since we should be able to depend on internal util 
> classes like {{Preconditions}} and {{ExceptionsUtils}}
> {code:java}
> freeze(
>                     javaClassesThat(resideInAnyPackage(CONNECTOR_PACKAGES))
>                             .and()
>                             .areNotAnnotatedWith(Deprecated.class)
>                             .should()
>                             .onlyDependOnClassesThat(
>                                   
> areFlinkClassesThatResideOutsideOfConnectorPackagesAndArePublic()
>                                             .or(
>                                                     
> JavaClass.Predicates.resideOutsideOfPackages(
>                                                             
> "org.apache.flink.."))
>                                             .or(
>                                                     
> JavaClass.Predicates.resideInAnyPackage(
>                                                             
> CONNECTOR_PACKAGES)) )
>                             .as(
>                                     "Connector production code must depend 
> only on public API when outside of connector packages"));
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to