Skip to contentSkip to conversation

support/testing: use again the default BR2_BACKUP_SITE

PATCH Applied Thomas Petazzoni via buildroot 1 participant 3 messages Aug 18, 2025 – Sep 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing: use again the default BR2_BACKUP_SITE

This reverts commit 559bb33ae71dd2358ca2314ccb24b56cc3809fc1, which was disabling BR2_BACKUP_SITE in our tests with the following reasoning:

support/testing: do not use s.b.o

Currently, the runtime tests will use the sources.buildroot.org backup mirror, which is the default setup.

However, in some cases we do not want to use the backup site, because we want to ensure that the download actually works.

This is the case for vendored packages, like cargo or golang packages, for whbich we want to check that gthe download still works when we update the rust or go versions, or when our download helpers change.

So, disable the use of the backup site in all runtime tests, and drop the no-longer needed special cases.

Cc Thomas Petazzoni <[email protected]>

However, not using the backup site is causing a LOT of random failures in Gitlab CI, making the results barely usable. Since it's more important to get real failures than random ones due to download issues, let's re-enable BR2_BACKUP_SITE in our testing infrastructure.

---
 support/testing/infra/basetest.py               | 1 -
 support/testing/tests/download/test_git.py      | 5 ++++-
 support/testing/tests/download/test_gitforge.py | 5 ++++-
 support/testing/tests/download/test_ssh.py      | 4 +++-
 support/testing/tests/package/test_rust.py      | 1 +
 5 files changed, 12 insertions(+), 4 deletions(-)
support/testing/infra/basetest.py +0 -1
index 4f020e8a93..9fb9dffc53 100644
@@ -37,7 +37,6 @@ class BRConfigTest(unittest.TestCase):
         super(BRConfigTest, self).__init__(names)
         self.testname = self.__class__.__name__
         self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
-        self.config += '\nBR2_BACKUP_SITE=""\n'
         self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir)
         self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
 
support/testing/tests/download/test_git.py +4 -1
index 3cf98f6456..ba52e03ef5 100644
@@ -7,7 +7,10 @@ import infra
 
 
 class GitTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
     gitremotedir = infra.filepath("tests/download/git-remote")
     gitremote = None
 
support/testing/tests/download/test_gitforge.py +4 -1
index 477c365a34..e1ac35ec67 100644
@@ -5,7 +5,10 @@ import infra
 
 
 class GitforgeTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
 
     def setUp(self):
         super(GitforgeTestBase, self).setUp()
support/testing/tests/download/test_ssh.py +3 -1
index 7d6ac3aaf7..126002a355 100644
@@ -7,7 +7,9 @@ import infra
 
 
 class SSHTestBase(infra.basetest.BRConfigTest):
-    config = infra.basetest.MINIMAL_CONFIG
+    config = infra.basetest.MINIMAL_CONFIG + '''
+BR2_BACKUP_SITE=""
+'''
     sshd_test_dir = infra.filepath("tests/download/sshd")
     sshd = None
 
support/testing/tests/package/test_rust.py +1 -0
index 8160cb6053..763125ca20 100644
@@ -70,6 +70,7 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_RIPGREP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
+        BR2_BACKUP_SITE=""
         """
 
     def setUp(self):
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Thomas, All,

Le 18/08/2025 à 22:27, Thomas Petazzoni via buildroot a écrit :

Quoted 19 lines

This reverts commit 559bb33ae71dd2358ca2314ccb24b56cc3809fc1, which was disabling BR2_BACKUP_SITE in our tests with the following reasoning:

support/testing: do not use s.b.o

Currently, the runtime tests will use the sources.buildroot.org backup mirror, which is the default setup.

However, in some cases we do not want to use the backup site, because we want to ensure that the download actually works.

This is the case for vendored packages, like cargo or golang packages, for whbich we want to check that gthe download still works when we update the rust or go versions, or when our download helpers change.

So, disable the use of the backup site in all runtime tests, and drop the no-longer needed special cases.

Quoted 7 lines
Cc Thomas Petazzoni <[email protected]>

However, not using the backup site is causing a LOT of random failures in Gitlab CI, making the results barely usable. Since it's more important to get real failures than random ones due to download issues, let's re-enable BR2_BACKUP_SITE in our testing infrastructure.

Applied to master, thanks.

Best regards,
Romain

Quoted 74 lines
---
 support/testing/infra/basetest.py               | 1 -
 support/testing/tests/download/test_git.py      | 5 ++++-
 support/testing/tests/download/test_gitforge.py | 5 ++++-
 support/testing/tests/download/test_ssh.py      | 4 +++-
 support/testing/tests/package/test_rust.py      | 1 +
 5 files changed, 12 insertions(+), 4 deletions(-)
support/testing/infra/basetest.py +0 -1
index 4f020e8a93..9fb9dffc53 100644
@@ -37,7 +37,6 @@ class BRConfigTest(unittest.TestCase):
         super(BRConfigTest, self).__init__(names)
         self.testname = self.__class__.__name__
         self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
-        self.config += '\nBR2_BACKUP_SITE=""\n'
         self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir)
         self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
 
support/testing/tests/download/test_git.py +4 -1
index 3cf98f6456..ba52e03ef5 100644
@@ -7,7 +7,10 @@ import infra
 
 
 class GitTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
     gitremotedir = infra.filepath("tests/download/git-remote")
     gitremote = None
 
support/testing/tests/download/test_gitforge.py +4 -1
index 477c365a34..e1ac35ec67 100644
@@ -5,7 +5,10 @@ import infra
 
 
 class GitforgeTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
 
     def setUp(self):
         super(GitforgeTestBase, self).setUp()
support/testing/tests/download/test_ssh.py +3 -1
index 7d6ac3aaf7..126002a355 100644
@@ -7,7 +7,9 @@ import infra
 
 
 class SSHTestBase(infra.basetest.BRConfigTest):
-    config = infra.basetest.MINIMAL_CONFIG
+    config = infra.basetest.MINIMAL_CONFIG + '''
+BR2_BACKUP_SITE=""
+'''
     sshd_test_dir = infra.filepath("tests/download/sshd")
     sshd = None
 
support/testing/tests/package/test_rust.py +0 -0
index 8160cb6053..763125ca20 100644

support/testing/tests/package/test_rust.py class TestRustVendoring(infra.basetest.BRConfigTest): · line 76

Quoted 7 lines
support/testing/tests/package/test_rust.py +1 -0
@@ -70,6 +70,7 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_RIPGREP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
+        BR2_BACKUP_SITE=""
         """
 
     def setUp(self):

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Thomas Petazzoni via buildroot

In reply of:

Quoted 22 lines

This reverts commit 559bb33ae71dd2358ca2314ccb24b56cc3809fc1, which was disabling BR2_BACKUP_SITE in our tests with the following reasoning:

support/testing: do not use s.b.o

Currently, the runtime tests will use the sources.buildroot.org backup mirror, which is the default setup.

However, in some cases we do not want to use the backup site, because we want to ensure that the download actually works.

This is the case for vendored packages, like cargo or golang packages, for whbich we want to check that gthe download still works when we update the rust or go versions, or when our download helpers change.

So, disable the use of the backup site in all runtime tests, and drop the no-longer needed special cases.

Cc Thomas Petazzoni <[email protected]>
Quoted 6 lines

However, not using the backup site is causing a LOT of random failures in Gitlab CI, making the results barely usable. Since it's more important to get real failures than random ones due to download issues, let's re-enable BR2_BACKUP_SITE in our testing infrastructure.

Applied to 2025.02.x & 2025.05.x. Thanks

Quoted 86 lines
---
 support/testing/infra/basetest.py               | 1 -
 support/testing/tests/download/test_git.py      | 5 ++++-
 support/testing/tests/download/test_gitforge.py | 5 ++++-
 support/testing/tests/download/test_ssh.py      | 4 +++-
 support/testing/tests/package/test_rust.py      | 1 +
 5 files changed, 12 insertions(+), 4 deletions(-)
support/testing/infra/basetest.py +0 -1
index 4f020e8a93..9fb9dffc53 100644
@@ -37,7 +37,6 @@ class BRConfigTest(unittest.TestCase):
         super(BRConfigTest, self).__init__(names)
         self.testname = self.__class__.__name__
         self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
-        self.config += '\nBR2_BACKUP_SITE=""\n'
         self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir)
         self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
 
support/testing/tests/download/test_git.py +4 -1
index 3cf98f6456..ba52e03ef5 100644
@@ -7,7 +7,10 @@ import infra
 
 
 class GitTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
     gitremotedir = infra.filepath("tests/download/git-remote")
     gitremote = None
 
support/testing/tests/download/test_gitforge.py +4 -1
index 477c365a34..e1ac35ec67 100644
@@ -5,7 +5,10 @@ import infra
 
 
 class GitforgeTestBase(infra.basetest.BRConfigTest):
-    config = ""
+    config = \
+        """
+        BR2_BACKUP_SITE=""
+        """
 
     def setUp(self):
         super(GitforgeTestBase, self).setUp()
support/testing/tests/download/test_ssh.py +3 -1
index 7d6ac3aaf7..126002a355 100644
@@ -7,7 +7,9 @@ import infra
 
 
 class SSHTestBase(infra.basetest.BRConfigTest):
-    config = infra.basetest.MINIMAL_CONFIG
+    config = infra.basetest.MINIMAL_CONFIG + '''
+BR2_BACKUP_SITE=""
+'''
     sshd_test_dir = infra.filepath("tests/download/sshd")
     sshd = None
 
support/testing/tests/package/test_rust.py +1 -0
index 8160cb6053..763125ca20 100644
@@ -70,6 +70,7 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_RIPGREP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
+        BR2_BACKUP_SITE=""
         """
 
     def setUp(self):
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot