Skip to contentSkip to conversation

ci: Switch to Google nameserver

RFC PATCH In review Jan Kiszka 1 participant 3 messages Aug 2, 2021 – Aug 10, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

RFC PATCH 1/1 ci: Switch to Google nameserver

From: Jan Kiszka <[email protected]>

This is a temporary hack: Our AWS runners see a lot of DNS errors for deb.debian.org. Let's see if they are less with this server.

---

Seems to work, though only one run passed so far. Go this way for now?

 ci/gitlab-ci-base.yml | 1 +
 1 file changed, 1 insertion(+)
ci/gitlab-ci-base.yml +1 -0
index 2638dec..ce9c800 100644
@@ -39,6 +39,7 @@ default:
   extends: .add-proxy-config
   stage: build
   script:
+    - sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
     - echo "Building kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml"
     - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml
     - if [ -n "${USE_S3_BUCKET}" ]; then scripts/deploy_to_aws.sh ${TARGET}; fi
Signature · 1 line
2.31.1
author
#1 lore raw
Quoted 19 lines · Jan Kiszka via Xenomai

From: Jan Kiszka <[email protected]>

This is a temporary hack: Our AWS runners see a lot of DNS errors for deb.debian.org. Let's see if they are less with this server.

---

Seems to work, though only one run passed so far. Go this way for now?

 ci/gitlab-ci-base.yml | 1 +
 1 file changed, 1 insertion(+)
ci/gitlab-ci-base.yml +0 -0
index 2638dec..ce9c800 100644

ci/gitlab-ci-base.yml default: · line 45

Quoted 7 lines
ci/gitlab-ci-base.yml +1 -0
@@ -39,6 +39,7 @@ default:
   extends: .add-proxy-config
   stage: build
   script:
+    - sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
     - echo "Building kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml"
     - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml
     - if [ -n "${USE_S3_BUCKET}" ]; then scripts/deploy_to_aws.sh ${TARGET}; fi

Seems you found the reason in our AWS setup. I'm dropping this from next again to confirm that we are safe.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
author
#2 lore raw
Quoted 14 lines · Jan Kiszka via Xenomai
Quoted 13 lines · Jan Kiszka via Xenomai

From: Jan Kiszka <[email protected]>

This is a temporary hack: Our AWS runners see a lot of DNS errors for deb.debian.org. Let's see if they are less with this server.

---

Seems to work, though only one run passed so far. Go this way for now?

 ci/gitlab-ci-base.yml | 1 +
 1 file changed, 1 insertion(+)
Quoted 17 lines

ci/gitlab-ci-base.yml default: · line 45

Quoted 13 lines
ci/gitlab-ci-base.yml +1 -0
index 2638dec..ce9c800 100644
@@ -39,6 +39,7 @@ default:
   extends: .add-proxy-config
   stage: build
   script:
+    - sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
     - echo "Building kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml"
     - kas build kas.yml:board-${TARGET}.yml${XENOMAI_BUILD_OPTION}${LINUX_BUILD_OPTION}${BUILD_OPTIONS}:opt-debug.yml
     - if [ -n "${USE_S3_BUCKET}" ]; then scripts/deploy_to_aws.sh ${TARGET}; fi

Seems you found the reason in our AWS setup. I'm dropping this from next again to confirm that we are safe.

Back and forth: As the issue reoccurred with this removed (only the one before the image runs was apparently resolved), this is back into next again. So far, it looks good.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux