-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10503. Bump jgrapht to 1.4.0 #6364
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
Conversation
| @@ -0,0 +1,75 @@ | |||
| package org.apache.ozone.graph; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License header is needed in all files. Example:
ozone/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigFileAppender.java
Lines 1 to 17 in 131eec0
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * <p> | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * <p> | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, | |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| * See the License for the specific language governing permissions and | |
| * limitations under the License. | |
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need more informative output in rat.sh and mark build failed :)
~/projects/opensource/ozone hadoop-hdds/rocksdb-checkpoint-differ/target/rat.txt: !????? /home/izlenko/projects/opensource/ozone/hadoop-hdds/rocksdb-checkpoint-differ/src/test/java/org/apache/ozone/graph/TestPrintableGraph.java izlenko:~/projects/open
I've totally missed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need more informative output in rat.sh
Agreed.
and mark build failed
I don't see any problem there, the check failed: https://github.com/ivanzlenko/ozone/actions/runs/8233075581/job/22511818434
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.799 s
[INFO] Finished at: 2024-03-11T17:44:03+05:00
[INFO] ------------------------------------------------------------------------
[INFO] 26 goals, 26 executed
~/projects/opensource/ozone
hadoop-hdds/rocksdb-checkpoint-differ/target/rat.txt: !????? /home/izlenko/projects/opensource/ozone/hadoop-hdds/rocksdb-checkpoint-differ/src/test/java/org/apache/ozone/graph/TestPrintableGraph.java
Whole output from console.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rat.sh exits with error code.
$ echo $?
1
BUILD SUCCESS is printed only because hadoop-hdds and hadoop-ozone are checked separately, the latter is successful. This will be improved in #6358, which changes the build to run a single Maven command for the whole project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
myskov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivanzlenko for the patch!
| } | ||
|
|
||
| @ParameterizedTest | ||
| @MethodSource("graphTypes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest using EnumSource, it will allow:
- get rid of graphTypes() method
- No need in modifying this test if a new value is added to the enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for feedback! Changed to EnumSource
|
Unfortunately JGraphT 1.5.x requires Java 11. https://sourceforge.net/p/jgrapht/news/2020/06/jgrapht-version-150-released/ |
|
@adoroszlai yeah, I've downgraded it to 1.4.0. It still contains newer version of jgraphx, so it should be okay. |
|
Thanks @ivanzlenko for updating the patch. It looks like new version has slightly different transitive dependencies. Please update |
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivanzlenko for the patch, LGTM.
myskov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @ivanzlenko.
Thanks for reviewing @adoroszlai.
(cherry picked from commit d68ea97)
(cherry picked from commit d68ea97)
(cherry picked from commit d68ea97)
(cherry picked from commit d68ea97)
What changes were proposed in this pull request?
Jgrapht library was updated to the most recent version.
What is the link to the Apache JIRA
HDDS-10503
How was this patch tested?
New unit tests added to cover PrintableGraph class.