forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
174 lines (166 loc) · 5.7 KB
/
testsuites.yml
File metadata and controls
174 lines (166 loc) · 5.7 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# SPDX-FileCopyrightText: 2024 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
name: linux-riscv-ci-testsuites
defaults:
run:
shell: bash -leo pipefail {0}
on: pull_request
concurrency:
group: ci-test-${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build-kernel:
if: ${{ endsWith(github.head_ref, '_manual') }}
runs-on: self-hosted
timeout-minutes: 50400 # 35 days
container:
image: ghcr.io/linux-riscv/linaro-tuxrun-dispatcher-riscv64:latest
volumes:
- /home/github/ccache:/build/ccache
- /home/github/gitref:/build/gitref
steps:
- name: Configure git
run: |
git config --global --add safe.directory '*'
- name: Checkout git
run: |
mkdir -p /build/my-linux
cd /build/my-linux
git clone --filter=tree:0 --reference /build/gitref https://github.com/${{ github.repository }} .
git fetch origin ${{ github.event.pull_request.head.sha }}
git reset --hard ${{ github.event.pull_request.head.sha }}
git log -1
- name: Build kernel
continue-on-error: true
run: |
mkdir -p /build/logs/
cd /build/my-linux && bash .github/scripts/build_ubuntu_defconfig.sh
- name: Collect build log
uses: actions/upload-artifact@v4
with:
name: test-logs
path: /build/logs/*
- name: Publish kernel
uses: actions/upload-artifact@v4
# TODO create modules directory and kernel separately
with:
name: test-kernel
path: /build/rv64__testsuites__plain__gcc/*
- name: Publish CI files
uses: actions/upload-artifact@v4
with:
include-hidden-files: true
name: ci-files
path: /build/my-linux/.github/*
run-ltp:
needs: build-kernel
if: ${{ endsWith(github.head_ref, '_manual') }}
runs-on: self-hosted
timeout-minutes: 50400 # 35 days
container:
image: ghcr.io/linux-riscv/linaro-tuxrun-dispatcher-riscv64:latest
volumes:
- /home/github/ccache:/build/ccache
- /home/github/gitref:/build/gitref
- /tmp:/tmp
steps:
- name: Download pre-built kernel
uses: actions/download-artifact@v4
with:
name: test-kernel
path: /build/test-kernel
- name: Download CI files
uses: actions/download-artifact@v4
with:
name: ci-files
path: /build/my-linux/.github
- name: Run checks
env:
SQUAD_TOKEN: ${{ secrets.SQUAD_TOKEN }}
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
GITHUB_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
mkdir -p /build/logs/
cd /build/my-linux && bash .github/scripts/ltp.sh /build/test-kernel | tee -i /build/logs/all.log
- name: Collect logs and json squad
uses: actions/upload-artifact@v4
with:
name: test-logs-ltp
path: |
/build/logs/*
/build/squad_json/*
run-libhugetlbfs:
needs: build-kernel
if: ${{ endsWith(github.head_ref, '_manual') }}
runs-on: self-hosted
timeout-minutes: 50400 # 35 days
container:
image: ghcr.io/linux-riscv/linaro-tuxrun-dispatcher-riscv64:latest
volumes:
- /home/github/ccache:/build/ccache
- /home/github/gitref:/build/gitref
- /tmp:/tmp
steps:
- name: Download pre-built kernel
uses: actions/download-artifact@v4
with:
name: test-kernel
path: /build/test-kernel
- name: Download CI files
uses: actions/download-artifact@v4
with:
name: ci-files
path: /build/my-linux/.github
- name: Run checks
env:
SQUAD_TOKEN: ${{ secrets.SQUAD_TOKEN }}
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
GITHUB_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
mkdir -p /build/logs/
cd /build/my-linux && bash .github/scripts/libhugetlbfs.sh /build/test-kernel | tee -i /build/logs/all.log
- name: Collect logs and json squad
uses: actions/upload-artifact@v4
with:
name: test-logs-libhugetlbfs
path: |
/build/logs/*
/build/squad_json/*
run-xfstests:
needs: build-kernel
if: ${{ endsWith(github.head_ref, '_manual') }}
runs-on: self-hosted
timeout-minutes: 50400 # 35 days
container:
image: ghcr.io/linux-riscv/linaro-tuxrun-dispatcher-riscv64:latest
volumes:
- /home/github/ccache:/build/ccache
- /home/github/gitref:/build/gitref
- /tmp:/tmp
steps:
- name: Download pre-built kernel
uses: actions/download-artifact@v4
with:
name: test-kernel
path: /build/test-kernel
- name: Download CI files
uses: actions/download-artifact@v4
with:
name: ci-files
path: /build/my-linux/.github
- name: Run checks
env:
SQUAD_TOKEN: ${{ secrets.SQUAD_TOKEN }}
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
GITHUB_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
mkdir -p /build/logs/
cd /build/my-linux && bash .github/scripts/xfstests.sh /build/test-kernel | tee -i /build/logs/all.log
- name: Collect logs and json squad
uses: actions/upload-artifact@v4
with:
name: test-logs-xfstests
path: |
/build/logs/*
/build/squad_json/*