qemu
/
.patchew.yml
299 строк · 8.3 Кб
1---
2# Note: this file is still unused. It serves as a documentation for the
3# Patchew configuration in case patchew.org disappears or has to be
4# reinstalled.
5#
6# Patchew configuration is available to project administrators at
7# https://patchew.org/api/v1/projects/1/config/ and can be configured
8# to YAML using the following Python script:
9#
10# import json
11# import sys
12# import ruamel.yaml
13#
14# json_str = sys.stdin.read()
15# yaml = ruamel.yaml.YAML()
16# yaml.explicit_start = True
17# data = json.loads(json_str, object_pairs_hook=ruamel.yaml.comments.CommentedMap)
18# ruamel.yaml.scalarstring.walk_tree(data)
19# yaml.dump(data, sys.stdout)
20
21email:
22notifications:
23timeouts:
24event: TestingReport
25enabled: true
26to_user: false
27reply_subject: true
28set_reply_to: true
29in_reply_to: true
30reply_to_all: false
31subject_template: none
32to: fam@euphon.net
33cc: ''
34body_template: |
35{% if not is_timeout %} {{ cancel }} {% endif %}
36
37Test '{{ test }}' timeout, log:
38
39{{ log }}
40ENOSPC:
41event: TestingReport
42enabled: true
43to_user: false
44reply_subject: false
45set_reply_to: false
46in_reply_to: true
47reply_to_all: false
48subject_template: Out of space error
49to: fam@euphon.net
50cc: ''
51body_template: |
52{% if passed %}
53{{ cancel }}
54{% endif %}
55
56{% if 'No space left on device' in log %}
57Tester {{ tester }} out of space when running {{ test }}
58
59{{ log }}
60{% else %}
61{{ cancel }}
62{% endif %}
63FailureShort:
64event: TestingReport
65enabled: true
66to_user: false
67reply_subject: true
68set_reply_to: true
69in_reply_to: true
70reply_to_all: true
71subject_template: Testing failed
72to: ''
73cc: ''
74body_template: |
75{% if passed or not obj.message_id or is_timeout %}
76{{ cancel }}
77{% endif %}
78{% if 'No space left on device' in log %}
79{{ cancel }}
80{% endif %}
81Patchew URL: https://patchew.org/QEMU/{{ obj.message_id }}/
82
83{% ansi2text log as logtext %}
84{% if test == "checkpatch" %}
85Hi,
86
87This series seems to have some coding style problems. See output below for
88more information:
89
90{{ logtext }}
91{% elif test == "docker-mingw@fedora" or test == "docker-quick@centos8" or test == "asan" %}
92Hi,
93
94This series failed the {{ test }} build test. Please find the testing commands and
95their output below. If you have Docker installed, you can probably reproduce it
96locally.
97
98{% lines_between logtext start="^=== TEST SCRIPT BEGIN ===$" stop="^=== TEST SCRIPT END ===$" %}
99{% lines_between logtext start="^=== OUTPUT BEGIN ===$" stop="=== OUTPUT END ===$" as output %}
100{% grep_C output regex="\b(FAIL|XPASS|ERROR|WARN|error:|warning:)" n=3 %}
101{% elif test == "s390x" or test == "FreeBSD" or test == "ppcle" or test == "ppcbe" %}
102Hi,
103
104This series failed build test on {{test}} host. Please find the details below.
105
106{% lines_between logtext start="^=== TEST SCRIPT BEGIN ===$" stop="^=== TEST SCRIPT END ===$" %}
107{% lines_between logtext start="^=== OUTPUT BEGIN ===$" stop="=== OUTPUT END ===$" as output %}
108{% grep_C output regex="\b(FAIL|XPASS|ERROR|WARN|error:|warning:)" n=3 %}
109{% else %}
110{{ cancel }}
111{% endif %}
112
113The full log is available at
114{{ log_url }}.
115---
116Email generated automatically by Patchew [https://patchew.org/].
117Please send your feedback to patchew-devel@redhat.com
118testing:
119tests:
120asan:
121enabled: true
122requirements: docker
123timeout: 3600
124script: |
125#!/bin/bash
126time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1
127docker-quick@centos8:
128enabled: false
129requirements: docker,x86_64
130timeout: 3600
131script: |
132#!/bin/bash
133time make docker-test-quick@centos8 SHOW_ENV=1 J=14 NETWORK=1
134checkpatch:
135enabled: true
136requirements: ''
137timeout: 600
138script: |
139#!/bin/bash
140git rev-parse base > /dev/null || exit 0
141./scripts/checkpatch.pl --mailback base..
142docker-mingw@fedora:
143enabled: true
144requirements: docker,x86_64
145timeout: 3600
146script: |
147#! /bin/bash
148test "$(uname -m)" = "x86_64"
149ppcle:
150enabled: false
151requirements: ppcle
152timeout: 3600
153script: |
154#!/bin/bash
155# Testing script will be invoked under the git checkout with
156# HEAD pointing to a commit that has the patches applied on top of "base"
157# branch
158set -e
159CC=$HOME/bin/cc
160INSTALL=$PWD/install
161BUILD=$PWD/build
162mkdir -p $BUILD $INSTALL
163SRC=$PWD
164cd $BUILD
165$SRC/configure --cc=$CC --prefix=$INSTALL
166make -j4
167# XXX: we need reliable clean up
168# make check -j4 V=1
169make install
170
171echo
172echo "=== ENV ==="
173env
174
175echo
176echo "=== PACKAGES ==="
177rpm -qa
178ppcbe:
179enabled: false
180requirements: ppcbe
181timeout: 3600
182script: |
183#!/bin/bash
184# Testing script will be invoked under the git checkout with
185# HEAD pointing to a commit that has the patches applied on top of "base"
186# branch
187set -e
188CC=$HOME/bin/cc
189INSTALL=$PWD/install
190BUILD=$PWD/build
191mkdir -p $BUILD $INSTALL
192SRC=$PWD
193cd $BUILD
194$SRC/configure --cc=$CC --prefix=$INSTALL
195make -j4
196# XXX: we need reliable clean up
197# make check -j4 V=1
198make install
199
200echo
201echo "=== ENV ==="
202env
203
204echo
205echo "=== PACKAGES ==="
206rpm -qa
207FreeBSD:
208enabled: true
209requirements: qemu-x86,x86_64,git
210timeout: 3600
211script: |
212#!/bin/bash
213# Testing script will be invoked under the git checkout with
214# HEAD pointing to a commit that has the patches applied on top of "base"
215# branch
216if qemu-system-x86_64 --help >/dev/null 2>&1; then
217QEMU=qemu-system-x86_64
218elif /usr/libexec/qemu-kvm --help >/dev/null 2>&1; then
219QEMU=/usr/libexec/qemu-kvm
220else
221exit 1
222fi
223make vm-build-freebsd J=21 QEMU=$QEMU
224exit 0
225docker-clang@ubuntu:
226enabled: true
227requirements: docker,x86_64
228timeout: 3600
229script: |
230#!/bin/bash
231time make docker-test-clang@ubuntu SHOW_ENV=1 J=14 NETWORK=1
232s390x:
233enabled: true
234requirements: s390x
235timeout: 3600
236script: |
237#!/bin/bash
238# Testing script will be invoked under the git checkout with
239# HEAD pointing to a commit that has the patches applied on top of "base"
240# branch
241set -e
242CC=$HOME/bin/cc
243INSTALL=$PWD/install
244BUILD=$PWD/build
245mkdir -p $BUILD $INSTALL
246SRC=$PWD
247cd $BUILD
248$SRC/configure --cc=$CC --prefix=$INSTALL
249make -j4
250# XXX: we need reliable clean up
251# make check -j4 V=1
252make install
253
254echo
255echo "=== ENV ==="
256env
257
258echo
259echo "=== PACKAGES ==="
260rpm -qa
261requirements:
262x86_64:
263script: |
264#! /bin/bash
265test "$(uname -m)" = "x86_64"
266qemu-x86:
267script: |
268#!/bin/bash
269if qemu-system-x86_64 --help >/dev/null 2>&1; then
270:
271elif /usr/libexec/qemu-kvm --help >/dev/null 2>&1; then
272:
273else
274exit 1
275fi
276ppcle:
277script: |
278#!/bin/bash
279test "$(uname -m)" = "ppc64le"
280ppcbe:
281script: |
282#!/bin/bash
283test "$(uname -m)" = "ppc64"
284git:
285script: |
286#! /bin/bash
287git config user.name > /dev/null 2>&1
288docker:
289script: |
290#!/bin/bash
291docker ps || sudo -n docker ps
292s390x:
293script: |
294#!/bin/bash
295test "$(uname -m)" = "s390x"
296git:
297push_to: git@github.com:patchew-project/qemu
298public_repo: https://github.com/patchew-project/qemu
299url_template: https://github.com/patchew-project/qemu/tree/%t
300