Skip to content

Commit ddc3ca7

Browse files
committed
dev: workflows: s/kdevops/mm-ci
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
1 parent f101782 commit ddc3ca7

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

.github/workflows/mm-ci-init.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# - Installs your Linux kernel tree on them
1212
# - Builds all of your test requirements for your Linux kernel tree
1313

14-
name: Base kdevops workflow
14+
name: Base mm-ci workflow
1515

1616
on:
1717
workflow_call: # Makes this workflow reusable
@@ -22,15 +22,15 @@ on:
2222

2323
jobs:
2424
setup:
25-
name: Setup kdevops environment
25+
name: Setup mm-ci environment
2626
runs-on: [self-hosted, Linux, X64]
2727
steps:
2828
- name: Checkout Linux branch
2929
run: |
3030
LINUX_TREE="https://github.com/${{ github.repository }}"
3131
LINUX_TREE_REF="${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}"
3232
mkdir -p devops && cd devops
33-
git clone $LINUX_TREE --reference /mirror/linux.git/ --depth=5 linux
33+
git clone $LINUX_TREE --reference /mnt/devops/git/linux/.git/ --depth=5 linux
3434
cd linux
3535
git fetch origin $LINUX_TREE_REF
3636
git checkout $LINUX_TREE_REF

.github/workflows/mm-ci-run.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
#
33
# Most simple Linux kernel subsystems can be tested with this target
44
# test setup. For more elaborates tests look for a topic branch under the
5-
# kdevops-ci tree. For example to test a filesystem look at the fstests
5+
# mm-ci-ci tree. For example to test a filesystem look at the fstests
66
# branch.
77

8-
name: Run generic kdevops CI tests
8+
name: Run generic mm-ci CI tests
99

1010
on:
1111
push:
@@ -19,13 +19,38 @@ jobs:
1919
uses: ./.github/workflows/mm-ci-init.yml
2020
secrets: inherit
2121

22-
run-tests:
22+
base-config:
2323
needs: setup
24-
name: Run CI tests
24+
name: Create base kernel configuration
25+
runs-on: [self-hosted, Linux, X64]
26+
steps:
27+
- name: Create base kernel configuration
28+
run: |
29+
cd devops/linux
30+
echo "CONFIG_DEBUG_VM=y" > mm-ci.config
31+
echo "CONFIG_TRANSPARENT_HUGEPAGE=y" >> mm-ci.config
32+
echo "CONFIG_USERFAULTFD=y" >> mm-ci.config
33+
echo "CONFIG_HUGETLBFS=y" >> mm-ci.config
34+
35+
build:
36+
needs: base-config
37+
name: Build kernel
38+
runs-on: [self-hosted, Linux, X64]
39+
steps:
40+
- name: Build kernel
41+
run: |
42+
cd devops/linux
43+
vng --build --config mm-ci.config --verbose
44+
cd tools/testing/selftests/mm
45+
make -k -j$(nproc)
46+
47+
run-tests:
48+
needs: build
49+
name: Run selftests
2550
runs-on: [self-hosted, Linux, X64]
2651
steps:
27-
- name: Run CI tests
52+
- name: Run selftests
2853
run: |
2954
cd devops/linux
30-
make defconfig
55+
vng --exec "cd tools/testing/selftests/mm; sudo ./run_vmtests.sh"
3156
echo "ok" > ci.result

0 commit comments

Comments
 (0)