Discussion:
[tycho-user] Skip assemble-repository to build products?
Mickael Istria
2017-06-25 14:55:26 UTC
Permalink
Hi,

I'm thinking about possible ways to speed up the EPP builds (currently
taking ~4h on Eclipse.org CI).
It seems like it's spending a lot of time in the various
"assemble-repository" goals of each package. As those repositories are not
redistributed, it might work to simply get rid of that step or to minimize
its work.
So I've got a few questions:
1. Does anyone know whether we can hope materialize-products to work if
there has been no "assemble-repository"? It looks like yet according to the
doc, but additional feedback would be welcome
2. If 1. is doable, what is a recommendation for the the best way to skip
the assemble-repository execution (since this one has no 'skip' flag).

Thanks in advance,
--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/downloads/eclipse-packages/>
developer, at Red Hat Developers <https://developers.redhat.com/> community
Sievers, Jan
2017-06-28 09:56:57 UTC
Permalink
hard to tell what could be optimized without concrete build logs and links to source code repo.

I think in principle it should be possible to skip assemble-repository (e.g. if all you are interested in is a product tarball) but it's not right now.
One thing you can try is to skip copying artifacts
https://eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-repository-plugin/assemble-repository-mojo.html#createArtifactRepository

Another idea is to put multiple products in the same eclipse-repository module (not sure if you have that already)

Regards
Jan

On 25.06.17, 16:55, "tycho-user-***@eclipse.org on behalf of Mickael Istria" <tycho-user-***@eclipse.org on behalf of ***@redhat.com> wrote:

Hi,


I'm thinking about possible ways to speed up the EPP builds (currently taking ~4h on Eclipse.org CI).

It seems like it's spending a lot of time in the various "assemble-repository" goals of each package. As those repositories are not redistributed, it might work to simply get rid of that step or to minimize its work.

So I've got a few questions:

1. Does anyone know whether we can hope materialize-products to work if there has been no "assemble-repository"? It looks like yet according to the doc, but additional feedback would be welcome

2. If 1. is doable, what is a recommendation for the the best way to skip the assemble-repository execution (since this one has no 'skip' flag).


Thanks in advance,
--
Mickael Istria

Eclipse IDE <https://www.eclipse.org/downloads/eclipse-packages/> developer, at
Red Hat Developers <https://developers.redhat.com/> community
Mickael Istria
2017-06-28 11:43:47 UTC
Permalink
Hi Jan,

I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=518813 (with a
patch). For EPP it seems to be a good path: I can skip the
assemble-repository step (associate its execution with an empty phase) and
then use this mojo with the tweak added to mirror a subset of TP+current
module.
So as soon as this is approved in Tycho, EPP can take advantage of it and
save a lot of time.

Cheers,

Loading...