You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tiles.apache.org by Nicolas LE BAS <ma...@nlebas.net> on 2012/05/03 17:25:27 UTC

Changing the subversion structure

Hi,
One last thing we'll need for release is to change the structure of our 
projects in subversion.

In detail right now we have:

framework
+ branches
   + TILES_2_2_X
+ tags
   + tiles-2.2.2
+ trunk
   + tiles-autotag
   + tiles-parent
   + tiles-request

But since we're managing Autotag and Request as separate projects with 
separate versioning (starting with JIRA), our target is:

framework
+ branches
   + TILES_2_2_X
   + TILES_3_0_X
+ tags
   + tiles-2.2.2
   + tiles-3.0.0
+ trunk
   + content of framework/trunk/tiles-parent here
tiles-autotag
+ branches
   + AUTOTAG_1_0_X
+ tags
   + tiles-autotag-1.0.0
+ trunk
   + content of framework/trunk/tiles-autotag here
tiles-request
+ branches
   + TREQ_1_0_X
+ tags
   + tiles-request-1.0.0
+ trunk
   + content of framework/trunk/tiles-request here

Nick.
PS: we should probably request additional git mirrors afterwards

Re: Changing the subversion structure

Posted by Greg Reddin <gr...@gmail.com>.
On Fri, May 4, 2012 at 6:02 PM, Mick Semb Wever <mc...@apache.org> wrote:
>
> That's correct, as long as we don't collide with apache's distaste of
> umbrella projects. ref
> http://thread.gmane.org/gmane.comp.apache.tiles.devel/180/focus=182

Sorry, I haven't had time to follow this closely. But I wanted to make
a couple of points about the umbrella issue AIUI.

* I don't think we're in any danger of that. I also don't think we
need to be pushing too hard at the moment to get the subprojects
pushed out. We are in the middle of a rebuild of our own community
right now and I don't think we need to try too hard to start new ones
:-)

* The problem with the umbrella project is one of oversight. When you
have a large community where most of the people only care about small
portions of the code you end up with one of two situations: either
lots of folks are voting for releases they didn't have anything to do
with and don't plan to support, or you have releases being held up
because they can't get enough of the PMC to vote on them. It also
tends to hide when a portion of the project is not getting adequate
oversight. The PMC as a whole is large and diverse enough to make it
appear there is adequate oversight, but there may be a subproject
that's not getting any love.

I think our approach should be to keep an eye on things and see if
communities develop around these subprojects. As they do we may spin
them off as their own TLPs.

Greg

Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-07 02:55 PM, Mick Semb Wever wrote:
>>> No no. I just wanted to highlight the above issue.
>>
>> So, is it OK if I ask infra now to match the git mirrors with the new
>> structure?
>
> Yeah, go for it Nick.

Updating the git mirrors might take some time, see INFRA-4766.

Re: Changing the subversion structure

Posted by Mick Semb Wever <mc...@apache.org>.
> > No no. I just wanted to highlight the above issue.
> 
> So, is it OK if I ask infra now to match the git mirrors with the new 
> structure? 

Yeah, go for it Nick.

~mck

-- 
"Each and everyone of us are Angels with only one wing. We need to hold
on to each other befor we can fly." Leo F. Buscaglia 

| http://github.com/finn-no | http://tech.finn.no |

Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-07 10:42 AM, Mck wrote:
>> We can try and restore the tiles-reactor project if you wish,
>
> No no. I just wanted to highlight the above issue.

So, is it OK if I ask infra now to match the git mirrors with the new 
structure?


Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-07 10:42 AM, Mck wrote:
> On Mon, 2012-05-07 at 09:55 -0400, Nicolas LE BAS wrote:
>>> No, it doesn't help with tiles-request-* depending on
>>> tiles-autotag-core-runtime and tiles-autotag-* depending on
>>> tiles-request-api :-(
>>
>> I'm not sure I understand your point. BTW, in order to be inclusive,
>> tiles-* depends on those two artifacts, too.
>
> You can't build the tiles-request-1.0 project without
> tiles-autotag-core-runtime-1.0
>
> And you can't build the tiles-autotag-1.0 project without
> tiles-request-api-1.0
>
> In the case where you are developing both projects forward things get
> difficult. Normally this won't be the case though.

Actually the dependency is currently very thin, even if maven doesn't 
show it: tiles-autotag only needs the interface 
org.apache.tiles.request.Request to be there. It doesn't even calls its 
methods directly, it just passes the request along to the appropriate 
tag model. So as long as we don't remove Request, we should be able to 
evolve tiles-request without impacting autotag. Sounds rather safe :)

So in the case we want to develop both projects forward, we have to 
start with tiles-autotag-core-runtime.

Just being curious: do you currently have plans to develop the autotag SPI?

Nick.

Re: Changing the subversion structure

Posted by Mck <mc...@apache.org>.
On Mon, 2012-05-07 at 09:55 -0400, Nicolas LE BAS wrote:
> > No, it doesn't help with tiles-request-* depending on
> > tiles-autotag-core-runtime and tiles-autotag-* depending on
> > tiles-request-api :-(
> 
> I'm not sure I understand your point. BTW, in order to be inclusive, 
> tiles-* depends on those two artifacts, too.

You can't build the tiles-request-1.0 project without
tiles-autotag-core-runtime-1.0

And you can't build the tiles-autotag-1.0 project without
tiles-request-api-1.0

In the case where you are developing both projects forward things get
difficult. Normally this won't be the case though.

> We can try and restore the tiles-reactor project if you wish, 

No no. I just wanted to highlight the above issue.

~mck


Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-06 02:02 AM, Mick Semb Wever wrote:
> On Fri, 2012-05-04 at 20:08 -0400, Nicolas LE BAS wrote:
>>
>> But actually it's only the first release that is painful. Once version
>> 1.0.0 is out, it should be much easier to move on.
>
> No, it doesn't help with tiles-request-* depending on
> tiles-autotag-core-runtime and tiles-autotag-* depending on
> tiles-request-api :-(

I'm not sure I understand your point. BTW, in order to be inclusive, 
tiles-* depends on those two artifacts, too.

But I can't see why this would be painful. After all, we also depend on 
servlets, slf4j, commons-*, freemarker, velocity, even spring... and 
that's working very smoothly.

My point is: the first release is painful because you have to build 
everything from source for lack of pre-built artifacts. After the first 
release, we can just deal with those the same way we deal any 
dependency. And we should if we expect request and autotag to become 
separate projects in the future. We do expect that, don't we?

We can try and restore the tiles-reactor project if you wish, but it 
would be difficult to maintain (as successive versions, tags, and 
branches) because the 3 projects beneath will evolve separately. And I'm 
afraid it would only encourage more inter-project dependencies.

Nick.

Re: Changing the subversion structure

Posted by Mick Semb Wever <mc...@apache.org>.
On Fri, 2012-05-04 at 20:08 -0400, Nicolas LE BAS wrote:
> 
> But actually it's only the first release that is painful. Once version
> 1.0.0 is out, it should be much easier to move on. 

No, it doesn't help with tiles-request-* depending on
tiles-autotag-core-runtime and tiles-autotag-* depending on
tiles-request-api :-(

~mck

-- 
"People only get lost in thought because it is unfamiliar territory."
Paul Fix 

| http://github.com/finn-no | http://tech.finn.no |

Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-04 07:02 PM, Mick Semb Wever wrote:
>
>> My understanding is that it was the idea to spin out request and autotag
>> as separate projects upon release. The poms in request, autotag and
>> tiles-parent were designed not to rely on a project in the first place
>> (they're based on tiles-master directly).
>
> That's correct, as long as we don't collide with apache's distaste of
> umbrella projects. ref
> http://thread.gmane.org/gmane.comp.apache.tiles.devel/180/focus=182
>
> It's funny in that thread that we never touched on the subversion
> layout, i'm glad one way or another that you brought it to attention.

Thanks for the pointer. I admit I didn't read the dev archives that far 
into the past.

I'm not sure I understand the details of the "umbrella" issue, why 
apache dislikes it.

I agree with Antonio about the release being a nightmare with the 
separate version management, and the "one command build" was very useful 
until the release indeed.

But actually it's only the first release that is painful. Once version 
1.0.0 is out, it should be much easier to move on. Actually it may even 
be easier, since we won't have to release tiles-request if we just want 
to add a new option to the tiles.xml syntax.

And the "one command build" will be much less needed once the basic 
dependencies (like tiles-request-api) are available in maven central. 
Soon! In the mean time, the old structure is still available under the 
tag tiles-3-reactor.

Nick.

Re: Changing the subversion structure

Posted by Mick Semb Wever <mc...@apache.org>.
> My understanding is that it was the idea to spin out request and autotag 
> as separate projects upon release. The poms in request, autotag and 
> tiles-parent were designed not to rely on a project in the first place 
> (they're based on tiles-master directly). 

That's correct, as long as we don't collide with apache's distaste of
umbrella projects. ref
http://thread.gmane.org/gmane.comp.apache.tiles.devel/180/focus=182

It's funny in that thread that we never touched on the subversion
layout, i'm glad one way or another that you brought it to attention.

~mck

-- 
“The test of a first-rate intelligence is the ability to hold two
opposed ideas in mind at the same time and still retain the ability to
function.” - F. Scott Fitzgerald 

| http://github.com/finn-no | http://tech.finn.no |

Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-04 06:20 PM, Mick Semb Wever wrote:
>
> But for such a big change would it not have been better to discuss it
> beforehand?

Yes, you're right, I'm sorry.
I'm getting used to have my propositions unchallenged here; but I should 
remember that low activity on the list doesn't mean I'm right.

> I certainly don't take all this for granted and I can't
> remember (i haven't yet searched this list) if were there any remarks
> from Antonio on the topic earlier on? (he did most of the work while it
> was all in the sandbox and must have had thoughts on all this).

My understanding is that it was the idea to spin out request and autotag 
as separate projects upon release. The poms in request, autotag and 
tiles-parent were designed not to rely on a project in the first place 
(they're based on tiles-master directly).

Nick.

Re: Changing the subversion structure

Posted by Mick Semb Wever <mc...@apache.org>.
> > I do like your proposal but am curious to why you say it must change.
> 
> 1. Theory and project lifecycle
> 
> A tag encompasses the whole source tree, i.e. all 3 projects request, 
> autotag and tiles would be present in each of the 3 tags request-1.0.0, 
> autotag-1.0.0, and tiles-3.0.0.

That's not necessarily how it works.
Each project in trunk comes with its own scm details, (also
maven-release-plugin can be configured using remoteTagging=false).
It's common enough scenario and i can't see any convention one way or
the other.

When you run mvn release:prepare it can copy only that project into the
tags directory. For example a mvn release:prepare on
framework/trunk/tiles-request can copy it to
framework/tags/tiles-request-1.0 where the latter folder would contain
only tiles-request stuff.

> Of course subversion can technically support whatever you want, but that 
> is the convention behind the branches/tags/trunk structure, and people 
> will expect us to adhere to it (starting with git-svn).

I don't think subversion or maven-release-plugin is a problem here. I
see tags of subprojects often enough in tags/ to be uncertain of what's
convention or not, and there's enough examples within apache eg aries,
avalon/excalibur, cocoon, continuum, empire-db, mahout, etc. 

> It's not a big issue when talking about tags, because tags are supposed 
> to be immutable. The problem is more significant when talking about 
> branches.
> Suppose you fix a bug in TILES_3_0_X and another in REQUEST_1_0_X, you 
> don't have a common source tree with both bugs resolved.

This isn't a problem if tags and branches only contain the specific
subproject.
  
> 2. Tooling
> 
> We're using maven, which relies heavily on conventions. Usually you can 
> use your own conventions with some effort, but that creates larger poms 
> and more difficult to maintain.

It is a situation that's often needed when you don't
autoVersionSubmodules (which is the convention oddly enough). Like
contrib, impl, or plugin subprojects often need extra releases made. For
example what if there's enough bugfixes in tiles-autotag-freemarker that
warrants a 1.0.1 release, we're not forced to release all of
tiles-autotag as 1.0.1. (although some rules for semantic versioning
would be wise if we're going to do individual releases). but does this
mean that we therefore also need trunk|tags|branches under
tiles-autotag-freemarker?


The reason i do like the changes you've already made is because we
already have "framework" above trunk/ and it doesn't make sense to have
request and autotag underneath that. The new structure does make a lot
more sense.
But for such a big change would it not have been better to discuss it
beforehand? I certainly don't take all this for granted and I can't
remember (i haven't yet searched this list) if were there any remarks
from Antonio on the topic earlier on? (he did most of the work while it
was all in the sandbox and must have had thoughts on all this).

~mck
 
-- 
"Physics is to math what sex is to masturbation." Richard Feynman 

| http://github.com/finn-no | http://tech.finn.no |

Re: Changing the subversion structure

Posted by Nicolas LE BAS <ma...@nlebas.net>.
On 12-05-03 04:39 PM, Mick Semb Wever wrote:
> I do like your proposal but am curious to why you say it must change.

1. Theory and project lifecycle

A tag encompasses the whole source tree, i.e. all 3 projects request, 
autotag and tiles would be present in each of the 3 tags request-1.0.0, 
autotag-1.0.0, and tiles-3.0.0.

Of course subversion can technically support whatever you want, but that 
is the convention behind the branches/tags/trunk structure, and people 
will expect us to adhere to it (starting with git-svn).

It's not a big issue when talking about tags, because tags are supposed 
to be immutable. The problem is more significant when talking about 
branches.

Suppose you fix a bug in TILES_3_0_X and another in REQUEST_1_0_X, you 
don't have a common source tree with both bugs resolved. Eventually the 
Tiles project in REQUEST_1_0_X or the Request project in TILES_3_0_X 
will become unusable, which will lead to one of these two solutions:
- Merging both branches with each other, which in the long term gets 
really messy.
- Have the developper ignore the projects which do not match the branch, 
which is error prone.

2. Tooling

We're using maven, which relies heavily on conventions. Usually you can 
use your own conventions with some effort, but that creates larger poms 
and more difficult to maintain.

Specifically, I'm not sure how mvn 
release:prepare/release:branch/release:perform would behave with all 
projects in a single svn tree. These commands are supposed to create the 
required tags/branches automatically, and automatically switch between 
them. I'm not sure how the current version of maven behaves in this 
situation, and I'm not sure how the future version will behave.

Even if it works or if it could be made to work, it is certainly not as 
well tested as the standard convention. And I see no point in taking 
chances there, I would really hate it if mvn release failed :)

Re: Changing the subversion structure

Posted by Mick Semb Wever <mc...@apache.org>.
On Thu, 2012-05-03 at 11:25 -0400, Nicolas LE BAS wrote:
> framework
> + branches
>    + TILES_2_2_X
> + tags
>    + tiles-2.2.2
> + trunk
>    + tiles-autotag
>    + tiles-parent
>    + tiles-request 


Why is this a problem?
 subdirectories of trunk can/will still be "tagged" separately.
eg

+ tags
   + tiles-request-1.0
   + tiles-autotag-1.0
   + tiles-3.0
+ trunk
   + tiles-autotag
   + tiles-parent
   + tiles-request


I do like your proposal but am curious to why you say it must change.

~mck

-- 
"You must be the change you wish to see in the world." Gandhi 

| http://github.com/finn-no | http://tech.finn.no |