From: Jeremy Olexa <darkside@gentoo.org>
To: <gentoo-scm@lists.gentoo.org>
Subject: Re: [gentoo-scm] GIT->rsync
Date: Mon, 19 Apr 2010 16:24:43 +0000 [thread overview]
Message-ID: <4c46cffc84e68feae364c62cc7a11e2a@localhost> (raw)
In-Reply-To: <20100419173128.33ae2090@pomiot.lan>
On Mon, 19 Apr 2010 17:31:28 +0200, Michał Górny <gentoo@mgorny.alt.pl>
wrote:
> Hello,
Hello, overall I am confused about what you are asking or proposing. Some
comments inline.
>
> Another important topic related to the git migration is how rsync tree
> is supposed to be created. Here is how I see it.
>
> I. GIT repository side.
>
> The only related mechanism at the GIT repository would be a post-commit
> hook, sending a signal to the rsync server. The signal would only
> notify the rsync side that the repository needs to be pulled, without
> further information.
On the rsync staging server, it should/will be time interval based.
>
> II. rsync server side.
>
> The main part of the server layout is a hybrid git-rsync tree. It
> starts as a GIT repository checkout, which is being filled with missing
> data (i.e. ebuild checksums) by rsync scripting.
I feel like this should be solved by a new manifest proposal not in the
git->rsync generation. Eg. MetaManifests or ThinManifests.
> After receiving the signal, the rsync scripting pulls from
> the repository and updates the working copy. Afterwards, it determines
> which files have changed (using diffstat?) and calls repoman (or other
> script) to regenerate the full Manifests for the related directories.
repoman seems like it would be too expensive for this.
> That's the simplest scenario. In fact, as our working tree would
> contain Manifests changed for rsync users, most of the merges would
> result in conflicts -- which should be resolved through always using
> the remote version (as our own is going to be recreated anyway).
>
> The problem is that git doesn't seem to like having conflicts with
> local uncommited changes. Is there a way to force it to replace them
> with the remote versions?
>
> There would be probably some more problems related to file removal too.
Where would the file removal problems be? rsync (emerge --sync) will
handle this like normal.
>
> Another useful thing would be atomization of the rsync updates to avoid
> the possibility of downloading Thin Manifests by end user. The simplest
> solution for that would be to keep two distinct trees, with working
> tree being rsynced onto public tree after the updates are done.
This is handled on the rsync staging host as well. All downstream mirrors
will get an "atomic tree" from the staged copy.
>
> But that requires keeping two copies of the tree, and doesn't provide
> full atomization anyway (it's still possible that end-user downloads
> partially copied directory, i.e. with new ebuilds and Manifest not yet
> updated).
>
> Thus, it'd be best to have the atomization (i.e. commit-update)
> behaviour on filesystem level. If that's not possible, we could still
> use poor man's solution similar to VGA page switching - two switching
> rsync trees, one being used by end-users and the other being updated.
In short, let's work out a defined Manifest proposal before worrying about
the rsync generation for mirrors. I think that this proposal is just
re-highlighting a known issue. Issue being, current Manifests are not
ideal.
-Jeremy
prev parent reply other threads:[~2010-04-19 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 15:31 [gentoo-scm] GIT->rsync Michał Górny
2010-04-19 16:24 ` Jeremy Olexa [this message]
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=4c46cffc84e68feae364c62cc7a11e2a@localhost \
--to=darkside@gentoo.org \
--cc=gentoo-scm@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox