[OE-core] Connectivity check uris
jean-marie.lemetayer at savoirfairelinux.com
Fri Jan 24 11:37:57 UTC 2020
On Jan 23, 2020, at 8:25 PM, Andre McCurdy armccurdy at gmail.com wrote:
> On Thu, Jan 23, 2020 at 7:24 AM Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
>> On Thu, 2020-01-23 at 09:59 -0500, Jean-Marie LEMETAYER wrote:
>> > On Jan 23, 2020, at 3:37 PM, Richard Purdie
>> > richard.purdie at linuxfoundation.org wrote:
>> > > On Thu, 2020-01-23 at 09:22 -0500, Jean-Marie LEMETAYER wrote:
>> > > > I understand the issue with blocked domains this is why I suggest
>> > > > the
>> > > > custom domain "connectivitycheck.openembedded.org".
>> > > >
>> > > > But I dont know if it could be an option. Can OE have a sub-
>> > > > domain
>> > > > like that? maybe using some cdn to handle the load?
>> > >
>> > > We can certainly setup domains but we can't easily get a cdn. I'd
>> > > be
>> > > worried about OE's response time too.
>> > >
>> > > > Another option will be to provide multiple URIs:
>> > > > CONNECTIVITY_CHECK_URIS ?= " \
>> > > > https://google.com \
>> > > > https://www.bing.com \
>> > > > https://www.baidu.com \
>> > > > "
>> > >
>> > > Looking at the code, I wonder if a CONNECTIVITY_CHECK_MIRRORS,
>> > > injected
>> > > into MIRRORS internally with google as the default and baidu as the
>> > > mirror would work?
> How about checking github.com? That's probably the host that a network
> dependent build needs to access most often.
It is a good idea!
To go further I have created a new GitHub repository to host a simple
index.html file using the GitHub Pages:
The URL of the page is here:
The results are good for me:
$ time ./connectivity_check.sh https://connectivitycheck.github.io
100 wget -qO- --timeout=1 --tries=1 https://connectivitycheck.github.io
100 curl -s --connect-timeout 1 https://connectivitycheck.github.io
Moreover github.com seems to be accessible in china.
(checked with: https://www.websitepulse.com/tools/china-firewall-test)
Finally the same thing can be done using GitLab. This could make it
possible to have mirrors.
More information about the Openembedded-core