Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Targlets and dynamic update site URIs
Targlets and dynamic update site URIs [message #1829299] Wed, 01 July 2020 07:58 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

In the Capella oomph model, I have to reference development build update sites for sirius. Those sites change quite often and the sirius team deletes older snapshots regularly.
I then come up with Oomph installation errors such as:

ERROR: org.eclipse.equinox.p2.metadata.repository code=1000 No repository found at https://download.eclipse.org/sirius/updates/stable/6.3.1-S20200506-133541/2019-06/.

Especially when I bootstrap a new installation, such an error is not very sexy for users. Do you know if there is any way to tell the engine to just warn about such a case rather than to report an error and bail out?


Re: Targlets and dynamic update site URIs [message #1829301 is a reply to message #1829299] Wed, 01 July 2020 08:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
No, failure to load root repos causes overall failure. I suppose Oomph could try to hack that behavior to be different, but presumably you list the site because it's needed to resolve requirements and if it's missing (fails to load) those requirements will not resolve...

You should ask those folks to provide composites that are stable. E.g., like EMF does:

https://download.eclipse.org/modeling/emf/emf/builds/index.html

E.g.,
http://download.eclipse.org/modeling/emf/emf/builds/release/latest
http://download.eclipse.org/modeling/emf/emf/builds/milestone/latest
http://download.eclipse.org/modeling/emf/emf/builds/nightly/latest

Or use a composite such as the following which get updated by their contributions when their SimRel contribution changes and at milestones:

https://download.eclipse.org/staging/2020-09/
https://download.eclipse.org/releases/2020-09/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Targlets and dynamic update site URIs [message #1829303 is a reply to message #1829301] Wed, 01 July 2020 08:34 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I guess it would still work because I use the "include all requirements = false" trick. But yes, maybe it's better to fail with a clear error instead of standing there with compiler errors, not knowing what's going on.. I asked them before to make composites, apparently it's too much work. I might look at how EMF does it and propose them some patches.

Thank you Ed.
Re: Targlets and dynamic update site URIs [message #1829304 is a reply to message #1829303] Wed, 01 July 2020 09:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
EMF uses a rather complex approach, but given I'm the release engineer, I wanted something that is completely automated, and not glued together with horrible shell scripts. So it's completely written in Java using p2 APIs.

https://git.eclipse.org/c/emf/org.eclipse.emf.git/tree/releng/org.eclipse.emf.releng/src/org/eclipse/emf/releng/UpdateSiteGeneratorTest.java

It maintains the entire structure, including generating the HTML, and does handy things like deleting milestones for older releases automatically when a milestone for a new release is published. So I never need to touch anything manually ever.

For JustJ I generalized the implementation:

https://git.eclipse.org/c/justj/justj.tools.git/tree/plugins/org.eclipse.justj.p2

To produce sites like this:

https://download.eclipse.org/justj/sandbox/jres/14/updates/

No milestones or releases yet...

This implementation is reusable and can be used like this:

https://git.eclipse.org/c/justj/justj.tools.git/tree/releng/org.eclipse.justj.tools.parent/promotion/pom.xml#n73

It promotes the repo produced by the build to the project's downloads


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Targlets and dynamic update site URIs [message #1829367 is a reply to message #1829304] Thu, 02 July 2020 07:30 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Never touching manually sounds very nice . Ours is a mess... Thank you for the pointers.

Previous Topic:Java Main/Test sources working set
Next Topic:Errors : Software being installed: artificial_root 1.0.0.v1594017162698
Goto Forum:
  


Current Time: Fri Nov 08 11:37:36 GMT 2024

Powered by FUDForum. Page generated in 0.02701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top