You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Eike Rathke <oo...@erack.de> on 2011/09/06 18:50:52 UTC

[code][repo] Integration of CWSs

Hi,

And now for something completely different: CODE

As lined out in

Message-ID: <20...@kulungile.erack.de>
http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201108.mbox/%3C20110831191817.GF29051@kulungile.erack.de%3E

there are 2 possible approaches to integrate pending CWSs and I favoured
one of them. I've seen no response to that other than Pedro's, maybe my
suggestion was buried too deep in that thread and people are too busy
with fighting over forum and documentation governance. I'm tired of
wading through those piles of mails wasting the project's time and
efforts and putting people off. In the mean time -- I'm referring a time
span of more than the last week that passed since my mail -- we could
have had the CWSs integrated, identified copyright/license problematic
bits of code, and maybe even found some solutions for copyleft code
removal to get things going.

I offered my help with the CWSs since the beginning, hoping that the
code repository would had been there much earlier. Summer here was
almost non-existing with weather conditions just right to keep me
indoors, but now I will focus on other things, spare time life is short
enough and can be enjoyed.. as for my part that means I'll enjoy staying
away from computer keyboards for some time starting next week and have
fun under the sun.

For reference, here the body of the mail mentioned above:

| On Wednesday, 2011-08-31 09:22:46 -0400, Rob Weir wrote:
| 
| > It is a trade-off.  Right now I think the most important task is to
| > review the IP of the code and get that fixed where needed.  Right now
| > all code in the repository is in one of these categories:
| > 
| > 1) Files that are in the Oracle SGA
| > 
| > 2) Files that Oracle owns that are not in their original SGA but will
| > need ot be in their new SGA
| > 
| > 3) Files that are from 3rd party open source modules, where the code
| > has a compatible license
| > 
| > 4) Files that are from 3rd party open source modules, where the code
| > has an incompatible license
| > 
| > 5) Files where we cannot establish accurately their origin or license
| > 
| > I think the priority should be to identify all files in categories #2,
| > #4 and #5, so we can fix them.
| > 
| > If people are adding new code to the repository, that introduces a new
| > category, of changes made by committers, under ALv2.  The complexity
| > would be if they are modify or adding files that are in categories #2,
| > #4, or #5.  If we can avoid that, then I don't see a problem.
| > 
| > What we want to avoid is having us review a given AOOo module, clean
| > it up from IP perspective, and move on to another modules, and then
| > have it recontaminated by merging in, via a patch or CWS integration,
| > code that is dirty.
| 
| CWS integration can be of two categories:
| 
| a) CWS does not introduce new code covered by an incompatible license,
|    should not give any problem other than merge conflicts if it touches
|    code that was already removed for #2, #3 or #4. All other code newly
|    introduced in such a CWS is covered by the SCA/OCA and hence also
|    covered by the SGA, if I understood correctly.
| 
| b) CWS does introduce new code covered by an incompatible license, will
|    pollute the tree anyway and those code parts will have to be removed.
| 
| So, we can choose:
| 
| x) first identify and remove license incompatible code to be pointed to
|    clashes when the CWSs will be integrated, additionally lookout for
|    new license incompatible code when integrating CWSs thereafter, or
| 
| y) first integrate all CWSs, note down new license incompatible code the
|    CWS introduces, and after all CWSs are integrated start the clean-up
|    of the entire tree. CWSs rarely introduce new external code, so new
|    code that would be covered by an incompatible license should be an
|    exemption.
| 
| I'd favour y) because we wouldn't have to deal with additional merge
| conflicts as would be the case with x).


  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, jl167, impress212

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Saturday, 2011-09-10 21:00:40 +0200, Eike Rathke wrote:

> > Master DEV300, Release 3.4, Status nominated:
> > jl167       DEV300m104

I don't know what happened on that CWS, apparently nothing. Whyever it
was nominated..

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, jl167, impress212

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Saturday, 2011-09-10 21:00:40 +0200, Eike Rathke wrote:

> > Master DEV300, Release 3.4, Status nominated:
> > impress212  DEV300m104

I stumbled over a few things in that CWS that needed extra care:

It touched files under svtools/source/filter.vcl/filter/
That directory was renamed to svtools/source/filter/ later, so best
works if patches touching them are edited to adapt the diff lines.

It touched files under svtools/source/wmf/ that was moved to
svtools/source/filter/wmf/ later, so again edit affected patches before
applying.

It removed files, if the original content doesn't match the current
file's content the patch import complains about that, this needs to be
dealt manually with   git rm file ; stg refresh

It created new files, these can be seen with stg status or git status
and need to be added manually with   git add files ; stg refresh
Do not accidentally add the Makefile in the tree's root that is created
by configure and set_soenv, and do not add the visibility.cxx and warn
files that are leftovers from ./configure

So, it's always a good idea to do a stg status before the next stg
import.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, jl167, impress212

Posted by Eike Rathke <oo...@erack.de>.
Hi,

> Master DEV300, Release 3.4, Status nominated:
> jl167       DEV300m104
> impress212  DEV300m104

Doing these.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs

Posted by Mathias Bauer <Ma...@gmx.net>.
Am 07.09.2011 18:47, schrieb Marcus (OOo):

> Am 09/07/2011 03:43 PM, schrieb Eike Rathke:
>> On Wednesday, 2011-09-07 00:28:29 +0200, Mathias Bauer wrote:
>>
>>>> | So, we can choose:
>>>> |
>>>> | x) first identify and remove license incompatible code to be pointed to
>>>> |    clashes when the CWSs will be integrated, additionally lookout for
>>>> |    new license incompatible code when integrating CWSs thereafter, or
>>>> |
>>>> | y) first integrate all CWSs, note down new license incompatible code the
>>>> |    CWS introduces, and after all CWSs are integrated start the clean-up
>>>> |    of the entire tree. CWSs rarely introduce new external code, so new
>>>> |    code that would be covered by an incompatible license should be an
>>>> |    exemption.
>>>> |
>>>> | I'd favour y) because we wouldn't have to deal with additional merge
>>>> | conflicts as would be the case with x).
>>>
>>> I agree with you in that point - OTOH we shouldn't integrate cws into
>>> the 3.4 code line that don't belong there. I hope you are talking only
>>> about cws that should become a part of 3.4.
>>
>> Of course, yes. And after that create a 3.4.0 branch and have ongoing
>> development on trunk then.
>>
>> Going to https://tools.services.openoffice.org/EIS2/GuestLogon
>> Child workspaces Search and filtering for available 3.4 relevant CWSs
>> reveals:
>>
>> Master OOO340, Status nominated:
>> calc68
>> native373
> 
> OK, next step would be the physical integration of these CWSs.
> 
>> Master OOO340, Status approved by QA: none
>>
>> Master OOO340, Status ready for QA:
>> tkr41
>> sw34bf06
> 
> Hm, what to do with CWSs in this state?

Integrate them. Testing has to happen on master anyway and they probably
only contain bugfixes.

>> Master DEV300, Release 3.4, Status nominated:
>> ooo34gsl02  DEV300m106
>> ooo34gsl01  DEV300m106
>> jl167       DEV300m104
>> impress212  DEV300m104
>> calc67      DEV300m106
> 
> This can be (easily, if no merge conflicts) integrated, too. Maybe with 
> a little rebase of the m104 CWSs.

Yes.

>> Master DEV300, Release 3.4, Status approved by QA:
>> jsc341      DEV300m106
> 
> Next status would be to nominate this CWS; so, just integrate.

Yes.

>> Master DEV300, Release 3.4, Status ready for QA:
>> mingwport35 DEV300m106
> 
> What to do with this?

These should be fixes for mingw port only. Integrate it.

>> mh8tz       DEV300m73   (this seems to have been abandoned in 2010)
> 
> Can be skipped IMHO.

I agree.

>> Unfortunately parts of the underlying EIS database seem to be accessible
>> only through an ISDN line or some such.. trying to obtain details for
>> a CWS one ends up waiting for about 1-2 minutes.
>>
>> IIRC, OOO340 was branched off from DEV300m102, but I'm not sure at the
>> moment, insights anyone?
> 
> It was m106:
> 
> http://development.openoffice.org/releases/ooo340_branch.png

Indeed. We can expect that no cws from dev300 brings in anything that is
not in ooo340 already (except the relevant bits of course). IIRC there
might be some conflicts due to some master fixes that have been applied
on both code lines.

For all other CWS I woudl recommend to actually review them. EIS is not
really helpful.

Regards,
Mathias

Re: [code][repo] Integration of CWSs

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
Am 09/07/2011 03:43 PM, schrieb Eike Rathke:
> On Wednesday, 2011-09-07 00:28:29 +0200, Mathias Bauer wrote:
>
>>> | So, we can choose:
>>> |
>>> | x) first identify and remove license incompatible code to be pointed to
>>> |    clashes when the CWSs will be integrated, additionally lookout for
>>> |    new license incompatible code when integrating CWSs thereafter, or
>>> |
>>> | y) first integrate all CWSs, note down new license incompatible code the
>>> |    CWS introduces, and after all CWSs are integrated start the clean-up
>>> |    of the entire tree. CWSs rarely introduce new external code, so new
>>> |    code that would be covered by an incompatible license should be an
>>> |    exemption.
>>> |
>>> | I'd favour y) because we wouldn't have to deal with additional merge
>>> | conflicts as would be the case with x).
>>
>> I agree with you in that point - OTOH we shouldn't integrate cws into
>> the 3.4 code line that don't belong there. I hope you are talking only
>> about cws that should become a part of 3.4.
>
> Of course, yes. And after that create a 3.4.0 branch and have ongoing
> development on trunk then.
>
> Going to https://tools.services.openoffice.org/EIS2/GuestLogon
> Child workspaces Search and filtering for available 3.4 relevant CWSs
> reveals:
>
> Master OOO340, Status nominated:
> calc68
> native373

OK, next step would be the physical integration of these CWSs.

> Master OOO340, Status approved by QA: none
>
> Master OOO340, Status ready for QA:
> tkr41
> sw34bf06

Hm, what to do with CWSs in this state?

> Master DEV300, Release 3.4, Status nominated:
> ooo34gsl02  DEV300m106
> ooo34gsl01  DEV300m106
> jl167       DEV300m104
> impress212  DEV300m104
> calc67      DEV300m106

This can be (easily, if no merge conflicts) integrated, too. Maybe with 
a little rebase of the m104 CWSs.

> Master DEV300, Release 3.4, Status approved by QA:
> jsc341      DEV300m106

Next status would be to nominate this CWS; so, just integrate.

> Master DEV300, Release 3.4, Status ready for QA:
> mingwport35 DEV300m106

What to do with this?

> mh8tz       DEV300m73   (this seems to have been abandoned in 2010)

Can be skipped IMHO.

> Unfortunately parts of the underlying EIS database seem to be accessible
> only through an ISDN line or some such.. trying to obtain details for
> a CWS one ends up waiting for about 1-2 minutes.
>
> IIRC, OOO340 was branched off from DEV300m102, but I'm not sure at the
> moment, insights anyone?

It was m106:

http://development.openoffice.org/releases/ooo340_branch.png

 > So adding any DEV300m104/106 rebased CWSs would
> bring in other stuff from DEV300 as well, if one wants to really find
> out there's Master Workspaces, Fixed issues per Milestone, in the tree
> list select DEV300 and then m103, m104, ... and click on "Show all
> issues in issuezilla".

Another resource is to look into the really last release notes from 
DEV300m106 and OOO340m0 (aka 3.4 Beta) milestones:

When asking EIS si too time consuming maybe the release notes are an 
alternative:

http://development.openoffice.org/releases/DEV300m106_snapshot.html
http://development.openoffice.org/releases/3.4beta.html

For older ones see here:
http://development.openoffice.org/releases/dev_index.html

> I'll first grab calc68 and try my luck ;)
>
>    Eike

Marcus

Re: [code][repo] Integration of CWSs, calc67

Posted by Mathias Bauer <Ma...@gmx.net>.
Moin Eike,

Am 09.09.2011 16:11, schrieb Eike Rathke:

> Hi,
> 
>> calc67      DEV300m106
> 
> Doing that.
> 
>   Eike
> 

Before you waste your time with it: I will take care for mba34issues01.

Regards,
Mathias

Re: [code][repo] Integration of CWSs, calc67

Posted by Eike Rathke <oo...@erack.de>.
Hi,

> calc67      DEV300m106

Doing that.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs: native373, ooo34gsl01, ooo34gsl02

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Wednesday, 2011-09-07 15:43:13 +0200, Eike Rathke wrote:

> Master OOO340, Status nominated:
> native373
> 
> Master DEV300, Release 3.4, Status nominated:
> ooo34gsl02  DEV300m106
> ooo34gsl01  DEV300m106

Doing these.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Saturday, 2011-09-10 17:46:10 +0200, Eike Rathke wrote:

> There is one problem with this approach if the CWS was rebased to
> a milestone and already had changes, they are lumped together in one
> merge changeset,

Bah, forget what I wrote in that mail, the problem is worse, that
changeset of course adds the changes from the rebased milestone to the
CWS, including resolved merge conflicts, so wouldn't apply anyway. This
will need a new strategy.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Saturday, 2011-09-10 17:46:10 +0200, Eike Rathke wrote:

> > 2. Lookup 12fa3ee3d107 in calc68 with
> >    $ hg log | less
> >    * Verify that no OOO340 masterfix is above that revision, if there
> >      are lookup the topmost masterfix.
> > *  Next changeset on top in calc68 is af32685ae575
> 
> There is one problem with this approach if the CWS was rebased to
> a milestone and already had changes,

ok, new try..

> changeset:   276741:07f5f601d882
> parent:      276673:07982b9dd204
> parent:      276740:5851574127d1
> summary:     rebase to DEV300_m106

One of the parents is the milestone rebased to, usually the second
(verify that), in this case it is

changeset:   276740:5851574127d1
user:        Ivo Hinkelmann <ih...@openoffice.org>
date:        Tue Apr 05 13:29:57 2011 +0200
summary:     masterfix DEV300: #i10000# SRC_ROOT -> SOLARSRC

a masterfix on top of DEV300_m106

The other is the CWS, usually the first, we want to follow. So in this
example lookup the next occurence of 07982b9dd204, there the changesets
of the CWS continue. If below them is another merge set that belongs to
the CWS and not a master milestone, repeat procedure. To create the
diffs explicitly state the start and end sets for those changes in
between, in the example of ooo34gsl01 the export is

hg export --git -o %b-1-%N-%n c6da340e613c
hg export --git -o %b-2-%N-%n 859f1dffdb89:07982b9dd204
hg export --git -o %b-3-%N-%n 98a8c4a45d03:

where the first is one set after which a merge followed, the second
a series of sets up to another merge, and the last a series following
that merge until HEAD. Be sure to specify the right order, and all
serieses in the right order as well, hence the -1- -2- -3- in the names
to have them alphabetically sorted in ls and completion and such.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi Mathias,

On Saturday, 2011-09-10 21:57:05 +0200, Mathias Bauer wrote:

> >> and i completely forgot to mention that i've got a linear MQ patch
> >> series applying against OOO340 that contains the following:
> >> 
> >> ooo340fixes
> >> mingwport35
> >> 
> >> ause131
> >> ause130
> >> writerfilter10
> >> gnumake4
> >> sd2gbuild
> > 
> > Nice, will you apply and commit them?
> 
> These cws were not planned to be integrated into 3.4. Perhaps we should
> stick to that?!

Of course, yes, I didn't mean to apply them _now_. However, ooo340fixes
sounds as if it was meant for OOO340 but didn't get a 3.4 release target
yet? I didn't inspect it.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by "Pedro F. Giffuni" <gi...@tutopia.com>.
Hi;

I thought it would be a good time to bring this subject
up again.

--- On Sat, 9/10/11, Mathias Bauer wrote:
...
> 
> >> and i completely forgot to mention that i've got a
> linear MQ patch
> >> series applying against OOO340 that contains the
> following:
...
> >> 
> >> ause131
> >> ause130
> >> writerfilter10
> >> gnumake4
> >> sd2gbuild
> > 
> > Nice, will you apply and commit them?
> 
> These cws were not planned to be integrated into 3.4.
> Perhaps we should stick to that?!
> 

Now that the dust seems to have settled down, and assuming 
those CWS' don't break anything, I would like to see them
committed before we start updating the license.

cheers,

Pedro.

> Regards,
> Mathias
> 
> 

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Mathias Bauer <Ma...@gmx.net>.
Am 10.09.2011 20:31, schrieb Eike Rathke:

>> and i completely forgot to mention that i've got a linear MQ patch
>> series applying against OOO340 that contains the following:
>> 
>> ooo340fixes
>> mingwport35
>> 
>> ause131
>> ause130
>> writerfilter10
>> gnumake4
>> sd2gbuild
> 
> Nice, will you apply and commit them?

These cws were not planned to be integrated into 3.4. Perhaps we should
stick to that?!

Regards,
Mathias

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Mathias Bauer <Ma...@gmx.net>.
Am 18.09.2011 01:04, schrieb Michael Stahl:

> - mba34issues01: somebody said that he would do this one;
>   Mathias, how long do we have to wait...  :)

Done.

Regards,
Mathias


Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Raphael Bircher <r....@gmx.ch>.
Am 18.09.11 01:04, schrieb Michael Stahl:
> On 10.09.2011 20:31, Eike Rathke wrote:
>> On Saturday, 2011-09-10 20:19:54 +0200, Michael Stahl wrote:
>>> and i completely forgot to mention that i've got a linear MQ patch
>>> series applying against OOO340 that contains the following:
>>>
>>> ooo340fixes
>>> mingwport35
>>>
>>> ause131
>>> ause130
>>> writerfilter10
>>> gnumake4
>>> sd2gbuild
>> Nice, will you apply and commit them?
> have now committed all patches from the following CWSes:
>
> - ooo340fixes
> - mingwport35
> - jsc341
> - mh8tz (well, a single hunk of a single patch, the rest seemed obsolete)
> - tkr41
> - sw34bf06
> - fs34c
> - slidesorter1
> - calc69
> - automationooo340m0
>
> the following CWSes have a 3.4 target but seem to be empty:
>
> - tkr40
> - jl167
> - os152
> - svg101
>
> the following CWSes have a 3.4 target and are not integrated:
Ok, then I will start a Build on my Mac, to see if all is ok. Thanks for 
your work

Greetings Raphael


-- 
My private Homepage: http://www.raphaelbircher.ch/

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Michael Stahl <ms...@openoffice.org>.
On 10.09.2011 20:31, Eike Rathke wrote:
> On Saturday, 2011-09-10 20:19:54 +0200, Michael Stahl wrote:

>> and i completely forgot to mention that i've got a linear MQ patch
>> series applying against OOO340 that contains the following:
>>
>> ooo340fixes
>> mingwport35
>>
>> ause131
>> ause130
>> writerfilter10
>> gnumake4
>> sd2gbuild
> 
> Nice, will you apply and commit them?

have now committed all patches from the following CWSes:

- ooo340fixes
- mingwport35
- jsc341
- mh8tz (well, a single hunk of a single patch, the rest seemed obsolete)
- tkr41
- sw34bf06
- fs34c
- slidesorter1
- calc69
- automationooo340m0

the following CWSes have a 3.4 target but seem to be empty:

- tkr40
- jl167
- os152
- svg101

the following CWSes have a 3.4 target and are not integrated:

- jl166: this ugly critter contains lots of duplicate patches, and when
you finally manage to apply it the darn thing breaks the smoketest.
somebody who knows the basic interpreter should take a look at it.

- mba34issues01: somebody said that he would do this one;
  Mathias, how long do we have to wait...  :)



Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi Michael,

On Saturday, 2011-09-10 20:19:54 +0200, Michael Stahl wrote:

> >> 2. Lookup 12fa3ee3d107 in calc68 with
> >>    $ hg log | less
> >>    * Verify that no OOO340 masterfix is above that revision, if there
> >>      are lookup the topmost masterfix.
> >> *  Next changeset on top in calc68 is af32685ae575
> > 
> > There is one problem with this approach if the CWS was rebased to
> > a milestone and already had changes, they are lumped together in one
> > merge changeset, recognizable by having two parents, for example in
> > ooo34gsl01
> 
> i don't completely understand your problem, but here's how i have done it:

Maybe due to my incorrect assumptions, I should had tried first what
I was writing.. see my other mails I replied to the one you quoted.

> > for CWS in $(hg bookmarks | awk '{print $1}'); do hg export -o "/tmp/hg-cws/${CWS}_%n_%h.patch" $(hg out -q --no-merges --template " -r {node}" -r ${CWS} /home/ooo/OOO340); done
> 
> running this against a HG repo containing all CWSes bookmarked and a HG
> repo containing only OOO340 results in >1900 patches totalling about 1G.

I didn't create such a bookmark repo, I'm creating the exports from the
raw CWS repos, at least for the 3.4 ones. The remaining 1800 DEV300 CWS
patches definitely will need a different approach, your's looks
sensible.

> of course the merges cannot be converted so you'll have to re-do the
> merge conflict resolution while applying the patches :(

That'll be a PITA for DEV300..

> and i completely forgot to mention that i've got a linear MQ patch
> series applying against OOO340 that contains the following:
> 
> ooo340fixes
> mingwport35
> 
> ause131
> ause130
> writerfilter10
> gnumake4
> sd2gbuild

Nice, will you apply and commit them?

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Michael Stahl <ms...@openoffice.org>.
On 10.09.2011 17:46, Eike Rathke wrote:
> Hi,
> 
> On Friday, 2011-09-09 15:40:06 +0200, Eike Rathke wrote:
> 
>> 2. Lookup 12fa3ee3d107 in calc68 with
>>    $ hg log | less
>>    * Verify that no OOO340 masterfix is above that revision, if there
>>      are lookup the topmost masterfix.
>> *  Next changeset on top in calc68 is af32685ae575
> 
> There is one problem with this approach if the CWS was rebased to
> a milestone and already had changes, they are lumped together in one
> merge changeset, recognizable by having two parents, for example in
> ooo34gsl01

i don't completely understand your problem, but here's how i have done it:

> for CWS in $(hg bookmarks | awk '{print $1}'); do hg export -o "/tmp/hg-cws/${CWS}_%n_%h.patch" $(hg out -q --no-merges --template " -r {node}" -r ${CWS} /home/ooo/OOO340); done

running this against a HG repo containing all CWSes bookmarked and a HG
repo containing only OOO340 results in >1900 patches totalling about 1G.

of course the merges cannot be converted so you'll have to re-do the
merge conflict resolution while applying the patches :(

and i completely forgot to mention that i've got a linear MQ patch
series applying against OOO340 that contains the following:

ooo340fixes
mingwport35

ause131
ause130
writerfilter10
gnumake4
sd2gbuild

(second group is for 3.5 so can't be committed to SVN now...)

regards,
 michael


Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Friday, 2011-09-09 15:40:06 +0200, Eike Rathke wrote:

> 2. Lookup 12fa3ee3d107 in calc68 with
>    $ hg log | less
>    * Verify that no OOO340 masterfix is above that revision, if there
>      are lookup the topmost masterfix.
> *  Next changeset on top in calc68 is af32685ae575

There is one problem with this approach if the CWS was rebased to
a milestone and already had changes, they are lumped together in one
merge changeset, recognizable by having two parents, for example in
ooo34gsl01

changeset:   276741:07f5f601d882
parent:      276673:07982b9dd204
parent:      276740:5851574127d1
summary:     rebase to DEV300_m106

Applying that as one patch following the algorithm I lined out would
lose all individual commit comments, so the best is to search in the
CWS' log for cwsname: entries (in this case ooo34gsl01:) below the
merge, and add those commit comments to the merge patch's commit
comment. Hopefully the original author was trained enough to follow our
convention ;-)

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Friday, 2011-09-09 15:40:06 +0200, Eike Rathke wrote:

> Did so with a git svn repository, see another thread
> Message-ID: <j3...@dough.gmane.org>
> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201108.mbox/%3Cj3frmh$6of$1@dough.gmane.org%3E

Note that for the stg import step the git repository must have been
cloned from ooo/trunk/main, not ooo/trunk or ooo, otherwise you'll get
for each file an error "does not exist in index".

To clone main only:

git svn clone --username={yourapacheid} \
    --trunk=https://svn-master.apache.org/repos/asf/incubator/ooo/trunk/main \
    --tags=https://svn-master.apache.org/repos/asf/incubator/ooo/tags \
    --branches=https://svn-master.apache.org/repos/asf/incubator/ooo/branches \
    --revision 1162287:HEAD \
    https://svn-master.apache.org/repos/asf/incubator/ooo/trunk/main


  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs, HOW-TO with hg and git svn and stgit

Posted by Eike Rathke <oo...@erack.de>.
Hi,

On Wednesday, 2011-09-07 15:43:13 +0200, Eike Rathke wrote:

> I'll first grab calc68 and try my luck ;)

Did so with a git svn repository, see another thread
Message-ID: <j3...@dough.gmane.org>
http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201108.mbox/%3Cj3frmh$6of$1@dough.gmane.org%3E
You'll also need StGit to be installed and in the git svn repository
have once executed stg init. I took notes on each step, commands to be
executed are prefixed with $

In a temporary location do
$ hg clone -U http://hg.services.openoffice.org/OOO340
$ hg clone -U http://hg.services.openoffice.org/calc68

1. EIS data said calc68's current milestone is OOO340_m0.
   Lookup tag OOO340_m0 in OOO340 with 
   $ hg log | less
*  Result is 12fa3ee3d107.

2. Lookup 12fa3ee3d107 in calc68 with
   $ hg log | less
   * Verify that no OOO340 masterfix is above that revision, if there
     are lookup the topmost masterfix.
*  Next changeset on top in calc68 is af32685ae575

3. Export all changesets starting with that, note the trailing : colon
   $ hg export --git -o %b-%N-%n af32685ae575:
*  Result are files calc68-5-1, calc68-5-2, ...

4. In the git svn AOOo repository, for each generated patch file do:
   $ stg import --reject patchfile
   * Resolve any merge errors, merge changes from *.rej to corresponding
     source files.
   $ stg refresh
   $ stg edit
   * In editor:
     * Verify that cwsname: (here calc68:) precedes the commit message
       summary for easy identification.
     * Move the  "# User"  line to give credit below the commit message,
       separated by a blank line.
     * I replaced  "# User"  with  "Original committer:", but that's not
       important, I think I won't do that for other CWSs anymore, it's
       just another cumbersome step, and leave it as is instead.
     * Delete other lines prefixed with '#'.
     * Save & Quit.

5. Loop 4 until all patches are applied.

6. When all patches are applied:
   $ stg show -a
   * Verify that commit messages and diffs (if possible) look sane.
     * If not
       $ stg pop
         until at the desired patch and stg edit or massage source and
         stg refresh, whatever..
       $ stg push -a

7. Build and deliver the affected modules in the correct order (or top make)
   * If there are errors:
     $ stg new
     * In editor invoked for the commit message enter short summary,
       e.g.  cwsname: fix build errors
     * Save & Quit.
     7a) Fix errors.
     * Rebuild. Loop 7a until clean.
     $ stg refresh

8. No (more) errors:
   $ stg commit -a
   $ git svn rebase
   * Resolve merge errors, if any, and if so and resolved
     $ git rebase --continue

9. Finally the commit to the SVN repository:
   $ git svn dcommit
   * If you originally did  git svn clone https://svn.apache.org/...
     instead of  git svn clone https://svn-master.apache.org/...
     this may need several iterations of
     $ git svn dcommit
     $ git svn rebase
     until the mirror is in line with all commits.

10. $ git svn rebase
    to make sure your local repository is up-to-date, it should say
    "Current branch master is up to date."


I hope this is detailed enough ;-)

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs

Posted by Eike Rathke <oo...@erack.de>.
Hi Mathias,

On Wednesday, 2011-09-07 00:28:29 +0200, Mathias Bauer wrote:

> > | So, we can choose:
> > | 
> > | x) first identify and remove license incompatible code to be pointed to
> > |    clashes when the CWSs will be integrated, additionally lookout for
> > |    new license incompatible code when integrating CWSs thereafter, or
> > | 
> > | y) first integrate all CWSs, note down new license incompatible code the
> > |    CWS introduces, and after all CWSs are integrated start the clean-up
> > |    of the entire tree. CWSs rarely introduce new external code, so new
> > |    code that would be covered by an incompatible license should be an
> > |    exemption.
> > | 
> > | I'd favour y) because we wouldn't have to deal with additional merge
> > | conflicts as would be the case with x).
> 
> I agree with you in that point - OTOH we shouldn't integrate cws into
> the 3.4 code line that don't belong there. I hope you are talking only
> about cws that should become a part of 3.4.

Of course, yes. And after that create a 3.4.0 branch and have ongoing
development on trunk then.

Going to https://tools.services.openoffice.org/EIS2/GuestLogon
Child workspaces Search and filtering for available 3.4 relevant CWSs
reveals:

Master OOO340, Status nominated:
calc68
native373

Master OOO340, Status approved by QA: none

Master OOO340, Status ready for QA:
tkr41
sw34bf06


Master DEV300, Release 3.4, Status nominated:
ooo34gsl02  DEV300m106
ooo34gsl01  DEV300m106
jl167       DEV300m104
impress212  DEV300m104
calc67      DEV300m106

Master DEV300, Release 3.4, Status approved by QA:
jsc341      DEV300m106

Master DEV300, Release 3.4, Status ready for QA:
mingwport35 DEV300m106
mh8tz       DEV300m73   (this seems to have been abandoned in 2010)


Unfortunately parts of the underlying EIS database seem to be accessible
only through an ISDN line or some such.. trying to obtain details for
a CWS one ends up waiting for about 1-2 minutes.

IIRC, OOO340 was branched off from DEV300m102, but I'm not sure at the
moment, insights anyone? So adding any DEV300m104/106 rebased CWSs would
bring in other stuff from DEV300 as well, if one wants to really find
out there's Master Workspaces, Fixed issues per Milestone, in the tree
list select DEV300 and then m103, m104, ... and click on "Show all
issues in issuezilla".

I'll first grab calc68 and try my luck ;)

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: [code][repo] Integration of CWSs

Posted by Mathias Bauer <Ma...@gmx.net>.
Hi Eike,

Am 06.09.2011 18:50, schrieb Eike Rathke:

> | So, we can choose:
> | 
> | x) first identify and remove license incompatible code to be pointed to
> |    clashes when the CWSs will be integrated, additionally lookout for
> |    new license incompatible code when integrating CWSs thereafter, or
> | 
> | y) first integrate all CWSs, note down new license incompatible code the
> |    CWS introduces, and after all CWSs are integrated start the clean-up
> |    of the entire tree. CWSs rarely introduce new external code, so new
> |    code that would be covered by an incompatible license should be an
> |    exemption.
> | 
> | I'd favour y) because we wouldn't have to deal with additional merge
> | conflicts as would be the case with x).

I agree with you in that point - OTOH we shouldn't integrate cws into
the 3.4 code line that don't belong there. I hope you are talking only
about cws that should become a part of 3.4.

Regards,
Mathias

Re: [code][repo] Integration of CWSs

Posted by Rob Weir <ro...@apache.org>.
On Tue, Sep 6, 2011 at 2:23 PM, Pedro F. Giffuni <gi...@tutopia.com> wrote:
> Hello Eike;
>
> From what I discussed with Rob there is no objection
> on his side wrt to integrating the CWS'.
>

Yes, please, just don't break the universe.  The work to do the IP
review appears to be approximately the same if we do it before versus
after the CWS integration.

-Rob

> I was waiting for the FreeBSD port to go through before
> pushing this further, but in general the idea here is
> that lazy consensus applies: no one objected so the
> issue is left for those that actually know what to
> integrate.
>
> Perhaps Matthias and you, which seem to know better than
> anyone else what to integrate can agree on the order and
> just do it?
>
> Pedro.
>
> ps. yes.. I agree this email list is getting just too
> cluttered.
>
>
> --- On Tue, 9/6/11, Eike Rathke <oo...@erack.de> wrote:
>
>> From: Eike Rathke <oo...@erack.de>
>> Subject: [code][repo] Integration of CWSs
>> To: ooo-dev@incubator.apache.org
>> Date: Tuesday, September 6, 2011, 11:50 AM
>> Hi,
>>
>> And now for something completely different: CODE
>>
>> As lined out in
>>
>> Message-ID: <20...@kulungile.erack.de>
>> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201108.mbox/%3C20110831191817.GF29051@kulungile.erack.de%3E
>>
>> there are 2 possible approaches to integrate pending CWSs
>> and I favoured
>> one of them. I've seen no response to that other than
>> Pedro's, maybe my
>> suggestion was buried too deep in that thread and people
>> are too busy
>> with fighting over forum and documentation governance. I'm
>> tired of
>> wading through those piles of mails wasting the project's
>> time and
>> efforts and putting people off. In the mean time -- I'm
>> referring a time
>> span of more than the last week that passed since my mail
>> -- we could
>> have had the CWSs integrated, identified copyright/license
>> problematic
>> bits of code, and maybe even found some solutions for
>> copyleft code
>> removal to get things going.
>>
>> I offered my help with the CWSs since the beginning, hoping
>> that the
>> code repository would had been there much earlier. Summer
>> here was
>> almost non-existing with weather conditions just right to
>> keep me
>> indoors, but now I will focus on other things, spare time
>> life is short
>> enough and can be enjoyed.. as for my part that means I'll
>> enjoy staying
>> away from computer keyboards for some time starting next
>> week and have
>> fun under the sun.
>>
>> For reference, here the body of the mail mentioned above:
>>
>> | On Wednesday, 2011-08-31 09:22:46 -0400, Rob Weir wrote:
>> |
>> | > It is a trade-off.  Right now I think the most
>> important task is to
>> | > review the IP of the code and get that fixed where
>> needed.  Right now
>> | > all code in the repository is in one of these
>> categories:
>> | >
>> | > 1) Files that are in the Oracle SGA
>> | >
>> | > 2) Files that Oracle owns that are not in their
>> original SGA but will
>> | > need ot be in their new SGA
>> | >
>> | > 3) Files that are from 3rd party open source
>> modules, where the code
>> | > has a compatible license
>> | >
>> | > 4) Files that are from 3rd party open source
>> modules, where the code
>> | > has an incompatible license
>> | >
>> | > 5) Files where we cannot establish accurately their
>> origin or license
>> | >
>> | > I think the priority should be to identify all files
>> in categories #2,
>> | > #4 and #5, so we can fix them.
>> | >
>> | > If people are adding new code to the repository,
>> that introduces a new
>> | > category, of changes made by committers, under
>> ALv2.  The complexity
>> | > would be if they are modify or adding files that are
>> in categories #2,
>> | > #4, or #5.  If we can avoid that, then I don't
>> see a problem.
>> | >
>> | > What we want to avoid is having us review a given
>> AOOo module, clean
>> | > it up from IP perspective, and move on to another
>> modules, and then
>> | > have it recontaminated by merging in, via a patch or
>> CWS integration,
>> | > code that is dirty.
>> |
>> | CWS integration can be of two categories:
>> |
>> | a) CWS does not introduce new code covered by an
>> incompatible license,
>> |    should not give any problem other than merge
>> conflicts if it touches
>> |    code that was already removed for #2, #3 or
>> #4. All other code newly
>> |    introduced in such a CWS is covered by the
>> SCA/OCA and hence also
>> |    covered by the SGA, if I understood
>> correctly.
>> |
>> | b) CWS does introduce new code covered by an incompatible
>> license, will
>> |    pollute the tree anyway and those code parts
>> will have to be removed.
>> |
>> | So, we can choose:
>> |
>> | x) first identify and remove license incompatible code to
>> be pointed to
>> |    clashes when the CWSs will be integrated,
>> additionally lookout for
>> |    new license incompatible code when
>> integrating CWSs thereafter, or
>> |
>> | y) first integrate all CWSs, note down new license
>> incompatible code the
>> |    CWS introduces, and after all CWSs are
>> integrated start the clean-up
>> |    of the entire tree. CWSs rarely introduce
>> new external code, so new
>> |    code that would be covered by an
>> incompatible license should be an
>> |    exemption.
>> |
>> | I'd favour y) because we wouldn't have to deal with
>> additional merge
>> | conflicts as would be the case with x).
>>
>>
>>   Eike
>>
>> --
>>  PGP/OpenPGP/GnuPG encrypted mail preferred in all private
>> communication.
>>  Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96
>> 2F1A D073 293C 05FD
>>
>

Re: [code][repo] Integration of CWSs

Posted by "Pedro F. Giffuni" <gi...@tutopia.com>.
Hello Eike;

From what I discussed with Rob there is no objection
on his side wrt to integrating the CWS'.

I was waiting for the FreeBSD port to go through before
pushing this further, but in general the idea here is
that lazy consensus applies: no one objected so the
issue is left for those that actually know what to
integrate.

Perhaps Matthias and you, which seem to know better than
anyone else what to integrate can agree on the order and
just do it?

Pedro.

ps. yes.. I agree this email list is getting just too
cluttered.


--- On Tue, 9/6/11, Eike Rathke <oo...@erack.de> wrote:

> From: Eike Rathke <oo...@erack.de>
> Subject: [code][repo] Integration of CWSs
> To: ooo-dev@incubator.apache.org
> Date: Tuesday, September 6, 2011, 11:50 AM
> Hi,
> 
> And now for something completely different: CODE
> 
> As lined out in
> 
> Message-ID: <20...@kulungile.erack.de>
> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201108.mbox/%3C20110831191817.GF29051@kulungile.erack.de%3E
> 
> there are 2 possible approaches to integrate pending CWSs
> and I favoured
> one of them. I've seen no response to that other than
> Pedro's, maybe my
> suggestion was buried too deep in that thread and people
> are too busy
> with fighting over forum and documentation governance. I'm
> tired of
> wading through those piles of mails wasting the project's
> time and
> efforts and putting people off. In the mean time -- I'm
> referring a time
> span of more than the last week that passed since my mail
> -- we could
> have had the CWSs integrated, identified copyright/license
> problematic
> bits of code, and maybe even found some solutions for
> copyleft code
> removal to get things going.
> 
> I offered my help with the CWSs since the beginning, hoping
> that the
> code repository would had been there much earlier. Summer
> here was
> almost non-existing with weather conditions just right to
> keep me
> indoors, but now I will focus on other things, spare time
> life is short
> enough and can be enjoyed.. as for my part that means I'll
> enjoy staying
> away from computer keyboards for some time starting next
> week and have
> fun under the sun.
> 
> For reference, here the body of the mail mentioned above:
> 
> | On Wednesday, 2011-08-31 09:22:46 -0400, Rob Weir wrote:
> | 
> | > It is a trade-off.  Right now I think the most
> important task is to
> | > review the IP of the code and get that fixed where
> needed.  Right now
> | > all code in the repository is in one of these
> categories:
> | > 
> | > 1) Files that are in the Oracle SGA
> | > 
> | > 2) Files that Oracle owns that are not in their
> original SGA but will
> | > need ot be in their new SGA
> | > 
> | > 3) Files that are from 3rd party open source
> modules, where the code
> | > has a compatible license
> | > 
> | > 4) Files that are from 3rd party open source
> modules, where the code
> | > has an incompatible license
> | > 
> | > 5) Files where we cannot establish accurately their
> origin or license
> | > 
> | > I think the priority should be to identify all files
> in categories #2,
> | > #4 and #5, so we can fix them.
> | > 
> | > If people are adding new code to the repository,
> that introduces a new
> | > category, of changes made by committers, under
> ALv2.  The complexity
> | > would be if they are modify or adding files that are
> in categories #2,
> | > #4, or #5.  If we can avoid that, then I don't
> see a problem.
> | > 
> | > What we want to avoid is having us review a given
> AOOo module, clean
> | > it up from IP perspective, and move on to another
> modules, and then
> | > have it recontaminated by merging in, via a patch or
> CWS integration,
> | > code that is dirty.
> | 
> | CWS integration can be of two categories:
> | 
> | a) CWS does not introduce new code covered by an
> incompatible license,
> |    should not give any problem other than merge
> conflicts if it touches
> |    code that was already removed for #2, #3 or
> #4. All other code newly
> |    introduced in such a CWS is covered by the
> SCA/OCA and hence also
> |    covered by the SGA, if I understood
> correctly.
> | 
> | b) CWS does introduce new code covered by an incompatible
> license, will
> |    pollute the tree anyway and those code parts
> will have to be removed.
> | 
> | So, we can choose:
> | 
> | x) first identify and remove license incompatible code to
> be pointed to
> |    clashes when the CWSs will be integrated,
> additionally lookout for
> |    new license incompatible code when
> integrating CWSs thereafter, or
> | 
> | y) first integrate all CWSs, note down new license
> incompatible code the
> |    CWS introduces, and after all CWSs are
> integrated start the clean-up
> |    of the entire tree. CWSs rarely introduce
> new external code, so new
> |    code that would be covered by an
> incompatible license should be an
> |    exemption.
> | 
> | I'd favour y) because we wouldn't have to deal with
> additional merge
> | conflicts as would be the case with x).
> 
> 
>   Eike
> 
> -- 
>  PGP/OpenPGP/GnuPG encrypted mail preferred in all private
> communication.
>  Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96
> 2F1A D073 293C 05FD
>