Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: Samuel Bernardo <samuelbernardo.mail@×××××.com>
Cc: Gentoo Dev <gentoo-dev@l.g.o>, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] network sandbox challenge
Date: Fri, 27 Mar 2020 23:21:13
Message-Id: CAAr7Pr8w1m52JoNhedgHz04QY4jpu3NMCpaSAa1+6P9bhxa7Wg@mail.gmail.com
In Reply to: Re: [gentoo-dev] network sandbox challenge by Alec Warner
1 On Fri, Mar 27, 2020 at 3:59 PM Alec Warner <antarus@g.o> wrote:
2
3 >
4 >
5 > On Fri, Mar 27, 2020 at 3:10 PM Samuel Bernardo <
6 > samuelbernardo.mail@×××××.com> wrote:
7 >
8 >> Hi Alec,
9 >>
10 >> On 3/27/20 7:27 PM, Alec Warner wrote:
11 >> > The Gentoo Mirror system is basically a set of scripts that syncs the
12 >> > ::gentoo repository, enumerates all URIs in SRC_URI for all ebuilds,
13 >> > and fetches them.
14 >> > It doesn't enumerate anything in any overlays. Overlay authors are
15 >> > required to point SRC_URI somewhere useful (typically to an upstream
16 >> URI.)
17 >> >
18 >> > Gentoo Developers use "https://dev.gentoo.org/~user/distfiles" as an
19 >> > origin URI for items where either Gentoo *is* the upstream, or there
20 >> > is no upstream (e.g. a custom Gentoo patchset.) Any origin URI can be
21 >> > used; this just happens to be some free hosting that Gentoo Developers
22 >> > have access to use.
23 >> >
24 >> > -A
25 >>
26 >> Thank you for your clarification.
27 >>
28 >> So what happens when RESTRIC=mirror is used inside ebuild for an overlay
29 >> in git.gentoo.org?
30 >>
31 >
32 > I want to again re-iterate; gentoo doesn't mirror anything outside of
33 > gentoo.git, even if its hosted on git.gentoo.org. gentoo.git is literally
34 > the only repo the Gentoo Mirror system is processing.
35 >
36 > RESTRICT itself then has two potential usage sites.
37 > - MIrroring. We already determined that for overlays, no mirroring
38 > occurs, so we can ignore that for your case.
39 > - Fetching. Basically if something is RESTRICT=mirror, then we don't need
40 > to bother consulting the mirror network, because we know from the RESTRICT
41 > that mirror network will not have a copy. Fetching then proceeds from the
42 > origin URI (e.g. the URI in SRC_URI.)
43 >
44
45 I should point you at man portage(5) (search for mirrors), which has more
46 detail on how to set up a non-gentoo mirror network.
47
48 -A
49
50
51 >
52 >
53 >>
54 >> So, thinking on site reliability, should it be a good choice to upload
55 >> the necessary tar.gz, for example, to gitlab or github community
56 >> services using git lfs as an alternative to "https://dev.gentoo.org/"?
57 >>
58 >
59 > For most content served from dev.gentoo.org its not RESTRICT=mirror, so
60 > the reliability of the origin URI is not an issue in most cases (because it
61 > should be on the gentoo mirror network.)
62 > Cases where it is not include:
63 > - RESTRICT=mirror content.
64 > - Content that is pushed to an ebuild but hasn't been mirrored yet.
65 > - This can take up to 4h (or longer if the origin is unavailable.)
66 >
67 > In practice this hasn't been a big enough issue to do something more
68 > complicated. Many proposals have already been floated but none have ever
69 > been put into place.
70 > It also turns out that most of the time dev.gentoo.org is available (and
71 > so again, its reliability is not a major issue.) I understand that it
72 > recently had an incident; I'm not really convinced it was high enough
73 > impact to make operational changes.
74 >
75 > -A
76 >
77 >
78 >>
79 >> Best,
80 >>
81 >> Samuel
82 >>
83 >>
84 >>

Replies

Subject Author
Re: [gentoo-dev] network sandbox challenge Samuel Bernardo <samuelbernardo.mail@×××××.com>
Re: [gentoo-dev] network sandbox challenge Samuel Bernardo <samuelbernardo.mail@×××××.com>