From c7efad1a969c85e74eefb00bf52915ac8cac2911 Mon Sep 17 00:00:00 2001 From: JooYoung Park Date: Mon, 4 Mar 2024 18:53:13 +0800 Subject: [PATCH] fix github runners Signed-off-by: JooYoung Park --- .github/workflows/integration_tests.yml | 2 +- scripts/github_runner/deploy_runners.go | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 9ddfc2c0e..9ad574735 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -73,7 +73,7 @@ jobs: if: ${{ always() }} uses: actions/upload-artifact@v4 with: - name: ctrd-logs + name: ctrd-logs-${{ matrix.test-name }} path: | /tmp/ctrd-logs/ ${{ github.workspace }}/*.log diff --git a/scripts/github_runner/deploy_runners.go b/scripts/github_runner/deploy_runners.go index b4ca00609..63be7bc24 100644 --- a/scripts/github_runner/deploy_runners.go +++ b/scripts/github_runner/deploy_runners.go @@ -122,8 +122,15 @@ func deployRunner(host string, runnerConf RunnerConf, deployerConf *DeployerConf log.Fatalf("Failed to connect to %s@%s: %s", deployerConf.HostUsername, host, err) } + log.Debug("Remove unattended-upgrades") + out, err := client.Exec("sudo systemctl stop unattended-upgrades && sudo apt remove -y unattended-upgrades") + log.Debug(string(out)) + if err != nil { + log.Fatalf("Cannot disable unattended-upgrades") + } + log.Debugf("Cloning vHive repository on %s@%s", deployerConf.HostUsername, host) - out, err := client.Exec(fmt.Sprintf("rm -rf ./vhive ./actions-runner && git clone --depth=1 --branch=%s https://github.com/%s/vhive", deployerConf.GhBranch, deployerConf.GhOrg)) + out, err = client.Exec(fmt.Sprintf("rm -rf ./vhive ./actions-runner && git clone --depth=1 --branch=%s https://github.com/%s/vhive", deployerConf.GhBranch, deployerConf.GhOrg)) log.Debug(string(out)) if err != nil { log.Fatalf("Failed to clone vHive repository on %s@%s: %s", deployerConf.HostUsername, host, err)