JingGe opened a new pull request #18333:
URL: https://github.com/apache/flink/pull/18333
## What is the purpose of the change
Architectural rules are required to verify that all IT cases should have:
- for JUnit4
a public, static, final member of type MiniClusterWithClientResource
annotated with ClassRule.
or
a public, non-static, final member of type MiniClusterWithClientResource
annotated with Rule.
- for JUnit5
a public, static, final member of type MiniClusterExtension
and
a public, static, final member of type AllCallbackWrapper annotated with
RegisterExtension
The inheritance hierarchy need to be checked, because the member of
MiniCluster could be defined in the super class.
## Brief change log
- update dependencies to include test code
- develop fine-grained JavaField predicates
- extend common predicates for class internal architecture check
- exclude test classes for the ArchitectureTest and only include test
classes for TestCodeArchitectureTest
- develop the archunit rules and test for ITCase based on the purposed
mentioned above
- add log4j test log properties for debugging support
- update archunit.properties to add hint for creating new violation store
when new ArchRules are defined
- update the violation stores
## Verifying this change
This change is to build architecture test.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (**yes** / no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (yes / **no**)
- The serializers: (yes / **no** / don't know)
- The runtime per-record code paths (performance sensitive): (yes / **no**
/ don't know)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / **no** / don't
know)
- The S3 file system connector: (yes / **no** / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / **no**)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]