Skip to content

Commit

Permalink
DNM: Test rate-limiter and metrics workers on PR
Browse files Browse the repository at this point in the history
Signed-off-by: Bo Chen <[email protected]>
  • Loading branch information
likebreath committed Sep 16, 2024
1 parent e4596ae commit 21ac064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/integration-metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: Cloud Hypervisor Tests (Metrics)
on:
push:
branches:
- main
on: pull_request

jobs:
build:
name: Tests (Metrics)
runs-on: garm-jammy
env:
METRICS_PUBLISH_KEY: ${{ secrets.METRICS_PUBLISH_KEY }}
steps:
- name: Code checkout
uses: actions/checkout@v4
Expand All @@ -18,5 +13,3 @@ jobs:
- name: Run metrics tests
timeout-minutes: 60
run: scripts/dev_cli.sh tests --metrics -- -- --report-file /root/workloads/metrics.json
- name: Upload metrics report
run: 'curl -X PUT https://ch-metrics.azurewebsites.net/api/publishmetrics -H "x-functions-key: $METRICS_PUBLISH_KEY" -T ~/workloads/metrics.json'
8 changes: 1 addition & 7 deletions .github/workflows/integration-rate-limiter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@ concurrency:
jobs:
build:
name: Tests (Rate-Limiter)
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'garm-jammy' }}
runs-on: garm-jammy
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: Run rate-limiter integration tests
if: ${{ github.event_name != 'pull_request' }}
timeout-minutes: 10
run: scripts/dev_cli.sh tests --integration-rate-limiter
- name: Skipping build for PR
if: ${{ github.event_name == 'pull_request' }}
run: echo "Skipping build for PR"

0 comments on commit 21ac064

Please sign in to comment.