[jira] [Commented] (MINVOKER-348) Build job report is truncated

2024-05-20 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17847971#comment-17847971
 ] 

Michael Osipov commented on MINVOKER-348:
-

I think that this will be implicitly fixed with MINVOKER-351.

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Assignee: Slawomir Jaranowski
>Priority: Major
> Fix For: 3.7.0
>
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2024-05-16 Thread Slawomir Jaranowski (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17847090#comment-17847090
 ] 

Slawomir Jaranowski commented on MINVOKER-348:
--

In [https://github.com/apache/maven-invoker-plugin/pull/242]
I added {{{}StringEscapeUtils.escapeXml10{}}}:
{code:java}

buildJob.setFailureMessage(StringEscapeUtils.escapeXml10(e.getMessage()));
{code}
I hope this help

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Assignee: Slawomir Jaranowski
>Priority: Major
> Fix For: 3.7.0
>
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2024-05-11 Thread Slawomir Jaranowski (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17845547#comment-17845547
 ] 

Slawomir Jaranowski commented on MINVOKER-348:
--

[~alvaro.sanchez] can you provide a simple project which can reproduce it?

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Priority: Major
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2023-10-21 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17778053#comment-17778053
 ] 

Michael Osipov commented on MINVOKER-348:
-

How can I preproduce this?

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Priority: Major
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2023-10-21 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17778052#comment-17778052
 ] 

Michael Osipov commented on MINVOKER-348:
-

I am very certain that this is related to the ANSI escapes for the coloring...

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Priority: Major
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2023-06-12 Thread Alvaro Sanchez-Mariscal (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17731567#comment-17731567
 ] 

Alvaro Sanchez-Mariscal commented on MINVOKER-348:
--

I debugged it and saw an {{IllegalStateException: character 27 is not allowed 
in output}} being thrown, in case it helps.

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Priority: Major
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MINVOKER-348) Build job report is truncated

2023-06-12 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MINVOKER-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17731566#comment-17731566
 ] 

Michael Osipov commented on MINVOKER-348:
-

Interesting case

> Build job report is truncated
> -
>
> Key: MINVOKER-348
> URL: https://issues.apache.org/jira/browse/MINVOKER-348
> Project: Maven Invoker Plugin
>  Issue Type: Bug
>Affects Versions: 3.5.1
>Reporter: Alvaro Sanchez-Mariscal
>Priority: Major
> Attachments: BUILD-test-resources.xml, build.log
>
>
> The build-job.xml generated for a project is truncated:
> {code:xml}
> 
>  result="failure-post-hook" time="42.662" 
> buildlog="/Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/target/it/test-resources/build.log">
>   Assertion failed: 
> assert log.text.contains("BUILD SUCCESS")
>|   ||
>|   |false
>|   '[INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -
> {code}
> Examining the build output, it gets truncated after a {{<}} appears, which is 
> replaced in the XML with {{}};, but then nothing else. Snippet following
> {noformat}
> [INFO] Error stacktraces are turned on.\n[INFO] Scanning for 
> projects...\n[WARNING] This build will only read from the build cache, since 
> the clean lifecycle is not part of the build invocation.\n[INFO] \n[INFO] 
> -< io.micronaut.build.examples:test-resources 
> >-\n[INFO]
> {noformat}
> Then, the verify mojo crashes when reading such file:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-invoker-plugin:3.5.1:verify (integration-test) 
> on project micronaut-maven-integration-tests: Failed to read report file: 
> /Users/alvaro/Dev/micronaut-projects/micronaut-maven-plugin/micronaut-maven-integration-tests/target/invoker-reports/BUILD-test-resources.xml:
>  no more data available - expected end tags  to 
> close start tag  from line 3 and start tag  from 
> line 2, parser stopped on START_TAG seen ...t part of the build 
> invocation.\n[INFO] \n[INFO] -... @8:242 -> [Help 1]
> {nofirmat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)