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

Enhance p2 director with "addJREIU" option #484

Open
raghucssit opened this issue Mar 18, 2024 · 13 comments · Fixed by #486
Open

Enhance p2 director with "addJREIU" option #484

raghucssit opened this issue Mar 18, 2024 · 13 comments · Fixed by #486
Assignees
Milestone

Comments

@raghucssit
Copy link
Contributor

Support "addJREIU" option for DirectorApplication. Similar to UpdateSitePublisherApplication.
Background for this enhancement is from #450

@raghucssit raghucssit changed the title Enhance p2 director with "addJREIU" action Enhance p2 director with "addJREIU" option Mar 18, 2024
raghucssit pushed a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit pushed a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.-

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 18, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
raghucssit added a commit to raghucssit/p2 that referenced this issue Mar 19, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes eclipse-equinox#484
merks pushed a commit that referenced this issue Mar 19, 2024
P2 Director Application fails to install some of the bundles which has
requirements on Java-SE 21. The reason for this issue was missing java
profile dependency during installation. This new option includes Jre IU
as an extra installable Unit.

Fixes #484
@iloveeclipse
Copy link
Member

@merks: I think we should document this in N&N? Or is there a better place for p2 director options documentation?

@laeubi
Copy link
Member

laeubi commented Mar 19, 2024

@merks: I think we should document this in N&N? Or is there a better place for p2 director options documentation?

There is https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/guide/p2_director.html

@iloveeclipse
Copy link
Member

@merks: I think we should document this in N&N? Or is there a better place for p2 director options documentation?

There is https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/guide/p2_director.html

OK, so we should update that.

@merks
Copy link
Contributor

merks commented Mar 19, 2024

@iloveeclipse

Note this part about the argument information being generated:

https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/9a3b53da0c6845c7c9a8a5bb78423503d68e12f2/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/guide/p2_director.html#L148

That code is commented out here:

image

@raghucssit
Copy link
Contributor Author

@merks: I think we should document this in N&N? Or is there a better place for p2 director options documentation?

There is https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/guide/p2_director.html

OK, so we should update that.

Documentation is available at https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/guide/p2_director.html
I will add this option there.

raghucssit added a commit to raghucssit/eclipse.platform.releng.aggregator that referenced this issue Mar 19, 2024
merks pushed a commit to eclipse-platform/eclipse.platform.releng.aggregator that referenced this issue Mar 19, 2024
@iloveeclipse
Copy link
Member

With eclipse-platform/eclipse.platform.releng.aggregator#1915 merged this can be closed.
Thanks Raghu for the fix & Ed for review and very helpful hints!

@iloveeclipse
Copy link
Member

Doesn't work as expected. Instead of adding Java 21 it adds Java 17. Build is running on java 21.

@iloveeclipse iloveeclipse reopened this Mar 22, 2024
@laeubi
Copy link
Member

laeubi commented Mar 22, 2024

Doesn't work as expected. Instead of adding Java 21 it adds Java 17. Build is running on java 21.

It doesn't really matter what the build is running but the director process, just in case... also keep in mind that this will not add anything it will only make it available during the director calls (what might or might not add things to the profile).

@iloveeclipse
Copy link
Member

Everythingin the build / install process runs on Java 21

@iloveeclipse
Copy link
Member

I guess what happens is that a.jre.javase for Java 17 is already present in the SDK and so the new option simply silently does nothing.

@laeubi
Copy link
Member

laeubi commented Mar 22, 2024

I'm not sure what is your expectation here or where you seeing what, but the generated IU will just be transient unless you explicitly install it, so if you put a breakpoint there you should see that it is added as an extra unit but ti later will not show up anywhere.

@iloveeclipse
Copy link
Member

Sure I'm also trying to install it. Is it possible, doing both actions in same director call depends on processing order of arguments? So if install is called first, and addjre is processed after that, the Java 17 is installed before Java21 is added? I'm currently on vacation, will follow up in a week.

@laeubi
Copy link
Member

laeubi commented Mar 22, 2024

You usually install things on top of others, so some units are there (inital + extra units), some are requested to be installed (root units) and the units you provide (updatesites).

The all root IUs are selected + their dependencies (if not already part of initial + extra) and added to the profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment