Skip to content

compare-version-with-baselines fails for files that should be ignored #2660

@stephan-herrmann

Description

@stephan-herrmann

JDT work in branch BETA_JAVA24 (e.g., eclipse-jdt/eclipse.jdt.core#3388) is blocked by

[2024-12-03T23:53:56.514Z] [ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:4.0.10:compare-version-with-baselines (compare-attached-artifacts-with-release) on project org.eclipse.jdt.core.tests.builder: Baseline and reactor have the same fully qualified version, but different content
[2024-12-03T23:53:56.514Z] [ERROR] different
[2024-12-03T23:53:56.514Z] [ERROR]    META-INF/ECLIPSE_.RSA: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]    META-INF/ECLIPSE_.SF: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]    resources/autoValueSnippet/libs/auto-value-1.6.5.jar: different
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.RSA: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.SF: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]    resources/autoValueSnippet/libs/auto-value-annotations-1.6.5.jar: different
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.RSA: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.SF: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]    workspace/Test571363.jar: different
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.RSA: present in baseline only
[2024-12-03T23:53:56.514Z] [ERROR]       META-INF/ECLIPSE_.SF: present in baseline only

As per

<ignoredPatterns>
<pattern>META-INF/ECLIPSE_.RSA</pattern>
<pattern>META-INF/ECLIPSE_.SF</pattern>
<pattern>META-INF/CODESIGN.RSA</pattern>
<pattern>META-INF/CODESIGN.SF</pattern>
</ignoredPatterns>
these files should be ignored, but they are not.

For investigation I ran with mvn -X with results in https://ci.eclipse.org/jdt/job/eclipse.jdt.core-Github/job/PR-3388/5

We can see that the desired <ignoredPatterns> are set correctly, but this appears only in the configuration for org.eclipse.tycho:tycho-p2-plugin:4.0.10:p2-metadata-default (default-p2-metadata-default) whereas the error is raised during org.eclipse.tycho.extras:tycho-p2-extras-plugin:4.0.10:compare-version-with-baselines (compare-attached-artifacts-with-release)

So either the parent pom fails to set the ignore-filter on the necessary plugin(s) or tycho fails to evaluate it where it should.

The first guess was that this was some misconfiguration of the branch build, but:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions