Skip to content

Commit e50a996

Browse files
committed
Rename devdax.yml to dax.yml
Rename devdax.yml to dax.yml and add info about FSDAX. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent ddd572b commit e50a996

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

.github/workflows/devdax.yml renamed to .github/workflows/dax.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
# This workflow builds and tests the devdax memory provider.
2-
# It requires a DAX device (e.g. /dev/dax0.0) configured in the OS.
3-
# This DAX device should be specified using the
1+
#
2+
# This workflow builds and tests the DEVDAX memory provider
3+
# and the file memory provider with FSDAX.
4+
# It requires:
5+
# - a DAX device (e.g. /dev/dax0.0) and
6+
# - a FSDAX device (e.g. /dev/pmem1)
7+
# configured and mounted in the OS.
8+
#
9+
# The DAX device should be specified using the
410
# UMF_TESTS_DEVDAX_PATH and UMF_TESTS_DEVDAX_SIZE environment variables.
11+
#
12+
# The FSDAX device should be mounted in the OS (e.g. /mnt/pmem1)
13+
# and the UMF_TESTS_FSDAX_PATH environment variable
14+
# should contain a path to a file o this FSDAX device.
15+
#
516

6-
name: DevDax
17+
name: Dax
718

819
on: [workflow_call]
920

1021
permissions:
1122
contents: read
1223

1324
env:
14-
UMF_TESTS_DEVDAX_NAMESPACE : "0.0"
25+
DEVDAX_NAMESPACE : "0.0"
1526
BUILD_DIR : "${{github.workspace}}/build"
1627
INSTL_DIR : "${{github.workspace}}/../install-dir"
1728

1829
jobs:
19-
devdax:
30+
dax:
2031
name: Build
2132
# run only on upstream; forks may not have a DAX device
2233
if: github.repository == 'oneapi-src/unified-memory-framework'
@@ -27,12 +38,13 @@ jobs:
2738

2839
runs-on: ["DSS-DEVDAX", "DSS-Ubuntu"]
2940
steps:
30-
- name: Check if the devdax exists, print out UMF_TESTS_DEVDAX_PATH and UMF_TESTS_DEVDAX_SIZE
41+
- name: Check configuration of the DEVDAX
3142
run: |
32-
ndctl list -N --device-dax
33-
ls -al /dev/dax${UMF_TESTS_DEVDAX_NAMESPACE}
34-
echo UMF_TESTS_DEVDAX_PATH="/dev/dax${UMF_TESTS_DEVDAX_NAMESPACE}"
35-
echo UMF_TESTS_DEVDAX_SIZE="$(ndctl list --namespace=namespace${UMF_TESTS_DEVDAX_NAMESPACE} | grep size | cut -d':' -f2 | cut -d',' -f1)"
43+
echo DEVDAX_NAMESPACE="${{env.DEVDAX_NAMESPACE}}"
44+
ndctl list --namespace=namespace${{env.DEVDAX_NAMESPACE}} --device-dax
45+
ls -al /dev/dax${{env.DEVDAX_NAMESPACE}}
46+
echo UMF_TESTS_DEVDAX_PATH="/dev/dax${{env.DEVDAX_NAMESPACE}}"
47+
echo UMF_TESTS_DEVDAX_SIZE="$(ndctl list --namespace=namespace${{env.DEVDAX_NAMESPACE}} | grep size | cut -d':' -f2 | cut -d',' -f1)"
3648
3749
- name: Checkout
3850
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -62,9 +74,9 @@ jobs:
6274
- name: Build UMF
6375
run: cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j $(nproc)
6476

65-
- name: Run only devdax tests
77+
- name: Run the DEVDAX tests
6678
working-directory: ${{env.BUILD_DIR}}
6779
run: >
68-
UMF_TESTS_DEVDAX_PATH="/dev/dax${UMF_TESTS_DEVDAX_NAMESPACE}"
69-
UMF_TESTS_DEVDAX_SIZE="$(ndctl list --namespace=namespace${UMF_TESTS_DEVDAX_NAMESPACE} | grep size | cut -d':' -f2 | cut -d',' -f1)"
80+
UMF_TESTS_DEVDAX_PATH="/dev/dax${{env.DEVDAX_NAMESPACE}}"
81+
UMF_TESTS_DEVDAX_SIZE="$(ndctl list --namespace=namespace${{env.DEVDAX_NAMESPACE}} | grep size | cut -d':' -f2 | cut -d',' -f1)"
7082
ctest -C ${{matrix.build_type}} -R devdax -V

.github/workflows/pr_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
uses: ./.github/workflows/basic.yml
8989
DevDax:
9090
needs: [FastBuild]
91-
uses: ./.github/workflows/devdax.yml
91+
uses: ./.github/workflows/dax.yml
9292
Sanitizers:
9393
needs: [FastBuild]
9494
uses: ./.github/workflows/sanitizers.yml

0 commit comments

Comments
 (0)