From: Andreas Ericsson <ae@op5.se>
To: Asaf <asafs2000@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: Tagging stable releases
Date: Wed, 15 Apr 2009 10:33:13 +0200 [thread overview]
Message-ID: <49E59BC9.5060906@op5.se> (raw)
In-Reply-To: <23045562.post@talk.nabble.com>
Asaf wrote:
> Hello,
>
> I'm creating many branches, checkout code, make changes, etc..
> At the end, I always merge these branches to the master branch and delete
> them when I finish,
>
>
> At the point where my local master repo seems to be stable, I push the
> changes to an origin repo that is public.
>
>
> I guess this is a standard cycle, right?
>
There are many standard cycles. This is one of them :)
>
> What I'm confused about is how to tag correctly versions that are stable,
> Should I locally just add a tag and push the tag to the public repo?
>
Yes.
>
> Is it enough to use a lightweight tagging for tagging a certain commit as a
> release?
That's up to you. I'd recommend against it, because the default update hooks
disallow lightweight tags from being pushed.
We use signed tags for all releases, so we know and can verify who tagged
what. I guess it's a corporate thing to desire the capability of saying
"It was *HIS* fault, not mine!", and signing a tag means you sign the tree
as it is at sign-time with all the history leading up to it.
> Is it possible later on to checkout a tag, make a change and push the change
> into the tagged version?
>
No. Consider published tags immutable in git, please. Imagine the confusion
and headache you'd get from bug-reports if version 4.6.3 is not the same
code everywhere. What you can and should do is to:
* create a branch at the location of the old tag
* make whatever changes are necessary
* test as necessary
* cut a new release with your changes
At $dayjob, we have an update hook preventing tags without the "-beta$X"
suffix from being pushed unless it points to an already tagged commit,
so our workflow goes like this:
1 hack hack hack
2 beta-tag
3 buildbot builds beta package and sends it off to qa
4 qa responds with "ok to release"
5 we stable-tag the exact same version we shipped to qa
6 buildbot builds stable tag and copies it to "to-be-released" directory
7 release-manager pushes the release-button once changelogs and stuff
are in place
If qa says "hey, it's broken", we repeat steps 1-4 until we get "ok".
If we accidentally tag something as stable while it's broken, we *can*
go back and re-create the tag before step 7 is done. We've found out
that it's usually more trouble than it's worth though, because there's
always a small uncertainty that qa gets the new code on all his machines,
and the bug we nearly released may not always show up on all platforms.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
next prev parent reply other threads:[~2009-04-15 8:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 18:43 Tagging stable releases Asaf
2009-04-15 8:33 ` Andreas Ericsson [this message]
2009-04-15 16:15 ` Stefan Näwe
2009-04-15 18:03 ` Andreas Ericsson
2009-10-28 12:17 ` Tim Mazid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49E59BC9.5060906@op5.se \
--to=ae@op5.se \
--cc=asafs2000@yahoo.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.