Skip to contentSkip to conversation

Enable network sanity checks for Poky derived distros

PATCH Applied Joshua Lock 2 participants 4 messages Aug 25, 2011 – Aug 31, 2011

lore
Share & tools
lore
#0 lore raw

cover Enable network sanity checks for Poky derived distros

With recent enhancements to the network sanity check we can now enable this for Poky derived distributions without significant impact to the user.

The following changes since commit 6c2b7beac3cd23ed44bd3e195c6360a0932876bf:

classes/sanity: enhance the network connectivity test (2011-08-25 08:51:30 -0700)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib josh/connection-test
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=josh/connection-test

Joshua Lock (1):
poky.conf: perform network sanity check by default for poky distros

 meta-yocto/conf/distro/poky.conf |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.6
#1 lore raw

PATCH 1/1 poky.conf: perform network sanity check by default for poky distros

Add CONNECTIVITY_CHECK_URIS to run the network connectivity sanity test for http, https and git sources.

The variable is soft-assigned so that it's easily overrideable.

---
 meta-yocto/conf/distro/poky.conf |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
meta-yocto/conf/distro/poky.conf +6 -1
index c5fc3b9..46b22f4 100644
@@ -54,5 +54,10 @@ ftp://.*/.*      http://autobuilder.yoctoproject.org/sources/ \n \
 http://.*/.*     http://autobuilder.yoctoproject.org/sources/ \n \
 https://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n"
 
-
+# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
+# fetch from the network (and warn you if not). To disable the test set
+# the variable to be empty.
+CONNECTIVITY_CHECK_URIS ?= "git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD \
+                          https://eula-downloads.yoctoproject.org/index.php \
+                          http://bugzilla.yoctoproject.org/report.cgi"
 
Signature · 1 line
1.7.6
#2 lore raw

Re: [PATCH 1/1] poky.conf: perform network sanity check by default for poky distros

Quoted 16 lines · Joshua Lock

Add CONNECTIVITY_CHECK_URIS to run the network connectivity sanity test for http, https and git sources.

The variable is soft-assigned so that it's easily overrideable.

---
 meta-yocto/conf/distro/poky.conf |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
meta-yocto/conf/distro/poky.conf +0 -0
index c5fc3b9..46b22f4 100644
@@ -54,5 +54,10 @@ ftp://.*/.*      http://autobuilder.yoctoproject.org/sources/ \n \
 http://.*/.*     http://autobuilder.yoctoproject.org/sources/ \n \

meta-yocto/conf/distro/poky.conf ftp://.*/.* http://autobuilder.yoctoproject.org/sources/ \n \ · line 63

Quoted 10 lines
meta-yocto/conf/distro/poky.conf +6 -1
 https://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n"
 
-
+# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
+# fetch from the network (and warn you if not). To disable the test set
+# the variable to be empty.
+CONNECTIVITY_CHECK_URIS ?= "git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD \
+                          https://eula-downloads.yoctoproject.org/index.php \
+                          http://bugzilla.yoctoproject.org/report.cgi"
 

Any feedback on this patch?

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre
#3 lore raw

Re: [PATCH 1/1] poky.conf: perform network sanity check by default for poky distros

Quoted 19 lines · Joshua Lock
Quoted 18 lines · Joshua Lock

Add CONNECTIVITY_CHECK_URIS to run the network connectivity sanity test for http, https and git sources.

The variable is soft-assigned so that it's easily overrideable.

---
 meta-yocto/conf/distro/poky.conf |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
meta-yocto/conf/distro/poky.conf +0 -0
index c5fc3b9..46b22f4 100644
@@ -54,5 +54,10 @@ ftp://.*/.*      http://autobuilder.yoctoproject.org/sources/ \n \
 http://.*/.*     http://autobuilder.yoctoproject.org/sources/ \n \
 https://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n"
 
Quoted 10 lines

meta-yocto/conf/distro/poky.conf ftp://.*/.* http://autobuilder.yoctoproject.org/sources/ \n \ · line 63

Quoted 8 lines
meta-yocto/conf/distro/poky.conf +6 -1
-
+# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
+# fetch from the network (and warn you if not). To disable the test set
+# the variable to be empty.
+CONNECTIVITY_CHECK_URIS ?= "git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD \
+                          https://eula-downloads.yoctoproject.org/index.php \
+                          http://bugzilla.yoctoproject.org/report.cgi"
 

Any feedback on this patch?

Merged to master, thanks.

(it had slipped out the queue somehow, sorry)

Richard