mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: Add SGX, VFIO and rate limit testing to MQ
Run these workflows as part of the merge queue to help improve testing
coverage.
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
(cherry picked from commit cdafe5344d)
This commit is contained in:
12
.github/workflows/integration-rate-limiter.yaml
vendored
12
.github/workflows/integration-rate-limiter.yaml
vendored
@@ -1,21 +1,23 @@
|
|||||||
name: Cloud Hypervisor Tests (Rate-Limiter)
|
name: Cloud Hypervisor Tests (Rate-Limiter)
|
||||||
on:
|
on: [merge_group, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Tests (Rate-Limiter)
|
name: Tests (Rate-Limiter)
|
||||||
runs-on: jammy-rate-limiter
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-rate-limiter' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Fix workspace permissions
|
- name: Fix workspace permissions
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Run rate-limiter integration tests
|
- name: Run rate-limiter integration tests
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: scripts/dev_cli.sh tests --integration-rate-limiter
|
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"
|
||||||
|
|||||||
13
.github/workflows/integration-sgx.yaml
vendored
13
.github/workflows/integration-sgx.yaml
vendored
@@ -1,24 +1,27 @@
|
|||||||
name: Cloud Hypervisor Tests (SGX)
|
name: Cloud Hypervisor Tests (SGX)
|
||||||
on:
|
on: [merge_group, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Tests (SGX)
|
name: Tests (SGX)
|
||||||
runs-on: jammy-sgx
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-sgx' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Fix workspace permissions
|
- name: Fix workspace permissions
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Run SGX integration tests
|
- name: Run SGX integration tests
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: scripts/dev_cli.sh tests --integration-sgx
|
run: scripts/dev_cli.sh tests --integration-sgx
|
||||||
- name: Run SGX integration tests for musl
|
- name: Run SGX integration tests for musl
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: scripts/dev_cli.sh tests --integration-sgx --libc musl
|
run: scripts/dev_cli.sh tests --integration-sgx --libc musl
|
||||||
|
- name: Skipping build for PR
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
run: echo "Skipping build for PR"
|
||||||
|
|||||||
13
.github/workflows/integration-vfio.yaml
vendored
13
.github/workflows/integration-vfio.yaml
vendored
@@ -1,24 +1,27 @@
|
|||||||
name: Cloud Hypervisor Tests (VFIO)
|
name: Cloud Hypervisor Tests (VFIO)
|
||||||
on:
|
on: [merge_group, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Tests (VFIO)
|
name: Tests (VFIO)
|
||||||
runs-on: jammy-vfio
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-vfio' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Fix workspace permissions
|
- name: Fix workspace permissions
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Run VFIO integration tests
|
- name: Run VFIO integration tests
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: scripts/dev_cli.sh tests --integration-vfio
|
run: scripts/dev_cli.sh tests --integration-vfio
|
||||||
- name: Run VFIO integration tests for musl
|
- name: Run VFIO integration tests for musl
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: scripts/dev_cli.sh tests --integration-vfio --libc musl
|
run: scripts/dev_cli.sh tests --integration-vfio --libc musl
|
||||||
|
- name: Skipping build for PR
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
run: echo "Skipping build for PR"
|
||||||
|
|||||||
Reference in New Issue
Block a user