Hi,
thanks all for the replies, I was running for the same issues with 3.2.0 version as well,
good to see that return code 126 is fixable. Like I wrote in the opening message, I was
able to add some debug messages and see that in the first case of Integer.MIN_VALUE
return
code, the exception returned from the process was:
org.apache.maven.shared.utils.cli.CommandLineException: Failure processing stdout.
(the test sends InvocationRequest and receives InvocationResponse, the response has
the Exception and return code).
But haven't got any deeper than that, what is the actual cause for the error.
Best regards.
Markku Korkeala
On 7/29/22 00:52, fedoraproject2jrw(a)nym.hush.com wrote:
"3.7.5 Exit Status" "If a command is found but is not
executable, the return status is 126."
$ ls -l ./src/test/resources/test-maven-wrapper-in-project/mvnw
-rw-r--r--. 1 whitingjr whitingjr 984 Jul 28 22:31
./src/test/resources/test-maven-wrapper-in-project/mvnw
$ chmod +x ./src/test/resources/test-maven-wrapper-in-project/mvnw
$ mvn verify
...
[INFO] Tests run: 100, Failures: 0, Errors: 0, Skipped: 0
...
Both F35 and F36 tested using JSE 17. Can't explain though what causes the
Integer.MIN_VALUE
Jeremy
On 28/07/2022 at 5:54 PM, "Stephen Snow" <s40w5s(a)gmail.com> wrote:
I get this error when I try to build it locally ...
[ERROR] DefaultInvokerTest.testMavenWrapperInProject:268 expected:<0> but
was:<126>
I'll try to investigate further.
Stephen
On Thu, 2022-07-28 at 16:30 +0200, Marián Konček wrote:
I tried to see whether an update to maven-invoker 3.2.0 would fix the problem
but
now there are 3 test failures:
[ERROR] Failures:
[ERROR] DefaultInvokerTest.testBuildShouldSucceed:56 expected:<0> but
was:<-2147483648>
[ERROR] DefaultInvokerTest.testMavenWrapperInProject:268 expected:<0> but
was:<126>
[ERROR] DefaultInvokerTest.testSpaceProperties:218 expected:<0> but
was:<-2147483648>
I will try to inspect it further.
On 28. 7. 2022 13:55, Markku Korkeala wrote:
Hi all,
in F37 release cycle maven-invoker builds started to fail [1], for example:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2015458 .
The reason is that two tests fail:
[ERROR] DefaultInvokerTest.testBuildShouldSucceed:56 expected:<0> but
was:<-2147483648>
[ERROR] DefaultInvokerTest.testSpaceProperties:218 expected:<0> but
was:<-2147483648>
https://kojipkgs.fedoraproject.org//work/tasks/8915/89828915/build.log
I haven't made any changes, the same version built fine in F36 release
cycle, so I dont think its JDK17 related, possible some other dependency
is updated which results in the error.
I was able to add some debugging and logging, at least the first test gets
exception:
org.apache.maven.shared.utils.cli.CommandLineException: Failure processing
stdout.
After debugging this I havent found any solution, seems my option are:
1. Disable the two tests, but some other application might brake
2. Orphan maven-invoker
So any help is appreciated.
1:
https://koji.fedoraproject.org/koji/packageinfo?packageID=15295
2:
https://src.fedoraproject.org/rpms/maven-invoker
Best regards,
Markku Korkeala
_______________________________________________
java-devel mailing list -- java-devel(a)lists.fedoraproject.org
To unsubscribe send an email to java-devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproj...
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
_______________________________________________
java-devel mailing list -- java-devel(a)lists.fedoraproject.org
To unsubscribe send an email to java-devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
<
https://docs.fedoraproject.org/en-US/project/code-of-conduct/>
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
<
https://fedoraproject.org/wiki/Mailing_list_guidelines>
List Archives:
https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproj...
<
https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproj...
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
<
https://pagure.io/fedora-infrastructure>