-
Notifications
You must be signed in to change notification settings - Fork 30
61 lines (51 loc) · 1.55 KB
/
poc-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: 'OPI Integration CI'
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'integration/**'
- '.github/workflows/poc-integration.yml'
pull_request:
branches: [ main ]
paths:
- 'integration/**'
- '.github/workflows/poc-integration.yml'
concurrency:
# if workflow for PR or push is already running stop it, and start new one
group: poc-integration-${{ github.ref }}
cancel-in-progress: true
jobs:
run_integration_poc:
runs-on: ubuntu-latest
steps:
- name: configure HUGE pages
run: |
sync
echo 1 | sudo tee /proc/sys/vm/drop_caches
sudo mkdir -p /mnt/huge
grep hugetlbfs /proc/mounts || sudo mount -t hugetlbfs nodev /mnt/huge
echo 1024 | sudo tee /proc/sys/vm/nr_hugepages
echo "Check and fail if not enough"
grep 1024 /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Start containers
run: ./scripts/integration.sh start
working-directory: integration
- name: Run Integration Tests
run: ./scripts/integration.sh tests
working-directory: integration
- name: Logs
if: failure()
run: ./scripts/integration.sh logs
working-directory: integration
- name: Stop containers
if: always()
run: ./scripts/integration.sh stop
working-directory: integration