summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2021-05-11 15:20:49 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-05-11 17:07:21 +0200
commitfbebe7377dc00bd0627588f48d37b9b2658b6532 (patch)
treec0c3912501ed87ae5e7669d79624f786a0302546
parent2a3d1f497152505e2d27febf1ff5329e3a277164 (diff)
downloadopenvswitch-fbebe7377dc00bd0627588f48d37b9b2658b6532.tar.gz
github: Fix up malformed /etc/hosts.
For some reason /etc/hosts in GHA now contains a plain text line like this: Note: Don't Delete this file. Also, don't remove this line. ... This breaks libunbound and makes a series of unit tests to emit following warning: |00001|dns_resolve|WARN|Failed to read etc/hosts: syntax error Working around this issue by removing a bad line from /etc/hosts until this fixed properly by GitHub team. This in combination with other fixes should unblock CI. Bug for virtual-environments: https://github.com/actions/virtual-environments/issues/3353 Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com>
-rw-r--r--.github/workflows/build-and-test.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 884965997..c1b88264c 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -112,6 +112,12 @@ jobs:
- name: checkout
uses: actions/checkout@v2
+ - name: fix up /etc/hosts
+ # https://github.com/actions/virtual-environments/issues/3353
+ run: |
+ cat /etc/hosts
+ sudo sed -i "/don't remove this line/d" /etc/hosts || true
+
- name: create ci signature file for the dpdk cache key
if: matrix.dpdk != '' || matrix.dpdk_shared != ''
# This will collect most of DPDK related lines, so hash will be different