Skip to content

Commit 3a2ec5a

Browse files
committed
ci: run all integration tests on PR
Signed-off-by: Saravanan D <saravanand@crusoe.ai>
1 parent a7c2f1d commit 3a2ec5a

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/integration-arm64.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,29 @@ jobs:
88
build:
99
timeout-minutes: 120
1010
name: Tests (ARM64)
11-
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'bookworm-arm64' }}
11+
runs-on: 'bookworm-arm64'
1212
steps:
1313
- name: Fix workspace permissions
14-
if: ${{ github.event_name != 'pull_request' }}
1514
run: sudo chown -R runner:runner ${GITHUB_WORKSPACE}
1615
- name: Code checkout
17-
if: ${{ github.event_name != 'pull_request' }}
1816
uses: actions/checkout@v6
1917
with:
2018
fetch-depth: 0
2119
- name: Run unit tests (musl)
22-
if: ${{ github.event_name != 'pull_request' }}
2320
run: scripts/dev_cli.sh tests --unit --libc musl
2421
- name: Load openvswitch module
25-
if: ${{ github.event_name != 'pull_request' }}
2622
run: sudo modprobe openvswitch
2723
- name: Run integration tests (musl)
28-
if: ${{ github.event_name != 'pull_request' }}
2924
timeout-minutes: 60
3025
run: scripts/dev_cli.sh tests --integration --libc musl
3126
- name: Install Azure CLI
32-
if: ${{ github.event_name != 'pull_request' }}
3327
run: |
3428
sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg
3529
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
3630
echo "deb [arch=arm64] https://packages.microsoft.com/repos/azure-cli/ bookworm main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
3731
sudo apt update
3832
sudo apt install -y azure-cli
3933
- name: Download Windows image
40-
if: ${{ github.event_name != 'pull_request' }}
4134
shell: bash
4235
run: |
4336
IMG_BASENAME=windows-11-iot-enterprise-aarch64.raw
@@ -54,9 +47,5 @@ jobs:
5447
az storage blob download --container-name private-images --file "$IMG_GZ_PATH" --name "$IMG_GZ_BLOB_NAME" --connection-string "${{ secrets.CH_PRIVATE_IMAGES }}"
5548
gzip -d $IMG_GZ_PATH
5649
- name: Run Windows guest integration tests
57-
if: ${{ github.event_name != 'pull_request' }}
5850
timeout-minutes: 30
5951
run: scripts/dev_cli.sh tests --integration-windows --libc musl
60-
- name: Skipping build for PR
61-
if: ${{ github.event_name == 'pull_request' }}
62-
run: echo "Skipping build for PR"

.github/workflows/integration-x86-64.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ jobs:
1313
runner: ['garm-jammy', "garm-jammy-amd"]
1414
libc: ["musl", 'gnu']
1515
name: Tests (x86-64)
16-
runs-on: ${{ github.event_name == 'pull_request' && !(matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') && 'ubuntu-latest' || format('{0}-16', matrix.runner) }}
16+
runs-on: ${{ format('{0}-16', matrix.runner) }}
1717
steps:
1818
- name: Code checkout
19-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
2019
uses: actions/checkout@v6
2120
with:
2221
fetch-depth: 0
2322
- name: Install Docker
24-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
2523
run: |
2624
sudo apt-get update
2725
sudo apt-get -y install ca-certificates curl gnupg
@@ -31,22 +29,14 @@ jobs:
3129
sudo apt-get update
3230
sudo apt install -y docker-ce docker-ce-cli
3331
- name: Prepare for VDPA
34-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
3532
run: scripts/prepare_vdpa.sh
3633
- name: Run unit tests
37-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
3834
run: scripts/dev_cli.sh tests --unit --libc ${{ matrix.libc }}
3935
- name: Load openvswitch module
40-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
4136
run: sudo modprobe openvswitch
4237
- name: Run integration tests
43-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
4438
timeout-minutes: 60
4539
run: scripts/dev_cli.sh tests --integration --libc ${{ matrix.libc }}
4640
- name: Run live-migration integration tests
47-
if: ${{ github.event_name != 'pull_request' || (matrix.runner == 'garm-jammy' && matrix.libc == 'gnu') }}
4841
timeout-minutes: 20
4942
run: scripts/dev_cli.sh tests --integration-live-migration --libc ${{ matrix.libc }}
50-
- name: Skipping build for PR
51-
if: ${{ github.event_name == 'pull_request' && matrix.runner != 'garm-jammy' && matrix.libc != 'gnu' }}
52-
run: echo "Skipping build for PR"

0 commit comments

Comments
 (0)