From cbc940d2e2244a5e0db67accb357b53c16d57492 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Mon, 16 Sep 2024 10:23:26 -0700 Subject: [PATCH] ci: Move metrics and rate-limiter workers Since the underline bare-metal system is going to retire, we are moving the metrics and rate-limiter workers to use Azure VMs. Signed-off-by: Bo Chen --- .github/workflows/integration-metrics.yaml | 11 ++++++++++- .github/workflows/integration-rate-limiter.yaml | 15 +++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-metrics.yaml b/.github/workflows/integration-metrics.yaml index 8a847ddfd..0d4cfdea0 100644 --- a/.github/workflows/integration-metrics.yaml +++ b/.github/workflows/integration-metrics.yaml @@ -7,7 +7,7 @@ on: jobs: build: name: Tests (Metrics) - runs-on: jammy-metrics + runs-on: garm-jammy-16 env: METRICS_PUBLISH_KEY: ${{ secrets.METRICS_PUBLISH_KEY }} steps: @@ -15,6 +15,15 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Install Docker + run: | + sudo apt-get update + sudo apt-get -y install ca-certificates curl gnupg + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg + sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + sudo apt-get update + sudo apt install -y docker-ce docker-ce-cli - name: Run metrics tests timeout-minutes: 60 run: scripts/dev_cli.sh tests --metrics -- -- --report-file /root/workloads/metrics.json diff --git a/.github/workflows/integration-rate-limiter.yaml b/.github/workflows/integration-rate-limiter.yaml index 6e066764b..6dd682eb5 100644 --- a/.github/workflows/integration-rate-limiter.yaml +++ b/.github/workflows/integration-rate-limiter.yaml @@ -7,18 +7,25 @@ concurrency: jobs: build: name: Tests (Rate-Limiter) - runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-rate-limiter' }} + runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'garm-jammy-16' }} env: AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }} steps: - - name: Fix workspace permissions - if: ${{ github.event_name != 'pull_request' }} - run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE} - name: Code checkout if: ${{ github.event_name != 'pull_request' }} uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Install Docker + if: ${{ github.event_name != 'pull_request' }} + run: | + sudo apt-get update + sudo apt-get -y install ca-certificates curl gnupg + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg + sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + sudo apt-get update + sudo apt install -y docker-ce docker-ce-cli - name: Run rate-limiter integration tests if: ${{ github.event_name != 'pull_request' }} timeout-minutes: 10