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 support for higher DS versions #923

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Nov 15, 2023

Currently PDE only declares versions up to DS 1.3 in the model but there are already 1.4/1.5 out.

Even though not all features are supported we should allow the user to select a higher version (e.g. to use with Tycho) and to make them aware other versions exits and might can need some improvements/contributions.

Copy link

github-actions bot commented Nov 15, 2023

Test Results

     270 files  ±0       270 suites  ±0   43m 19s ⏱️ +39s
  3 327 tests ±0    3 297 ✔️ ±0  30 💤 ±0  0 ±0 
10 278 runs  ±0  10 188 ✔️ ±0  90 💤 ±0  0 ±0 

Results for commit 6af5b30. ± Comparison against base commit 20bc28b.

♻️ This comment has been updated with latest results.

@laeubi laeubi force-pushed the add_support_for_other_ds_versions branch 5 times, most recently from 9bd70f1 to f52ec74 Compare November 16, 2023 07:57
@laeubi laeubi force-pushed the add_support_for_other_ds_versions branch 9 times, most recently from 28497cf to 2206f63 Compare November 20, 2023 08:42
@laeubi
Copy link
Contributor Author

laeubi commented Nov 20, 2023

Current status is that I got it working that PDE is able to handel things on the validation level except for this what is probably a bug/something to improve in the TCK itself:

so currently there are two validation problems reported:

tck/OSGI-INF/impl-src/org/osgi/impl/bundle/component/annotations/ServiceBundle.java:30 Property 'servicefactory' is ignored when non-default scope is specified. 
tck/OSGI-INF/impl-src/org/osgi/impl/bundle/component/annotations/ServiceSingleton.java:30 Property 'servicefactory' is ignored when non-default scope is specified. 

beside that, PDE-DS has 28 passing and 10 tests left that do not pass not that bad for a first run:

Test run finished after 836 ms
[         5 containers found      ]
[         0 containers skipped    ]
[         5 containers started    ]
[         0 containers aborted    ]
[         5 containers successful ]
[         0 containers failed     ]
[        38 tests found           ]
[         0 tests skipped         ]
[        38 tests started         ]
[         0 tests aborted         ]
[        28 tests successful      ]
[        10 tests failed          ]

grafik

@laeubi laeubi force-pushed the add_support_for_other_ds_versions branch from 1ede853 to c8a2484 Compare November 20, 2023 15:15
@laeubi
Copy link
Contributor Author

laeubi commented Nov 21, 2023

Got it down to 8 testfailures now, things now complained about is mostly properties and properties ordering issues.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 22, 2023

This now passes all the OSGi TCKs!!! 🥇

@HannesWell
Copy link
Member

HannesWell commented Nov 28, 2023

This now passes all the OSGi TCKs!!! 🥇

This is awesome.

Can you please explain how this relates to your other two DS related PRs?

Even though not all features are supported we should allow the user to select a higher version (e.g. to use with Tycho) and to make them aware other versions exits and might can need some improvements/contributions.

I assume since the TCK is now fully passed, that all features are implemented? If not we should make the users aware in some way about what is missing.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 28, 2023

Can you please explain how this relates to your other two DS related PRs?

The other ones are mostly splitups from this I'll clear this up once master is open and rebase things.

I assume since the TCK is now fully passed, that all features are implemented?

Sadly the TCK does not cover 1.5 features yet see:

this does not mean it can't work (maybe it does), but we do not cover this, also maybe someone wants to use a higher feature but not from the annotations... so its quite hard to "tell" the user and I'd better like to invest time in implement the features than explain what is missing ;-)

@laeubi laeubi force-pushed the add_support_for_other_ds_versions branch 2 times, most recently from b29449f to a854a43 Compare November 29, 2023 08:20
Currently PDE only support versions up to DS 1.3 but 1.4 has some major
improvements.

This adds the necessary support and the official TCK from the OSGi
specification to support DS 1.4 features in PDE.

See eclipse-pde#36
Fix eclipse-pde#191
Fix eclipse-pde#219
@laeubi laeubi force-pushed the add_support_for_other_ds_versions branch from a854a43 to 6af5b30 Compare November 29, 2023 17:55
@laeubi laeubi merged commit c911a8a into eclipse-pde:master Nov 29, 2023
16 checks passed
laeubi added a commit to laeubi/www.eclipse.org-eclipse that referenced this pull request Nov 29, 2023
laeubi added a commit to eclipse-platform/www.eclipse.org-eclipse that referenced this pull request Nov 29, 2023
@laeubi
Copy link
Contributor Author

laeubi commented Nov 29, 2023

N&N added here eclipse-platform/www.eclipse.org-eclipse#98

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