-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-28462: Upgrade remaining Maven plugins #12982
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
base: master
Are you sure you want to change the base?
Changes from all commits
cc66382
6446a87
8200cf9
37b3504
6d766c5
b65e7cf
e704fe4
99f7a6a
ba6a176
fe2f34b
5339430
947be11
fb18f26
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ | |
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.function.Function; | ||
| import org.apache.commons.io.FileUtils; | ||
| import org.apache.ignite.DataRegionMetrics; | ||
| import org.apache.ignite.Ignite; | ||
| import org.apache.ignite.IgniteCache; | ||
|
|
@@ -363,7 +362,7 @@ private Consumption doTest(int cnt, Function<Integer, Object> keyGen, Function<I | |
| File nodeFolder = ((IgniteEx)node).context().pdsFolderResolver().fileTree().nodeStorage(); | ||
|
|
||
| if (nodeFolder != null) | ||
| pers += FileUtils.sizeOfDirectory(nodeFolder); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same as below: if you want to remove this dependency, such method need to be moved into some test utility class, othrvize revert this change or explain why you need it ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Modified: 947be11 |
||
| pers += GridTestUtils.sizeOfDirectory(nodeFolder); | ||
|
|
||
| if (mode != ConsumptionTestMode.PERSISTENT) | ||
| assertEquals(0, pers); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,6 @@ | |
| import java.io.IOException; | ||
| import java.io.InputStream; | ||
| import java.util.concurrent.TimeUnit; | ||
| import org.apache.commons.io.IOUtils; | ||
| import org.apache.ignite.internal.util.GridJavaProcess; | ||
|
|
||
| import static java.nio.charset.StandardCharsets.UTF_8; | ||
|
|
@@ -56,13 +55,20 @@ int majorVersion(String javaHome) throws IOException, InterruptedException { | |
| /** | ||
| * Reads whole stream content and returns it as a string. UTF-8 is used to convert from bytes to string. | ||
| * | ||
| * @param inputStream Stream to read. | ||
| * @param inputStream Stream to read. | ||
| * @return Stream content as a string. | ||
| * @throws IOException If something goes wrong. | ||
| */ | ||
| private String readStream(InputStream inputStream) throws IOException { | ||
| // commons-io (IOUtils) is intentionally not used here. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably need to move into GridTestIoUtils ? |
||
| // JavaVersionCommand is executed inside a forked JVM process launched by IgniteProcessProxy. | ||
| // Surefire's IsolatedClassLoader does not include test-scoped dependencies in the forked | ||
| // process classpath, so commons-io is unavailable. | ||
| ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ||
| IOUtils.copy(inputStream, baos); | ||
| byte[] buf = new byte[4096]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you decide to remove import org.apache.commons.io.* dependency it need to be done through whole module, i.e. such method need to e moved into some utility class, othervize you need to revert such a change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The decision of this change is not about removing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before this PR, Surefire 2.x was used for |
||
| int len; | ||
| while ((len = inputStream.read(buf)) != -1) | ||
| baos.write(buf, 0, len); | ||
| return new String(baos.toByteArray(), UTF_8); | ||
| } | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we really need this change ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The keystore contained a 1024-bit DSA key expired in 2007. |
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.
can you append a comment, why we need such a change plz ?
Uh oh!
There was an error while loading. Please reload this page.
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.
Plugin update revealed that there was a defect in
BinaryContext.After the version was upgraded
package-info.classbecame physically present in the package directory on the disk. The method picked it up as a regular class and added it to the list for registration as a binary type.Logs: https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_BinaryObjects/9015329?buildTab=overview