Bug 564522 - API Error markers should be given at the end of the jenkins log
Summary: API Error markers should be given at the end of the jenkins log
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Releng-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-22 03:34 EDT by Matthias Becker CLA
Modified: 2020-06-22 03:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Becker CLA 2020-06-22 03:34:37 EDT
See the example in https://git.eclipse.org/r/#/c/154952/

Patchset 6 failed with

Failed to execute goal org.eclipse.tycho.extras:tycho-eclipserun-plugin:1.7.0:eclipse-run
(api-analysis) on project org.eclipse.ui.forms: Error while
executing platform: Error while executing platform (return"

at the end of the log.

The cause could be found somewhere up the log

09:40:32 * Marker [on: /org.eclipse.ui.forms/META-INF/MANIFEST.MF,
id: 19, type: org.eclipse.pde.api.tools.version_numbering,
attributes: [apiMarkerID: 4, charEnd: 158, charStart: 141,
description: - The type org.eclipse.ui.forms.widgets.SectionFactory
has been added to org.eclipse.ui.forms_3.9.200
09:40:32 , lineNumber: 5, message: The minor version should be
incremented in version 3.9.200, since new APIs have been added
since version 3.9.100, messagearguments: 3.9.200#3.9.100,
problemid: 924844039, severity: 2, sourceId: API Tools, version:
3.10.0.qualifier], created: 6/17/20 6:40 AM]

Could this be improved so this message is visible at the end of the build log?
Comment 1 Mickael Istria CLA 2020-06-22 03:42:47 EDT
For the moment, https://www.eclipse.org/tycho/sitedocs/tycho-extras/tycho-eclipserun-plugin/eclipse-run-mojo.html doesn't capture system.err to wrap it into the MojoFailureException that is used to generate the final log.
This requires an enhancement in Tycho to enable that. Please open a ticket, or even directly a patch to Tycho.