README 14.9 KB
Newer Older
1
2
3
4
5
About jenkins.debian.net
========================
:Author:           Holger Levsen
:Authorinitials:   holger
:EMail:            holger@layer-acht.org
6
:Status:           working, in progress
7
8
:lang:             en
:Doctype:          article
Mattia Rizzolo's avatar
Mattia Rizzolo committed
9
:License:          GPLv2
10
11
12

== About jenkins.debian.net

13
https://jenkins.debian.net is a tool for automated quality monitoring of Debian. It is *work in progress* despite being in existence since October 15th 2012.
Holger Levsen's avatar
Holger Levsen committed
14

15
Get the source by running `git clone git://git.debian.org/git/qa/jenkins.debian.net.git`. It's all in there, no (relevant) manual setup has been done besides what's in this git repository. (The irrelevant bits are some very simple configuration files containing passwords.)
Holger Levsen's avatar
Holger Levsen committed
16

17
The (virtualized) hardware is sponsored since October 2012 by http://www.profitbricks.co.uk - currently it's using 23 cores and 75 GB memory, thanks a lot!
Holger Levsen's avatar
Holger Levsen committed
18

Holger Levsen's avatar
Holger Levsen committed
19
Some stats are available using link:https://jenkins.debian.net/munin/jenkins-month.html[munin-plugins for jenkins].
20

Mattia Rizzolo's avatar
Mattia Rizzolo committed
21
22
Three persons have shell access to the machine: link:mailto:holger@layer-acht.org[Holger Levsen], link:mailto:helmut@debian.org[Helmut Grohne] (both with root powers) and link:mailto:mattia@mapreri.org[Mattia Rizzolo]. All of them have also access to the web intereface, where tasks like stopping and scheduling job runs can be done, also they enough rights to edit the jenkins scripts (i.e. what jenkins executes), though this is done in case of firefighting (e.g. changes throught the git repository are really preferred). The deploying of changes is still limited to people with root powers.

23
== Getting involved
24

Philip Hands's avatar
Philip Hands committed
25
jenkins.debian.net is intended to be a QA resource for the whole Debian project. Please contact us (via #debian-qa on IRC or via the debian-qa mailinglist) If you / your project is interested to run tests in this setup!
26
27

If you notice some jobs has problems and you want to find out why, read <<debug,debug certain jobs>> to learn how to do debug jobs locally.
28

29
30
include::CONTRIBUTING[]

31
32
== Notifications

Philip Hands's avatar
Philip Hands committed
33
There are two types of notifications being used: email and IRC. At the end of each builds console log it says to where notifications have been sent. An address of the form 'jenkins-foo' means an IRC notification has been sent to the #foo IRC channel.
34

35
36
All job result notifications should be sent to https://lists.alioth.debian.org/mailman/listinfo/qa-jenkins-scm and optionally to other recipients as well.

37
38
== Jobs being run

Mattia Rizzolo's avatar
Mattia Rizzolo committed
39
There are nearly 900 jobs being run currently. If you can think of ways to improve the usefulness of certain jobs, please do give feedback!
40

41
=== g-i-installation jobs
Holger Levsen's avatar
Holger Levsen committed
42

43
44
Installation tests with g-i, the graphical version of d-i, the debian-installer.

Holger Levsen's avatar
update    
Holger Levsen committed
45
46
* 'g-i-installation_debian_sid_daily-rescue'
** boot of rescue system with daily build sid image
47

48
* 'g-i-installation_debian_sid_daily-lxde' and '-xfce' and '-kfreebsd' and '-hurd'
49
** sid installation of Xfce/LXDE desktop with daily build sid image
Holger Levsen's avatar
update    
Holger Levsen committed
50

Holger Levsen's avatar
Holger Levsen committed
51
52
53
54
55
* 'g-i-installation_debian_jessie_lxde','-xfce','-kde' and '-gnome' and '-kfreebsd'
** jessie installation of Xfce/LXDE/KDE desktop and kfreebsd install with weekly build jessie image

* 'g-i-installation_debian_wheezy_lxde','-xfce','-kde' and '-gnome' and '-kfreebsd'
** wheezy installation of Xfce/LXDE/KDE desktop and kfreebsd install with wheezy release image
56
57
58

=== debian-installer jobs

Holger Levsen's avatar
Holger Levsen committed
59
* 'd_i_build_$source_package'
Holger Levsen's avatar
Holger Levsen committed
60
61
** there is one job for each git repo referred to in http://anonscm.debian.org/viewvc/d-i/trunk/.mrconfig?view=co
** each job pdebuilds the master branch of its git repo on every git push in a sid environment. (If the architecture(s) specified in debian/control are not amd64,all or any the build exits cleanly.)
62
** while these jobs are triggered on commits, the SCM is only polled every 6min to see if there are new commits.
Holger Levsen's avatar
Holger Levsen committed
63

Holger Levsen's avatar
Holger Levsen committed
64
* 'd_i_manual'
65
** builds the full installation-guide package with pdebuild in sid on every commit to svn://anonscm.debian.org/svn/d-i/ matching suitable patterns.
66
** while this job is triggered on commits, the SCM is only polled every 15min to see if there are new commits.
Holger Levsen's avatar
Holger Levsen committed
67

Holger Levsen's avatar
Holger Levsen committed
68
* 'd_i_manual_$language_html'
69
** builds a language (on jessie) on every commit of svn/trunk/manual/$LANG with `make languages=$LANG architectures=amd64 formats=html`.
70
** while these jobs are triggered on commits, the SCM is only polled every 15min to see if there are new commits.
Holger Levsen's avatar
Holger Levsen committed
71
** on successful build, 'd_i_manual_$lang_pdf' is triggered.
Holger Levsen's avatar
Holger Levsen committed
72

Holger Levsen's avatar
Holger Levsen committed
73
* 'd_i_parse_build_logs' - parses logs from http://d-i.debian.org/daily-images/build-logs.html daily, to give them a bit more exposure.
74
** this job is run daily.
Holger Levsen's avatar
Holger Levsen committed
75

76
=== chroot-installation jobs
77

78
79
Installation tests inside chroot environments.

80
* 'chroot-installation_maintenance_$distro':
81
** make sure chroots have been cleaned up properly
82
83
84
** runs daily at 05:00 UTC and triggers the $distro specific bootstrap job on success
** wheezy is only triggered on the 4th day and 18th of each month (as it was released on the 4th)
** squeeze only on the 25th of each month
85
86
* $distro-bootstrap jobs:
** just `debootstrap $distro` (install a base Debian distribution $distro)
87
** there is one job for *sid*, one for *wheezy* and one for *jessie*: 'chroot-installation_sid_bootstrap', 'chroot-installation_wheezy_bootstrap' and 'chroot-installation_jessie_bootstrap'
88
* plus there is 'chroot-installation_squeeze_bootstrap_upgrade_to_wheezy', which bootstraps *squeeze* and upgrades that to *wheezy*
89
90
91
92
** on successful run of the bootstrap job, six $distro-install(+upgrade) jobs are triggered.

* $distro-install jobs (and $distro-install+upgrade jobs):
** `debootstrap $distro`, install a *$set_of_packages* (and upgrade to *$2nd_distro*)
Holger Levsen's avatar
Holger Levsen committed
93
** these $set_of_packages exist: 'gnome', 'kde', 'kde-full', 'lxde', 'xfc', 'full_desktop' (all five desktops plus `vlc evince iceweasel chromium cups build-essential devscripts wine texlive-full asciidoc vim emacs` and (`libreoffice virt-manager mplayer2` (jessie/sid) or `openoffice virtualbox mplayer` (squeeze/wheezy)) and 'develop'
94
*** install is done with `apt-get install`, except for 'develop' where `apt-get build-dep` is used to install the build dependencies of these packages.
Holger Levsen's avatar
Holger Levsen committed
95
** Then there are also all the corresponding upgrade jobs, eg 'chroot-installation_wheezy_install_gnome_upgrade_to_jessie'
Holger Levsen's avatar
Holger Levsen committed
96

97
98
99
100
=== Debian Edu related jobs

* All Debian Edu related jobs can be seen at these two URLs:
** https://jenkins.debian.net/view/edu_devel/ about Debian Edu Jessie
Holger Levsen's avatar
Holger Levsen committed
101
** https://jenkins.debian.net/view/edu_stable/ about Debian Edu Wheezy
102
103

* Then there are three types of jobs:
Holger Levsen's avatar
Holger Levsen committed
104
** 'g-i-installation_$(distro)_$(profile)':
105
106
107
*** tests installation of a profile with preseeding in the graphical installer,
*** screenshots and logs are preserved and a movie created,
*** testing clients against the main-server is planned too, for some time...
Holger Levsen's avatar
Holger Levsen committed
108
** 'chroot-installation_$(distro)_install_$(education-metapackage)':
Philip Hands's avatar
Philip Hands committed
109
*** tests apt installation of a metapackage in a specific distro.
Holger Levsen's avatar
Holger Levsen committed
110
* 'edu-packages_$(distro)_$(src-package)':
111
112
113
** builds one of the six debian-edu packages ('debian-edu', 'debian-edu-config', 'debian-edu-install', 'debian-edu-doc', 'debian-edu-artwork', 'debian-edu-archive-keyring' on every push to it's git master branch
** and whenever 'debian-edu-doc' is build, https://jenkins.debian.net/userContent/debian-edu-doc/ get's updated automatically afterwards too.

Mattia Rizzolo's avatar
Mattia Rizzolo committed
114
115
116
=== qa.debian.org related jobs

* There are jobs for lintian and for piuparts:
Holger Levsen's avatar
Holger Levsen committed
117
** they simply run a build and/or the tests of the master branch of their git repository on every commit against sid. If that succeeds, the same source will be built on stretch, then on jessie and - in the lintian case only - also for wheezy.
Mattia Rizzolo's avatar
Mattia Rizzolo committed
118
119
120
121
122
* There are also jobs related to link:https://udd.debian.org[UDD]:
** they check for multiarch version screws in various suites or issues with orphaned packages without the correct the relevant bug.
*** the UDD schema is available at https://udd.debian.org/schema/udd.html
* Last but not least, dpkg related jobs:
** they tests for trigger cycles using data from the archive and http://binarycontrol.debian.net
123
124
125

=== haskell jobs

126
* See https://wiki.debian.org/Haskell for more information about those jobs.
127
128
129

=== rebootstrap jobs

130
* See https://wiki.debian.org/HelmutGrohne/rebootstrap for more information about these jobs.
131

Holger Levsen's avatar
Holger Levsen committed
132
=== reproducible builds jobs
133

134
* See https://wiki.debian.org/ReproducibleBuilds to learn more about "Reproducible Builds" in Debian and beyond.
135

136
* Several jobs are being used to assemble the website https://reproducible.debian.net which is actually a collection of static html and log files (and very few images) being served from this host. Besides the logfiles data is stored in an SQLite database which can be downloaded from https://reproducible.debian.net/reproducible.db. (That copy is updated every four hours.)
137

Holger Levsen's avatar
Holger Levsen committed
138
* The (current) purpose of https://reproducible.debian.net is to show the prospects of reproducible builds for Debian. IOW: this is research, showing what could (and should) be done... check https://wiki.debian.org/ReproducibleBuilds for the real status of the project!
139

140
* Currently, three suites are tested on amd64: 'testing', 'unstable' and 'experimental'. The tests are done using 'pbuilder' using link:https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain[our toolchain] through eight concurrent builder jobs which are each constantly testing packages and saving the results of these tests.
Holger Levsen's avatar
Holger Levsen committed
141

Mattia Rizzolo's avatar
Mattia Rizzolo committed
142

143
* Packages to be build are scheduled in the SQLite database via a scheduler job, which runs every hour and which schedules "new packages" to be tested if the queue is below a certain threshold. "New packages" in this context means:
Philip Hands's avatar
Philip Hands committed
144
** truly new packages (either uploaded to 'unstable' or 'experimental' or migrated to 'testing'),
145
** new versions of existing packages.
Holger Levsen's avatar
Holger Levsen committed
146

147
* If the scheduling queue is low, already tested package will be scheduled for re-testing.
148

149
* Several other jobs exist to build the html pages and to create a JSON file which can be downloaded from https://reproducible.debian.net/reproducible.json.
150

151
* Information from https://anonscm.debian.org/cgit/reproducible/notes.git is incorporated on pushes to that git repo.
152

Philip Hands's avatar
Philip Hands committed
153
* There are suite specific jobs to create the pbuilder base.tgz's per suite, which have the reproducible apt repo added. Similarly there's another job per suite to create the schroots used by the builder jobs to download the packages sources to build.
154

155
* Then there are two more jobs to create sid and testing schroots to run diffoscope on the the two results. This is necessary since to investigate haskell binaries, diffoscope needs access to the same haskell compiler version as the investigated packages have been built with.
156

Holger Levsen's avatar
Holger Levsen committed
157
* For making sure things are considerably under control at any time, there is a maintenance job running every 4h, mostly doing cleanups.
158

159
160
* The jenkins job overview at https://jenkins.debian.net/view/reproducible/ probably makes it clearer how the job scheduling works in practice.

161
* If you are in the reproducible team you can reschedule packages by yourself:
162
** log into alioth.debian.org via ssh, in the team home (/home/groups/reproducible/) there is a reschedule.sh script you can call. Use the --help switch to get the online help.
163
** The team IRC channel will get a notification about the scheduling and optionally when the build finishes too.
164

165
* If you are not in the reproducible team or if you want to reschedule big sets of packages please ask for a manual rescheduling in the '#debian-reproducible' IRC channel on OFTC. Those with shell access to jenkins can bypass the limitations imposed to remote calls, which are limited to 50 schedulings per day.
166

Philip Hands's avatar
Philip Hands committed
167
* Blacklisting packages can be done similarly:
168
169

----
170
jenkins@jenkins:~$ /srv/jenkins/bin/reproducible_blacklist.sh $suite $package1
171
172
----

173
* We support sending automatic link:https://reproducible.debian.net/index_notify.html[email notification] for status changes to maintainers. Enabling/disabling these notifications can be done by people with shell access to jenkins:
174
175
176
177
178
179
180
181
182
183

----
jenkins@jenkins:~$ /srv/jenkins/bin/reproducible_setup_notify.py -h
usage: reproducible_setup_notify.py [-h] [-o] [-p PACKAGES [PACKAGES ...]]
                                    [-m MAINTAINER]
  -h, --help            show this help message and exit
  -o, --deactivate      Deactivate the notifications
  -p PACKAGES [PACKAGES ...], --packages PACKAGES [PACKAGES ...]
                        list of packages for which activate notifications
  -m MAINTAINER, --maintainer MAINTAINER
184
                        email address of a maintainer
185
186
----

187
* Job configuration is at the usual location for 'jenkins.debian.net' - there's a 'job-cfg/reproducible.yaml' defining all the jobs and lots of scripts in 'bin/reproducible_*.(sh|py)', plus a few config files like for 'sudo' or 'apache2'.
188

Holger Levsen's avatar
Holger Levsen committed
189
190
* Finally, there are also three jobs testing the link:http://www.coreboot.org/[coreboot], link:https://openwrt.org/[OpenWrt] and link:http://www.netbsd.org/[NetBSD] projects. The results of the tests can be seen respectively at https://reproducible.debian.net/coreboot/, https://reproducible.debian.net/openwrt/ and https://reproducible.debian.net/netbsd/.

191
192
193
* Just as of now, we have started with building on two different systems, so for 'amd64' we are now using two hosts, profitbricks-build1-amd64 profitbricks-build2-amd64, which both have 8 cores and 32gb ram and are sponsored by Profitbricks.
* Then we also started to test 'armhf' on four small boards donated by vagrant@d.o: two quad cores (wbq0 and cbxi4pro0) with 2gb ram and two dual cores (bpi0 and hb0) with 1gb ram, each. We hope to have powerful ARM hardware in the near future, if you can help, please talk to us!

194
=== jenkins.d.n jobs
Holger Levsen's avatar
Holger Levsen committed
195
196
197

These are jobs for making sure jenkins.debian.net is running smoothly.

198
199
200
[[debug]]
== Debugging certain jobs

Holger Levsen's avatar
Holger Levsen committed
201
To debug most jobs, a jenkins setup is actually not needed.
202

Holger Levsen's avatar
Holger Levsen committed
203
* In principle the shell commands from the various jobs should run on any Debian system just fine. Please use a test system though, as all your data might be eaten.
204

Holger Levsen's avatar
Holger Levsen committed
205
** A good first step is to use this git repo as a Debian source package, build it and then install the jenkins.d.n-debug package and all it's recommends on your test system. NOTE: this ain't as helpful as it used to be as many depends have only been added to 'update_jdn.sh' and not to 'debian/control'.
206

Holger Levsen's avatar
Holger Levsen committed
207
208
=== Feedback

209
I love to get feedback on this! Either by sending an email to debian-qa@lists.debian.org or by joining #debian-qa on irc.debian.org and expressing yourself there. The best way is to link:https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=jenkins;users=qa.debian.org%40packages.debian.org[report bugs], even better if accompanied by patches or pull requests. But really, all feedback is appreciated!
Holger Levsen's avatar
Holger Levsen committed
210
211
212

=== Setup

Holger Levsen's avatar
Holger Levsen committed
213
See link:https://jenkins.debian.net/userContent/setup.html[INSTALL].
Holger Levsen's avatar
Holger Levsen committed
214
215
216

=== ToDo

Holger Levsen's avatar
Holger Levsen committed
217
There is still a lot of work left, check the current link:https://jenkins.debian.net/userContent/todo.html[ToDo list].
Holger Levsen's avatar
Holger Levsen committed
218

219
220
221
=== Thanks

See link:https://jenkins.debian.net/userContent/thanks.html[THANKS].
Holger Levsen's avatar
Holger Levsen committed
222

223
== License
224

225
226
227
228
* everything except features and bin/libvirt_cucumber_tests:
** GPLv2, see link:http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/LICENSE[LICENSE].
* features and bin/libvirt_cucumber_tests:
** GPLv3+
229

Holger Levsen's avatar
Holger Levsen committed
230
// vim: set filetype=asciidoc: