-
Notifications
You must be signed in to change notification settings - Fork 510
116 lines (95 loc) · 3.22 KB
/
pmem_tests.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Run all tests on PMEM.
#
# This workflow is run on 'self-hosted' runners.
name: PMEM tests
on:
workflow_dispatch:
schedule:
# run this job at 18:00 UTC every day
- cron: '0 18 * * *'
jobs:
# Test the default build with the basic test suite.
Basic:
strategy:
matrix:
VALGRIND: [0, 1]
name: Basic ${{ matrix.VALGRIND == 0 && 'w/o Valgrind' || 'w/ Valgrind' }}
uses: ./.github/workflows/pmem_test_matrix.yml
with:
# Exclude all Valgrind tests. All tests employing Valgrind tooling are run
# in the dedicated workflows below.
force_enable: '["none"]'
valgrind: ${{ matrix.VALGRIND }}
# Test the default build with force-enabled Valgrind tooling for (persistent)
# memory error detection.
Memory:
uses: ./.github/workflows/pmem_test_matrix.yml
with:
force_enable: '["pmemcheck", "memcheck"]'
valgrind: 1
# Test the default build with force-enabled Valgrind tooling for thread error
# detection.
Thread:
uses: ./.github/workflows/pmem_test_matrix.yml
with:
force_enable: '["drd", "helgrind"]'
valgrind: 1
# 9h = 7h20m (the longest workflow execution time) + ~20% leeway.
timeout_minutes: 540
# Static builds are tested in this limited scope only.
static:
name: Static
if: github.repository == 'pmem/pmdk'
runs-on: [self-hosted, rhel]
strategy:
fail-fast: false
matrix:
build: [static_debug, static_nondebug]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test prepare
uses: ./.github/actions/pmem_test_prepare
with:
valgrind: 1
- name: Test run
uses: ./.github/actions/pmem_test_run
with:
build: ${{ matrix.build }}
# Testing the fault injection scenarios requires including this capability
# at compile time.
fault_injection:
name: Fault injection
if: github.repository == 'pmem/pmdk'
runs-on: [self-hosted, rhel]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test prepare
uses: ./.github/actions/pmem_test_prepare
with:
fault_injection: '1'
valgrind: 1
- name: Test run
uses: ./.github/actions/pmem_test_run
with:
build: nondebug # only the production build is considered
test_label: fault_injection # only dedicated scenarios
# By default, PMDK is built with NDCTL in order to provide RAS features.
# This build is only viable as long as DAOS builds PMDK with NDCTL_ENABLE=n
# https://github.com/daos-stack/pmdk/pull/12
# It should be removed as soon as following PR is merged
# https://github.com/daos-stack/pmdk/pull/35
ndctl_enable_n:
name: Without ndctl
if: github.repository == 'pmem/pmdk'
runs-on: [self-hosted, rhel]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test prepare
uses: ./.github/actions/pmem_test_prepare
with:
ndctl_enable: n
valgrind: 0
- name: Test run
uses: ./.github/actions/pmem_test_run
with:
build: nondebug # only the production build is considered