Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362527

Summary: Please add Bidi bundles to the build
Product: [Eclipse Project] Platform Reporter: Oleg Besedin <ob1.eclipse>
Component: RelengAssignee: Kim Moir <kim.moir>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, kim.moir, matial, ob1.eclipse, pwebster, tjwatson
Version: 3.8   
Target Milestone: 3.8 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
none
patch none

Description Oleg Besedin CLA 2011-10-31 15:58:35 EDT
The new Bidi processors rapidly approaching point at which they can be opened for general use by the Eclipse SDK and its consumers (bug 183164).

It seems like this is a good time to add them to the build & test. 

The bundles are:

org.eclipse.equinox.bidi
org.eclipse.equinox.bidi.tests

from the Git repo rt.equinox.bundles\bundles. 

Tom suggested that the Bidi bundle could be added to the org.eclipse.rcp feature. 

The bundles probably have to be added to a map file, I am not sure if rcp.map or core.map make more sense.

Also it would be nice to have JUnits from the test bundle (STextTestSuite) being incorporated into the regular Eclipse tests.
Comment 1 Thomas Watson CLA 2011-10-31 16:52:56 EDT
(In reply to comment #0)
> The new Bidi processors rapidly approaching point at which they can be opened
> for general use by the Eclipse SDK and its consumers (bug 183164).
> 
> It seems like this is a good time to add them to the build & test. 
> 
> The bundles are:
> 
> org.eclipse.equinox.bidi
> org.eclipse.equinox.bidi.tests
> 
> from the Git repo rt.equinox.bundles\bundles. 
> 
> Tom suggested that the Bidi bundle could be added to the org.eclipse.rcp
> feature. 

I think this makes sense if we think other bundles in the RCP feature will actually use the new bidi bundles.  If nothing from the Eclipse SDK will use the new bidi bundles in Juno then perhaps this is only part of some equinox specific feature.

> 
> The bundles probably have to be added to a map file, I am not sure if rcp.map
> or core.map make more sense.

core.map is where it goes along with the rest of the equinox bundles (except p2).  At some point we really should split the equinox bundles in core.map out into a separate equinox.map file.

> 
> Also it would be nice to have JUnits from the test bundle (STextTestSuite)
> being incorporated into the regular Eclipse tests.
Comment 2 Kim Moir CLA 2011-11-07 08:44:42 EST
So where should this be added? To the RCP feature or an equinox specific feature?
Comment 3 Paul Webster CLA 2011-11-07 09:31:19 EST
We don't want to consume this in the org.eclipse.rcp feature in 3.8/4.2, as no one uses it.

Can we make this consumable from an equinox feature so that it could be installed easily?

PW
Comment 4 Paul Webster CLA 2011-11-07 10:31:31 EST
OK, quick reversal of position :-)

I would like this in the rcp feature.  We have some patches pending from the contributor that can fix SDK bugs, using the new API.

PW
Comment 5 Thomas Watson CLA 2011-11-07 10:40:48 EST
(In reply to comment #2)
> So where should this be added? To the RCP feature or an equinox specific
> feature?

I think it should be added to RCP.  It also should be added to rt.equinox.framework/features/org.eclipse.equinox.core.sdk/ equinox feature.
Comment 6 Kim Moir CLA 2011-11-08 11:07:48 EST
Oleg, can you please update the map files to include these new bundles?  I'll update the feature and run a test build.  Are the bidi.tests run against the SDK?
Comment 7 Oleg Besedin CLA 2011-11-08 15:20:25 EST
(In reply to comment #6)
> Oleg, can you please update the map files to include these new bundles?  I'll
> update the feature and run a test build.  

I've tried to manually tag the bundles but it did not seem like tags got pushed by EGit and doing manually I get:

$ git push origin :refs/tags/v20111108-1400
Password:
remote: warning: Allowing deletion of corrupt ref.
To ssh://obesedin@git.eclipse.org/gitroot/equinox/rt.equinox.bundles.git
 - [deleted]         v20111108-1400

> Are the bidi.tests run against the SDK?

They can be run in a headless mode.
Comment 8 Kim Moir CLA 2011-11-08 16:11:20 EST
The bidi.tests bundle needs a test.xml so the tests can run against the SDK, currently that is missing.
Comment 9 Kim Moir CLA 2011-11-08 16:45:42 EST
Oleg/Tom

I'm getting rejected from pushing the changes to the equinox.core.sdk.  An error about commit rights. Anyways can you add this to the equinox.core.sdk's feature.xml

 <plugin
         id="org.eclipse.equinox.bidi"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
         
         
   <plugin
         id="org.eclipse.equinox.bidi.source"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

and the following to it's build.properties
generate.plugin@org.eclipse.equinox.bidi.source.source=org.eclipse.equinox.bidi

thanks
Comment 10 Thomas Watson CLA 2011-11-08 16:52:59 EST
(In reply to comment #7)
> (In reply to comment #6)
> > Oleg, can you please update the map files to include these new bundles?  I'll
> > update the feature and run a test build.  
> 
> I've tried to manually tag the bundles but it did not seem like tags got pushed
> by EGit and doing manually I get:

I personally only tag from command line.

> 
> $ git push origin :refs/tags/v20111108-1400
> Password:
> remote: warning: Allowing deletion of corrupt ref.
> To ssh://obesedin@git.eclipse.org/gitroot/equinox/rt.equinox.bundles.git
>  - [deleted]         v20111108-1400

The command you ran tries to delete the non-existing tag!  git push --tags will push your local tags upstream.

> 
> > Are the bidi.tests run against the SDK?
> 
> They can be run in a headless mode.
Comment 11 Thomas Watson CLA 2011-11-08 17:09:11 EST
(In reply to comment #9)
> Oleg/Tom
> 
> I'm getting rejected from pushing the changes to the equinox.core.sdk.  An
> error about commit rights. 
Did you open a bug against the foundation on this?

> Anyways can you add this to the equinox.core.sdk's
> feature.xml
> 
>  <plugin
>          id="org.eclipse.equinox.bidi"
>          download-size="0"
>          install-size="0"
>          version="0.0.0"
>          unpack="false"/>
> 
> 
>    <plugin
>          id="org.eclipse.equinox.bidi.source"
>          download-size="0"
>          install-size="0"
>          version="0.0.0"
>          unpack="false"/>
> 
> and the following to it's build.properties
> generate.plugin@org.eclipse.equinox.bidi.source.source=org.eclipse.equinox.bidi
> 
> thanks

No problem, done.
Comment 12 Thomas Watson CLA 2011-11-08 17:11:33 EST
I tagged the latest commit of the rt.equinox.bundles repo with the tag v20111108-1700 and updated the core.map for the bidi bundles to use this tag.
Comment 13 Kim Moir CLA 2011-11-09 07:17:17 EST
The bidi binary and source bundles are in the N20111108-2000.  If you add a test.xml to the bidi.tests bundle I can enable the build to run the associated tests.
Comment 14 Kim Moir CLA 2011-11-09 07:17:51 EST
Created attachment 206679 [details]
patch
Comment 15 Oleg Besedin CLA 2011-11-09 10:23:02 EST
I added plugin.xml, tagged bundles as v20111109-1000 and updated map file.

(In reply to comment #10)
> (In reply to comment #7)
> The command you ran tries to delete the non-existing tag!  git push --tags will
> push your local tags upstream.

Thanks! That worked.
Comment 16 Oleg Besedin CLA 2011-11-09 10:24:04 EST
(In reply to comment #15)
> I added plugin.xml

=> That is "test.xml".
Comment 17 Kim Moir CLA 2011-11-09 14:25:26 EST
Created attachment 206730 [details]
patch
Comment 18 Kim Moir CLA 2011-11-11 16:10:49 EST
Okay bidi tests have been added and a test build was successful.  Tagged and released for i-build.