-
Notifications
You must be signed in to change notification settings - Fork 187
Jenkinsfile: Use Tycho 4.0.13 way to display api tools warnings #1932
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
Test Results 541 files 541 suites 27m 46s ⏱️ Results for commit a464ce4. ♻️ This comment has been updated with latest results. |
969fbaf to
8c02806
Compare
Also make sure the issues are published even in case of a failed build, as otherwise they are not visualized.
|
See Note: the link to the apitools is kind of broken (the link on the main page is broken as the results are put under to |
laeubi
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 looking into this, I think this is good in general and ready to be merged, still there seem some issues in the output itself (that needs fixing at Tycho):
- There is some strange
null:0file assigned to a message - SWT.java seems not correctly linked
- One message is duplicated for the Manifest
I think this is because of linked resources in the SWT fragments. The information comes like that from the API Tooling output already. |
|
As said this is more something we probably can improve in Tycho, so nothing to block this PR! |
Yep, at least if line is 0 / file is null, we should not put those in the XML in Tycho.
As for linked resources, I am not sure how to handle that. Maybe @HannesWell do you have an idea?
It's actually not a duplicate, but two times the same message for two fragments: |
|
@sratz by the way feel free to merge as you like, we can improve this later on. Would be great to have the same for other platform repos as well. |
I would try to resolve the real system path somewhere in the analysis step: we then would need to get this into the ApiAnalysisResult Maybe even directly in the ApiProblemDTO |
Sorry I haven't fully read through all linked issues/PR, but what exactly is the problem? That the SWT.java occurs twice or that it occurs at all? |
No worries, I think I found the problem. The path returned for the finding is which needs to be resolved to an absolute path in the context of the eclipse project's root directory: But to do that it needs to consider linked resources defined in the fragment's <linkedResources>
<link>
<name>Eclipse SWT</name>
<type>2</type>
<locationURI>SWT_HOST_PLUGIN/Eclipse%20SWT</locationURI>
</link>
<link>
<name>Eclipse SWT Tests</name>
<type>2</type>
<!-- Once Tycho supports custom variables, SWT_HOST_PLUGIN should be used here: https://github.com/eclipse-tycho/tycho/issues/3820 -->
<locationURI>PARENT-2-PROJECT_LOC/bundles/org.eclipse.swt/Eclipse%20SWT%20Tests</locationURI>
</link>
</linkedResources>
<variableList>
<variable>
<name>SWT_HOST_PLUGIN</name>
<value>$%7BPARENT-2-PROJECT_LOC%7D/bundles/org.eclipse.swt</value>
</variable>
</variableList>For that we need basic support of user-defined variables: eclipse-tycho/tycho#3820. I've got a preliminary solution ready and will provide an improvement PR to Tycho which should resolve this. |

Also make sure the issues are published even in case of a failed build, as otherwise they are not visualized.
See eclipse-tycho/tycho#4897