oeqa/sdk/cases/autotools.py: use gnu mirror instead of main server
PATCH 2/2 oeqa/sdk/cases/autotools.py: use gnu mirror instead of main server
ftp.gnu.org is the main server of the GNU project, however download speed can vary greatly based on one's location.
Using ftpmirror.gnu.org should redirect the request to the closest up-to-date mirror, which should result sometimes in significantly faster download speed, depending on one's location. This should also distribute the traffic more across the mirrors.
This information was sourced from https://www.gnu.org/prep/ftp.html
--- meta/lib/oeqa/sdk/cases/autotools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/sdk/cases/autotools.py +1 -1
@@ -27,7 +27,7 @@ class AutotoolsTest(OESDKTestCase): pmv = parallel_make_value((self.td.get('PARALLEL_MAKE') or '').split()) with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: - tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz") + tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftpmirror.gnu.org/gnu/cpio/cpio-2.15.tar.gz") opts = {} opts["source"] = os.path.join(testdir, "cpio-2.15")
Signature · 1 line
2.43.0
Quoted 20 lines · Steve Sakoman via lists.openembedded.org
ftp.gnu.org is the main server of the GNU project, however download speed can vary greatly based on one's location.
Using ftpmirror.gnu.org should redirect the request to the closest up-to-date mirror, which should result sometimes in significantly faster download speed, depending on one's location. This should also distribute the traffic more across the mirrors.
This information was sourced from https://www.gnu.org/prep/ftp.html
Signed-off-by Steve Sakoman <[email protected]>---
meta/lib/oeqa/sdk/cases/autotools.py | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta/lib/oeqa/sdk/cases/autotools.py +0
-0@@ -27,7 +27,7 @@ class AutotoolsTest(OESDKTestCase): pmv = parallel_make_value((self.td.get('PARALLEL_MAKE') or '').split())
Quoted 8 lines
withtempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir)as testdir:
- tarball =self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz")+ tarball =self.fetch(testdir, self.td["DL_DIR"], "https://ftpmirror.gnu.org/gnu/cpio/cpio-2.15.tar.gz")
opts = {}
opts["source"] =os.path.join(testdir, "cpio-2.15")
This patch is good, thanks.
This code is supposed to be using a cached copy from DL_DIR. If it is failing on older releases on the autobuilder, it might mean the version of the tarball is missing from the mirror for that release. Might be worth checking...
Cheers,
Richard