From 3d348e632e3465ddfd24ca597d17ec0f9c0917c3 Mon Sep 17 00:00:00 2001 From: Martin Krastev Date: Tue, 26 Mar 2024 15:27:17 +0200 Subject: [PATCH] svga/ci: workaround vmware farm's inability to use public DNS 8.8.8.8 This workaround is termporary and will be dropped once the farm is moved to its permament location. Signed-off-by: Martin Krastev Reviewed-by: David Heidelberg Reviewed-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/utils/lava_job_definition.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/lava/utils/lava_job_definition.py b/.gitlab-ci/lava/utils/lava_job_definition.py index 6186dba0a7c..1a75df0b5af 100644 --- a/.gitlab-ci/lava/utils/lava_job_definition.py +++ b/.gitlab-ci/lava/utils/lava_job_definition.py @@ -212,7 +212,13 @@ class LAVAJobDefinition: # - exec .gitlab-ci/common/init-stage2.sh with open(self.job_submitter.first_stage_init, "r") as init_sh: - run_steps += [x.rstrip() for x in init_sh if not x.startswith("#") and x.rstrip()] + # For vmware farm, patch nameserver as 8.8.8.8 is off limit. + # This is temporary and will be reverted once the farm is moved. + if self.job_submitter.mesa_job_name.startswith("vmware-"): + run_steps += [x.rstrip().replace("nameserver 8.8.8.8", "nameserver 10.25.198.110") for x in init_sh if not x.startswith("#") and x.rstrip()] + else: + run_steps += [x.rstrip() for x in init_sh if not x.startswith("#") and x.rstrip()] + # We cannot distribute the Adreno 660 shader firmware inside rootfs, # since the license isn't bundled inside the repository if self.job_submitter.device_type == "sm8350-hdk":