-
Notifications
You must be signed in to change notification settings - Fork 38
58 lines (56 loc) · 1.75 KB
/
bdd.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
name: BDD CI
on:
workflow_call:
push:
branches:
- ci
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
bdd-tests:
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Pre-populate nix-shell
run: |
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
nix-shell --run "echo" shell.nix
- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
- name: Build binaries
run: nix-shell --run "cargo build --bins"
- name: Setup Test Pre-Requisites
run: |
sudo sysctl -w vm.nr_hugepages=$((3072+512))
sudo apt-get install linux-modules-extra-$(uname -r)
sudo modprobe nvme_tcp
- name: Run BDD Tests
run: |
nix-shell --run "deployer start --image-pull-policy always -w 60s && deployer stop"
while [ $? -eq 0 ]; do
nix-shell --run "./scripts/python/test.sh tests/bdd/features/volume/topology"
done
- name: Cleanup
if: always()
run: nix-shell --run "./scripts/python/test-residue-cleanup.sh"
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: report.xml
summary: true
display-options: a
fail-on-empty: true
title: Test results
# debugging
- name: Setup tmate session
if: ${{ failure() }}
timeout-minutes: 240
uses: mxschmitt/action-tmate@v3