From b387f9a9df84aabe19600ab9d7e1796b8b8f9d6f Mon Sep 17 00:00:00 2001 From: Slach Date: Mon, 24 Jul 2023 20:26:55 +0500 Subject: [PATCH] try to improve github actions stability --- test/integration/integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index 902a48f1..f008bef3 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -439,6 +439,7 @@ func TestFIPS(t *testing.T) { defer ch.chbackend.Close() fipsBackupName := fmt.Sprintf("fips_backup_%d", rand.Int()) r.NoError(dockerExec("clickhouse", "rm", "-fv", "/etc/apt/sources.list.d/clickhouse.list")) + r.NoError(dockerExec("clickhouse", "bash", "-c", "find /etc/apt/ -type f -exec sed -i 's/ru.archive.ubuntu.com/archive.ubuntu.com/g' {} +")) installDebIfNotExists(r, "clickhouse", "curl", "gettext-base", "bsdmainutils", "dnsutils", "git", "ca-certificates") r.NoError(dockerCP("config-s3-fips.yml", "clickhouse:/etc/clickhouse-backup/config.yml.fips-template")) r.NoError(dockerExec("clickhouse", "update-ca-certificates")) @@ -2456,7 +2457,7 @@ func installDebIfNotExists(r *require.Assertions, container string, pkgs ...stri container, "bash", "-xec", fmt.Sprintf( - "export DEBIAN_FRONTEND=noniteractive; if [[ '%d' != $(dpkg -l | grep -c -E \"%s\" ) ]]; then rm -fv /etc/apt/sources.list.d/clickhouse.list; apt-get -y update; apt-get install --no-install-recommends -y %s; fi", + "export DEBIAN_FRONTEND=noniteractive; if [[ '%d' != $(dpkg -l | grep -c -E \"%s\" ) ]]; then rm -fv /etc/apt/sources.list.d/clickhouse.list; find /etc/apt/ -type f -exec sed -i 's/ru.archive.ubuntu.com/archive.ubuntu.com/g' {} +; apt-get -y update; apt-get install --no-install-recommends -y %s; fi", len(pkgs), "^ii\\s+"+strings.Join(pkgs, "|^ii\\s+"), strings.Join(pkgs, " "), ), ))