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

Add osgi-repository target location type #692

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Aug 2, 2023

The OSGi Specification defines a XML format for representing a repository as defined in "132 Repository Service Specification" that allows to hold "Resources" with requirements and capabilities.

Such a repository usually contains a set of bundles and is very similar to what we have today with P2 updatesites, to improve interfacing of PDE with such repositories this adds a new target location type "Repository" where content can be used as usual.

grafik
grafik
grafik
grafik

@github-actions
Copy link

github-actions bot commented Aug 2, 2023

Test Results

     246 files  ±0       246 suites  ±0   57m 22s ⏱️ - 4m 12s
  3 299 tests ±0    3 275 ✔️ ±0  24 💤 ±0  0 ±0 
10 194 runs  ±0  10 122 ✔️ ±0  72 💤 ±0  0 ±0 

Results for commit f870248. ± Comparison against base commit 161d862.

♻️ This comment has been updated with latest results.

location = RemoteTargetHandle.getEffectiveUri(furiLocation.getText().trim());
} catch (CoreException e) {
setMessage(e.getMessage(), IMessageProvider.WARNING);
return true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this catch block return true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use variables in the location and depending on the used ones this might fail while you create the location (e.g. the variable points to a project selection or similar), still I want to allow people to complete even though you then only get a very basic location you don't need to hand-code them in the XML source.

IMessageProvider.ERROR);
return true;
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error is issued but the result is true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is similar to the other case, e.g. the user might want to point to a file that is (not yet) existing but should still be able to complete the wizard.
I understand that this are maybe strange cases but I don't block the user in such cases from finish the dialog.

@szarnekow
Copy link

I really appreciate the fact that PDE's compatibility with and support of OSGi standard components is improved piece by piece. Nice work!

@HannesWell
Copy link
Member

HannesWell commented Aug 3, 2023

I really appreciate the fact that PDE's compatibility with and support of OSGi standard components is improved piece by piece. Nice work!

I can only second that. @laeubi if you want, I can offer you to review this when I'm back from vacation mid of next week.

@laeubi
Copy link
Contributor Author

laeubi commented Aug 3, 2023

@HannesWell my plan was to finish this before M2 (Friday, August 4, 2023 if I read the calendar right) so it can go into this release, as this is really a standalone feature I think we can improve it later on if there are any issues discovered quite easy.

@laeubi laeubi force-pushed the add_repository_target_location branch from d92145f to af94538 Compare August 3, 2023 05:24
@laeubi laeubi requested a review from szarnekow August 3, 2023 05:25
@laeubi
Copy link
Contributor Author

laeubi commented Aug 3, 2023

@merks
Copy link
Contributor

merks commented Aug 3, 2023

@HannesWell my plan was to finish this before M2 (Friday, August 4, 2023 if I read the calendar right) so it can go into this release, as this is really a standalone feature I think we can improve it later on if there are any issues discovered quite easy.

The deadline for the Platform's m2 contribution came and went July 28th:

https://wiki.eclipse.org/Category:SimRel-2023-09

The build for that contribution is always due on a Friday, one week before the milestone is complete, is generally done two days before that, i.e., on a Wednesday.

As others have mentioned, this looks cool and I don't see any good reason not to aim for including this for m3!

@laeubi
Copy link
Contributor Author

laeubi commented Aug 3, 2023

The deadline for the Platform's m2 contribution came and went July 28th:

I think I gave up on understanding the calendar :-D

So what should happen in the period of 07/28 to 08/04? It seems it is not a Quiet/Freeze period....

As others have mentioned, this looks cool and I don't see any good reason not to aim for including this for m3!

So this would be from 08/04 - 08/18 ?!?

@merks
Copy link
Contributor

merks commented Aug 3, 2023

My favorite part of the whole process is where EMF has to contribute its build to the Platform 7 days before the contribution deadline and eventually in the RC weeks there is overlap between that an SimRel's previous contribution... 😱

The Platform decided to opt out of a heavy-weight freeze/testing period for m2, so it all happened with little fanfare.

Yes, the Platform will want to produce a build for August 16 and will want no new APIs after that point. The "open gap" here is/was from the M1 freeze week to August 16 or roughly 6 weeks.

Keep up the good work. 👍

@laeubi laeubi force-pushed the add_repository_target_location branch from af94538 to 3e25f96 Compare August 11, 2023 04:05
@laeubi
Copy link
Contributor Author

laeubi commented Aug 11, 2023

If no further comments I plan to merge this in the next days.

@laeubi laeubi force-pushed the add_repository_target_location branch from 3e25f96 to 8a9d79b Compare August 12, 2023 17:32
The OSGi Specification defines a XML format for representing a
repository as defined in "132 Repository Service Specification" that
allows to hold "Resources" with requirements and capabilities.

Such a repository usually contains a set of bundles and is very similar
to what we have today with P2 updatesites, to improve interfacing of PDE
with such repositories this adds a new target location type "Repository"
where content can be used as usual.
@laeubi laeubi force-pushed the add_repository_target_location branch from 8a9d79b to f870248 Compare August 13, 2023 05:34
@laeubi laeubi merged commit e621405 into eclipse-pde:master Aug 13, 2023
14 checks passed
laeubi added a commit to laeubi/www.eclipse.org-eclipse that referenced this pull request Aug 15, 2023
laeubi added a commit to eclipse-platform/www.eclipse.org-eclipse that referenced this pull request Aug 15, 2023
@HannesWell HannesWell added this to the 4.29 M3 milestone Aug 20, 2023
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.

4 participants