Skip to content
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

Content of org.eclipse.pde.doc.user is unstable #1419

Closed
HannesWell opened this issue Sep 26, 2024 · 4 comments
Closed

Content of org.eclipse.pde.doc.user is unstable #1419

HannesWell opened this issue Sep 26, 2024 · 4 comments

Comments

@HannesWell
Copy link
Member

HannesWell commented Sep 26, 2024

After each new I-build and before the first change of the org.eclipse.pde.doc.user the pde build currently fails with:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:4.0.9:p2-metadata-default (default-p2-metadata-default) on project org.eclipse.pde.doc.user: baseline and build artifacts have same version but different contents
 [ERROR]    no-classifier: different
 [ERROR]       reference/api/index-files/index-16.html: different
 [ERROR]       reference/api/index-files/index-3.html: different
 [ERROR]       reference/api/index-files/index-5.html: different
 [ERROR]       reference/api/org/eclipse/pde/core/plugin/VersionMatchRule.html: different

Comparing the content shows a difference in the following lines

Local:

<script type="text/javascript" src="../script-dir/jquery-3.6.1.min.js"></script>
[...]
 which is the case if that version has the same <a href="https://docs.osgi.org/javadoc/osgi.core/8.0.0/org/osgi/framework/Version.html#getMajor--" title="class or interface in org.osgi.framework" class="external-link"><code>major</code></a> component and apart from that is greater than or equal to the

I-build:



<script type="text/javascript" src="../script-dir/jquery-3.5.1.min.js"></script>
[...]
 which is the case if that version has the same <a href="https://docs.osgi.org/javadoc/osgi.core/8.0.0/org/osgi/framework/Version.html#getMajor()" title="class or interface in org.osgi.framework" class="external-link"><code>major</code></a> component and apart from that is greater than or equal to the

The difference is jquery-3.6.1.min.js vs jquery-3.5.1.min.js and #getMajor--" vs #getMajor()".

@akurtakov or @laeubi can you tell what's causing the difference?
Some different tooling installed on the build machines? Ubuntu vs Centos images?

i-build-index3.html.txt
local-index-3.html.txt

@akurtakov
Copy link
Member

This is different version of the javadoc tool used. According to https://bugs.openjdk.org/browse/JDK-8296619 we need 17.0.7+ Java to be used for I-build to fix that.

@laeubi
Copy link
Contributor

laeubi commented Sep 27, 2024

Actually all script + CSS should be dropped before comparison for the javadoc part see:

so either this don't work or the files are not detected as javadoc files.

but regarding

and #getMajor--" vs #getMajor()".

this is not handled and we need some kind of equivalence here.

@akurtakov
Copy link
Member

The fact that I-build shows exactly the same comparator issues https://download.eclipse.org/eclipse/downloads/drops4/I20240927-0310/buildlogs/comparatorlogs/buildtimeComparatorUnanticipated.log.txt is promising. New I-build is running with touched pde.doc to get clean build.

@HannesWell HannesWell changed the title Contentn of org.eclipse.pde.doc.user is unstable Content of org.eclipse.pde.doc.user is unstable Sep 27, 2024
@HannesWell
Copy link
Member Author

Thanks a lot @akurtakov for fixing this! eclipse-platform/eclipse.platform.releng.aggregator#2396 seems to have made the different.

and #getMajor--" vs #getMajor()".

this is not handled and we need some kind of equivalence here.

Looks like this was the difference that made it fail, because the jquery version is still different without letting the comparison fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants