Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define declarative configuration schemas for CompactSerializationConfig #20016

Merged
merged 2 commits into from
Dec 23, 2021

Conversation

mdumandag
Copy link
Contributor

This PR defines XSD and JSON schema for the CompactSerializationConfig
so that it can be used without disabling schema validation.

This PR is created on top of #19276, and contains the other changes
required in the configuration change checklist we have.

This PR defines XSD and JSON schema for the CompactSerializationConfig
so that it can be used without disabling schema validation.

This PR is created on top of hazelcast#19276, and contains the other changes
required in the configuration change checklist we have.
@mdumandag mdumandag added this to the 5.1 milestone Dec 2, 2021
@mdumandag mdumandag requested a review from a team as a code owner December 2, 2021 12:04
@mdumandag mdumandag self-assigned this Dec 2, 2021
@hz-devops-test
Copy link

The job Hazelcast-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
--------------------------
---------SUMMARY----------
--------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle (default) on project hazelcast: An error has occurred in Checkstyle report generation. Failed during checkstyle execution: There are 18 errors reported by Checkstyle 8.38 with /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/checkstyle/checkstyle.xml ruleset. -> [Help 1]
--------------------------
---------ERRORS-----------
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/client/config/ClientConfigXmlGenerator.java:308: Line is longer than 130 characters (found 154). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/client/config/ClientConfigXmlGenerator.java:671: Line is longer than 130 characters (found 135). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/client/config/ClientConfigXmlGenerator.java:689: Line is longer than 130 characters (found 135). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java:489:5: Cyclomatic Complexity is 15 (max allowed is 12). [CyclomaticComplexity]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java:489:5: Method length is 71 lines (max allowed is 60). [MethodLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java:554: Line is longer than 130 characters (found 154). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java:1879: Line is longer than 130 characters (found 135). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java:1897: Line is longer than 130 characters (found 135). [LineLength]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/client/config/ClientConfigXmlGeneratorTest.java:25:8: Unused import - com.hazelcast.config.Config. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:21:8: Unused import - com.hazelcast.internal.serialization.Data. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:22:8: Unused import - com.hazelcast.internal.serialization.SerializationService. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:23:8: Unused import - com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:24:8: Unused import - com.hazelcast.internal.serialization.impl.compact.CompactTestUtil. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:26:8: Unused import - example.serialization.EmployeeDTO. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/AbstractConfigBuilderTest.java:27:8: Unused import - example.serialization.ExternalizableEmployeeDTO. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/XMLConfigBuilderTest.java:20:8: Unused import - com.hazelcast.client.config.ClientConfig. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/XMLConfigBuilderTest.java:67:15: Unused import - com.hazelcast.config.ConfigRecognizerTest.HAZELCAST_CLIENT_END_TAG. [UnusedImports]
--------------------------
[ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/config/XMLConfigBuilderTest.java:68:15: Unused import - com.hazelcast.config.ConfigRecognizerTest.HAZELCAST_CLIENT_START_TAG. [UnusedImports]
--------------------------

@frant-hartm frant-hartm self-requested a review December 4, 2021 21:33
@zpqrtbnk zpqrtbnk self-requested a review December 7, 2021 10:02
Copy link
Contributor

@zpqrtbnk zpqrtbnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for the 2 commits in that PR (haven't looked at the other changes from the other PR)

@mdumandag
Copy link
Contributor Author

@frant-hartm I am going to merge this PR, as it was waiting for quite a long time. If you still want to review it afterward, please do it, and I will create a separate PR to fix your review comments.

@mdumandag mdumandag merged commit b2ba428 into hazelcast:master Dec 23, 2021
@mdumandag mdumandag deleted the compact-xsd-and-json-schema branch December 23, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants