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

Support sub bundles build #940

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Nov 27, 2023

Currently PDE only builds the "main bundle" but not sub-bundles, this adds support for building these as well.

Copy link

github-actions bot commented Nov 27, 2023

Test Results

     270 files  ±0       270 suites  ±0   42m 6s ⏱️ - 13m 32s
  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 8a6b9da. ± Comparison against base commit 62e8a76.

♻️ This comment has been updated with latest results.

Currently PDE only builds the "main bundle" but not sub-bundles, this
adds support for building these as well.
@laeubi laeubi merged commit 5f58ff4 into eclipse-pde:master Nov 29, 2023
16 checks passed
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %name
Bundle-SymbolicName: org.eclipse.pde.core; singleton:=true
Bundle-Version: 3.17.300.qualifier
Bundle-Version: 3.17.400.qualifier
Copy link
Member

Choose a reason for hiding this comment

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

Why have you changed it? This causes now API error because it was already changes for the 4.31 release.

Please consider quickly revert this before next IBuild kicks in.

Copy link
Member

Choose a reason for hiding this comment

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

I've set #948

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why have you changed it? This causes now API error because it was already changes for the 4.31 release.

Why it not failed this PR?

Copy link
Member

Choose a reason for hiding this comment

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

I guess this is yet another API tools mystery.

Copy link
Member

Choose a reason for hiding this comment

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

There was another issue with API error not being reported, see eclipse-jdt/eclipse.jdt.ui#914 .
Note that eclipse-jdt/eclipse.jdt.ui#914 is reported in SDK build and in the IDE.
So it could be some new tycho build issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was another issue with API error not being reported

The green build reports it as a warning

[2023-11-29T07:02:13.259Z] [WARNING] [API WARNING] File MANIFEST.MF at line 5: The service version is increased unnecessarily since either the major or minor or service version is already increased (location: /home/jenkins/agent/workspace/eclipse.pde_PR-940/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF)

So it could be some new tycho build issue.

API tools is provided by PDE not Tycho, Tycho just provides a wrapper around it, so either it is configured differently WARNING vs ERROR or the configuration is not picket up by Tycho @vik-chand might better know if/how/where this is to be configured.

Copy link
Member

Choose a reason for hiding this comment

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

Tycho just provides a wrapper around it

That is what I've meant with SDK/IDE build showing error.

I have no idea if it is the wrapper or the tycho config or whatever else.
API tooling in the IDE works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have now debugged the case and the problem is that ApiProblem.getSeverity() always return the default as it passes null as a project... Why it works in IDE/SDK ist because here Error Markers are used and when ApiTools converts ApiProblem > Error Marker it does IGNORE ApiProblem.getSeverity() and instead computes the value again but this time using current build project... will replicate this behaviour with Tycho as well ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually ApiProblem.getSeverity() is only used in two places:

  1. ApiProblem.toString (what will print wrong value then or at least ignores the project settings)
  2. In a org.eclipse.pde.api.tools.problems.tests.ApiProblemTests.testGetSeverity()

so actually I think that method can completely be deleted to prevent further confusion...

iloveeclipse added a commit to iloveeclipse/eclipse.pde.ui that referenced this pull request Nov 29, 2023
iloveeclipse added a commit that referenced this pull request Nov 29, 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.

3 participants