JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  April 2004

STARDEV April 2004

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CvsTagging update

From:

Norman Gray <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Fri, 30 Apr 2004 17:46:33 +0100

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (251 lines)

Mark,

[long one coming up....]

On Thu, 29 Apr 2004, Mark Taylor wrote:

> I've taken a look at this now, and have some comments.

I'm relieved.  I was starting to worry that noone had noticed or, worse,
was planning to simply agree.

> Although it
> is nice to have procedures codified (especially things like what
> tag/branch names to use), some of the ones that you've written
> here are pretty heavyweight.

I would probably prefer `described in longwided detail' for the
single-components section at least.  Having actually done this once or
twice with the various autotools branches, I can confirm that the 6+5
steps described in the single-component section actually _feel_ like
only one or two steps in practice.  That is, I find this is actually a
lot more lightweight than I've made it sound.

The reason for the detail was that when I tried actually applying my own
suggestions in the previous version of this page, I found they were
ambiguous and incomplete.

Overall, tag and branch conventions are not really separable from
the `policies' or practices they're linked to -- it's not feasible
to separate the two things.  It's only because the tag conventions
correspond closely with specific practices (and there are only a few
of each), that you don't need a spelled-out `codeline policy' for each
branch, held in some conventional file.  If I see a branch called
`RELEASE-xxx', then I know what it's for and what will happen to it,
without any further bureaucracy.

It will help, therefore, to have as few policies and variants as possible.
Thus since we will _sometimes_ want to have a release branch for a
component, I suggested we should _always_ have a release branch --
no variants.  That means that if you want to look at version x.y of some
component `cpt' (I come back to this below), you know that there _will_
be a branch RELEASE-cpt-x-y and don't have to look through the list of
tags on a component to find out what's there; so you can check out the
HEAD of that branch without further thought or investigation.  That is,
the motivation was to make this process more lightweight, not less.

I don't think this is a big deal, though.  If you need to make some
bugfixes to a particular release, and there isn't a branch there
already, then you add a bp-<releasetag> tag to the repository and make
the branch at that point.  It would be feasible to not bother with the
bp- tag and just mandate that if the bp-<releasetag> tag isn't present,
then the branch must have been made from the point tagged <releasetag>.
It is starting to get a bit more complicated to explain, though, and
requires a little bit of deduction with the tags on a component to work
out what its history has been and what you're supposed to do next.

This does presume that the term `release' is applied to something more
fine-grained than the bi-annual USSC (as you observed).  On the page I
distinguish major and minor releases, which do have functionality changes,
and where the minor version number changes, from patch releases, where
there's in principle no functionality change, just a bugfix, and only
the patch number changes: m.n-r -> m.n-(r+1).  I think this is fairly
conventional terminology and practice, and it's what I at least have
tended to do, more consistently recently than before.

Why is that distinction important?  Because I strongly believe the USSC
distribution should be based on a collection of component tags (that is,
version x.y-z of that component, version u.v-w of the other) and NOT
based on simply snapshotting the entire tree.  Because development is
happening on the tree most of the time (this will become less true of
much of the classic tree, but more true of the Java parts), you can't
reliably say that the HEAD of any particular component's trunk is the
version that should go in the USSC release.

That is, the USSC release is formed, not necessarily from the bleeding
edge versions of components, but instead from a list of versions that
can be verified -- tested -- to work together.

That has two corrolaries.  First, that unit testing and integration
testing become orthogonal.  Unit testing is the assertion that `this
component discharges its interface contract correctly', in isolation
from other components; integration testing is more project-wide, and is
the assertion that `this group of components are able to work together
successfully', and is more of an assertion about interfaces than about
implementations.  The first is something that JUnit, say, can help with
fairly mechanically; the second might involve more by-hand testing, or
beta-testing, or other elaborate review that might be worth doing properly
only biannually, over some longish period (one or two months?) prior to
a USSC release.  Some longish period, crucially, in which the code base
might reasonably be expected to evolve.

Secondly, it makes it more likely that we'd have to go back to a
non-current release and fix a bug that the integration had exposed,
without changing an interface, and therefore without simply replacing
the component with the latest-and-greatest one, since this may have a
different interface or feature-set, so that the replacement might cause
other components to stop working.

Alternatively, if a bad bug appears in a distributed USSC release,
which we want to fix, then we need to drop in a patched release of the
same minor version, so we don't risk breaking the distribution as a whole.

>    I'm not very keen on the rule "All releases must be made off a
>    release branch".  My current model for TOPCAT releases (not including
>    the USSC release) is, when I've made some functionality improvement
>    which I don't believe will break anything else, or fixed a bug
>    I think has a reasonable chance of being encountered by users,
>    I rebuild, run the unit tests, and put the new copy on the web page.

Fine -- a new minor version.  Or a new patch release.

I proposed that patch releases should go on a branch for the sake of
consistency (which I'm a sucker for), but there's no real reason why
they can't go on the trunk, and create branches only when it turns out
to be necessary, either because Steve has to make pre-release tweaks
to documentation, say, or because you've had to go back to an earlier
release for the reasons mentioned above.  Slightly less consistency
means you might have to do a little more thinking about the state of the
component, but that's probably a good tradeoff for the extra convenience
of not having multiple branches.  With fewer variants of procedures,
there's less state to infer from the tags on a component.

>    Probably, I ought to be tagging it
>    as well

Since this is zero effort, yes, I think so.

>            (the tag would have to be on much or all of the starjava
>    set, not just the topcat/ dir).

Eeek, are you serious?  That means that tags get plastered all over the
(starjava part of the) repository, even on largely unrelated components.
The most trivial of the practical problems with that is that you'd end
up with pages of tags listed in the `cvs status -v' output, giving you a
hard time working out which tags are relevant, and which tags are there
simply to assert that this package (ant?) didn't break Topcat.

In other words, what you're doing with this broad-brush tagging is
simultaneously unit testing (`Topcat has reached a temporarily releasable
stage') and integration testing (`Topcat works with the other packages
in the repository').

And it's not just Topcat: if Alasdair wanted to tag some random release
of Frog, he'd also tag the entire repository; so would Peter with Splat.
And so on.  There'd be so many tags on barely-releated packages that
it would make the tag list unmanageable, because most of the tags on a
package would carry almost no information.

It's presumably fairly obvious that I do not think that the entire
starjava tree should be regarded as a single giant component.  That's
hopelessly unwieldy.  The natural components are the directories under
java/source, which have a 1-1 correspondence with uk.ac.starlink.x.*
package groups -- not individual packages, which are too closely
integrated that you'd ever want to release/update them on different
schedules.

>    Something more careful might be warranted for single-component
>    release of libraries intended for ues by third parties as
>    opposed to applications.  Again, this is not a service we
>    currently provide in any formal fashion.

The problem is that Topcat might require version x.y-z of jniast, while
Splat needs x.y-w, and their interim releases (ie, between USSCs) would
be packaged with those nominated releases of the jniast component.

The USSC would be the time when those different applications' requirements
would be reconciled, so that all the Java application components that went
into the USSC release would work with a common set of library components.

> USSC releases:
>
>    Heavyweight procedures are more defensible for a USSC release, but
>    even so, it does sound terribly complicated.  Under the proposed

Well, yes, it surprised me.

Given the principle that a USSC release consists of a list of component
versions, Steve (`release manager') has the problem of identifying which
set of components will actually work together.  I imagine that would
actually be fairly straightforward, and more-or-less consist of the
latest tagged version of each component.  The intricacies on the wiki
page are an attempt to work out the consequences of this in nitpicking
detail, to see if the principles there are actually unworkable.  I do
not claim that the procedure in that section is necessarily the best way
of implementing those ideas -- it _does_ seem too fiddly, and prodigal
with branches.

>    How about sticking with the procedure we've got this time round -
>    one release branch additional to the trunk with codeline owners
>    responsible for (a) checking in bugfixes on the release branch
>    that arise from their own or other people's testing and (b)
>    bringing the trunk up to date with the same fixes as they see fit.

That's more-or-less what I'm suggesting, except that it's pretty
effectively obscured by the forest of specifics and CVS commands
involved in working it out in detail.  Sorry 'bout that.

The only real difference from the procedure this time round is that,
rather than just snapshotting the HEAD of the entire tree, I suggest
making the branch on only a subset of components (ie, we don't include
obsolete or dropped components like adamnet in the branch), and only at
particular tags which we believe constitute a set of components which
does work successfully together.  That might mean including a version
of Topcat which is a couple of releases old, if it has pushed too far
in front of the other packages, and requires a set of library components
which break other applications.

If you already have release branches, then this step becomes easy to
document; if not, there would be extra intricacies.

Since Steve _might_ have to take a couple of shots at this (though, again,
probably not in practice), then he might need to do the make-a-branch
step more than once.  Hence the multiple branches mentioned in the wiki
page.

>    Are there reasons why the procedure from this release is deficient?

Only that it involves snapshotting the entire tree, which is probably
not what you want.

If you want to make a release by snapshotting the HEAD of the trunk,
then you're forced to require that the HEAD of the trunk be always in
a releasable state -- not just buildable, but ready for the public.
That means that _all_ developments which aren't absolutely dead-cert,
one-commit, releaseable should be done on branches, so that we end up
with more branches rather than fewer.  Either that, or you have a code
freeze, and have folk twiddling their thumbs while you wait for the HEAD
to get into a consistent state before branching it.  Tags and branches
help you avoid having to do that.

If you want a snapshot release, then we can produce it easily, every
night or every week, and if it breaks you get to keep both bits.  But I
don't think it should be the USSC release.

Users are familiar with the idea that the components in a large
distribution might not be the absolutely most recent ones, and are
happy with this in that majority of cases where they value stability
over last week's new functionality.  Debian has `stable', `testing'
and `unstable' releases.  I'm obviously not suggesting this degree of
elaboration, but it's that pattern I have in mind.

All the best,

Norman


--
---------------------------------------------------------------------------
Norman Gray                        http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK     [log in to unmask]

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager