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

Build with Tycho 2.5.0 #334

Merged
merged 4 commits into from
Sep 29, 2021
Merged

Conversation

HannesWell
Copy link
Contributor

This PR checks for regressions in the m2e build using the latest Tycho 2.5.0-SNAPSHOT.

It can be updated as soon as Tycho-2.5.0 is released or discarded.

@HannesWell
Copy link
Contributor Author

The build fails while resolving the Target-Platform because of org.apache.felix.resolver.reason.ReasonException: Uses constraint violations.
I encountered the same errors locally on my computer.

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

Even if that won't make a difference here, but if you update the tycho version don't forget the pomless in .mvn/extensions.xml

@HannesWell
Copy link
Contributor Author

Even if that won't make a difference here, but if you update the tycho version don't forget the pomless in .mvn/extensions.xml

Thanks for the hint, but I skipped the version update for .mvn/extensions.xml intentionally because the extension do not work with a SNAPSHOT version. I assume that in that early stage of the build the additional plug-in repositories are not considered.

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

because the extension do not work with a SNAPSHOT version

You need to define the snapshot repository in a settings.xml

@HannesWell
Copy link
Contributor Author

because the extension do not work with a SNAPSHOT version

You need to define the snapshot repository in a settings.xml

Good to know. But the EF-Jenkins servers seems not to have that set in their settings.xml:
https://ci.eclipse.org/m2e/job/m2e/job/PR-334/2/console

Anyway, usually this isn't a problem.

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

If you like maven support specify settings.xml on commandline as well, but we should really not give this too much effort as this is really not part of the problem here.

@HannesWell
Copy link
Contributor Author

If you like maven support specify settings.xml on commandline as well, but we should really not give this too much effort as this is really not part of the problem here.

No no, I don't want to put effort on that topic. I'm totally fine with it as it is. I just wanted to indicate that I skipped the extension.xml intentionally. :)

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

We can try another run once the new snapshot build is available I have merged a fix for this right now see eclipse-tycho/tycho#304

@HannesWell
Copy link
Contributor Author

Thank you Christoph for for fixing the problem in tycho.
But the build failed I with the same error. I assume the resolver parameters have to be tweaked? Can you propose a set of suspected working parameters?

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

Adding import package as described here to org.eclipse.m2e.core.ui should fix the issue. can you try to add this?

@mickaelistria
Copy link
Contributor

Adding import package as described here to org.eclipse.m2e.core.ui should fix the issue. can you try to add this?

We shouldn't add import-package on bundle that do not effectively require the package. Such hacks shouldn't be merged.

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

the bundle actually depends on the org.w3c.* packages but do not import them directly but relies on its required-bundles to provide the dependency implicitly... and that's what causing this issue here I think even though PDE/equinox do not complain about this extended boot delegation it was always wrong to rely on it.

@mickaelistria
Copy link
Contributor

OK, it makes sense. Are the version range necessary for this to work though? It'd be nice if we can get rid of them so it would allow to use the packages from the Java API directly instead of having to install the extra org.w3c.dom.events bundle.

@HannesWell
Copy link
Contributor Author

Adding import package as described here to org.eclipse.m2e.core.ui should fix the issue. can you try to add this?

I can do that later.

@laeubi
Copy link
Member

laeubi commented Sep 23, 2021

Version ranges are a crucial part when consuming an API in OSGi but for sure we can try if it suffice to not specify any range (=use largest version available).

@laeubi
Copy link
Member

laeubi commented Sep 24, 2021

I tried to reproduce this with a small test-project but didn't succeed yet so it seems not to be the combination of imports alone. Strange enough the m2e build succeeded for this bundle for me locally but I'll recheck...

@laeubi
Copy link
Member

laeubi commented Sep 24, 2021

I think the 2.5.0 SNAPSHOT is not updated when build from a branch... will check this

@mickaelistria
Copy link
Contributor

I think the 2.5.0 SNAPSHOT is not updated when build from a branch... will check this

Right, automatic promotion is only happening from master ( https://github.com/eclipse/tycho/blob/master/Jenkinsfile#L27 ). We can either tweak the Jenkinsfile to allow deploying for any non-PR branch (but I don't know how to do that), or an alternative strategy is to run the mvn deploy step locally.

@laeubi
Copy link
Member

laeubi commented Sep 24, 2021

https://ci.eclipse.org/tycho/job/tycho-github/job/tycho-2.5.x/ do not deploy snapshots
I have adjusted the jenkins file and added a note to the release docs

@laeubi
Copy link
Member

laeubi commented Sep 24, 2021

Just the usual test failure...

@laeubi
Copy link
Member

laeubi commented Sep 24, 2021

If I run with tycho 2.5.x build succeeds, if I specify -Dtycho.equinox.resolver.batch.size=1 the build fails with the error. and also a more simpler test case fails in such a scenario. It only works to specify a very large size for the batch (around 1000).

@HannesWell
Copy link
Contributor Author

Sorry I lost track of the conversation in the Tycho-fixes.

Adding import package as described here to org.eclipse.m2e.core.ui should fix the issue. can you try to add this?

Since the build succeeds now I assume this is not necessary any more? Should I do anything else?

@laeubi
Copy link
Member

laeubi commented Sep 25, 2021

Since the build succeeds now I assume this is not necessary any more?

Nope no additional actions are required.

@HannesWell
Copy link
Contributor Author

Since the build succeeds now I assume this is not necessary any more?

Nope no additional actions are required.

OK, great. I will update this PR once Tycho 2.5.0 is released.

@mickaelistria
Copy link
Contributor

Tycho 2.5 was released, you can now update the PR and merge as soon as this works as expected.

@HannesWell HannesWell marked this pull request as ready for review September 29, 2021 17:43
@HannesWell HannesWell changed the title Build with Tycho 2.5.0-SNAPSHOT Build with Tycho 2.5.0 Sep 29, 2021
@HannesWell
Copy link
Contributor Author

Tycho 2.5 was released, you can now update the PR and merge as soon as this works as expected.

Thanks for the hint.

The build looks good. Just the usual test failures.

@HannesWell HannesWell merged commit 248cc32 into eclipse-m2e:master Sep 29, 2021
@HannesWell HannesWell deleted the tycho-2.5.0 branch September 29, 2021 18:08
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

Successfully merging this pull request may close these issues.

3 participants