summaryrefslogtreecommitdiffstats
path: root/presentations/2016-11-30-Profitbricks/index.html
blob: 14cbfd4dc91c9d950df45ee6c14a188379b24e37 (plain)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>jenkins.debian.net or what is Debian doing with all these ressources</title>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">

  <link rel="stylesheet" href="css/reveal.css">
  <link rel="stylesheet" href="css/theme/black.css" id="theme">

  <style type="text/css">
  li {
    margin-top: 28px !important;
  }
  ul ul li {
    margin-top: 16px !important;
  }
  * {
    text-transform: none !important;
  }
  a {
    color: inherit !important;
  }
  code {
    font-size: 90% !important;
  }
  table {
    width: 100%;
  }
  .reveal table td {
    border-bottom: none;
  }
  .reveal section img {
    border: none;
    box-shadow: none;
  }
  </style>

  <!--[if lt IE 9]>
  <script src="lib/js/html5shiv.js"></script>
  <![endif]-->

  <script>
  var link = document.createElement('link');
  link.rel = 'stylesheet';
  link.type = 'text/css';
  link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
  document.getElementsByTagName('head')[0].appendChild( link );
</script>
</head>

<!--

42min :)

who are you?
	who knows about Debian? ;-)
	who knows about jenkins.debian.net?

jenkins general:
	irc / mail notifications
	-> bugs are getting filed
	#debian-qa irc channel
	debian-qa efforts "distributed"…

benefits for debian
	countless bug reports
		ie 2670 done ftbfs via reproducible… (and 500 open…)
	early notifications of problems
	will become an offical service, jenkins.d.o

other qa efforts
	lintian.debian.org
	ci.debian.net
	periodic full archive rebuilds (amd64 only)

smoothen + shorten reproducible slides

-->


<body>
  <div class="reveal">
    <div class="slides" style="text-align: left;">
      <section data-background="images/debian_logo.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	about <code>jenkins.debian.net</code> - or what is Holger / Debian doing with all these ressources
	</h2>
	<p>(Automating all the tests!)</p>
        <h4>
          <br>
          Holger Levsen &lt;holger@debian.org&gt;
        </h4>
      </section>

      <section data-background="images/h01ger.png" data-background-size="15%" data-background-color="black">
        <h2>about me</h2>
        <ul class="fragment">
          <li>Debian user since 1995, contributing since 2001</li>
          <li>Debian-Edu (Debian for Education), since 2003</li>
          <li>DebConf organizer, founded the DebConf video team in 2005</li>
          <li>Debian developer since 2007, <code>holger@debian.og</code></li>
          <li>Freelancer since 2004, <code>holgerlevsen.de</code></li>
          <li>Freelancer at Profitbricks from 2011-2013 and 2015</li>
        </ul>
      </section>

      <section data-background="images/h01ger.png" data-background-size="15%" data-background-color="black">
        <h2>more about Debian QA and me</h2>
        <ul class="fragment">
          <li class="fragment"><code>https://piuparts.debian.org</code> since 2009 - today juggling with 624234 logs from 53158 packages in 28 suites with Andreas Beckmann</li>
          <li class="fragment"><code>https://jenkins.debian.net</code> since 2012</li>
          <li class="fragment"><code>https://reproducible.debian.net</code> since 2014</li>
          <li class="fragment">since 2015 funded by the Linux Foundation for working on <code>https://reproducible-builds.org</code></li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	about jenkins.debian.net
	</h2>
	<ul>
          <li>ressources sponsored by Profitbricks since 2012</li>
        </ul>
      </section>

      <section data-background="images/jenkins_jobs-year.png" data-background-size="65%">
        &nbsp;
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	Profitbricks ressources used by jenkins.debian.net
	</h2>
        <ul>
          <li>17 machines (16*Debian, 1*FreeBSD, 13*64bit, 4*32bit)<br />
          in 2 datacenters (FKB + FRA)</li>
          <li>168 cores (148 AMD, 20 Intel) with 498/503 GB RAM</li>
          <li>2.9/3.1 TB HDD and 1.9/2 TB SDD storage</li>
          <li>no static IP addresses, no idea about traffic (500gb/month?)</li>
          <li class="fragment">2 DCD users: Mattia Rizzolo and me</li>
        </ul>
      </section>


      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	jenkins.debian.net contributors:
	</h2>
        <ul>
           <li>Mattia Rizzolo, Valerie Young and others: reproducible Debian</li>
           <li>Helmut Grohne: rebootstrap</li>
           <li>Samuel Thibault: hurd + accessibility</li>
           <li>Steven Chamberlain: kfreebsd</li>
           <li>Phil Hands: lvc</li>
           <li>Tomasz Nitecki: jenkins java support</li>
	   <li class="fragment">36 contributors to <code>jenkins.debian.net.git</code> in total</li>
        </ul>
      </section>


      <section data-background="images/debian.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	A quick detour about Debian release names
	</h2>
        <ul class="fragment">
          <li>wheezy (Debian 7) = oldstable</li>
          <li>jessie (8) = stable</li>
          <li>stretch (9 =  testing</li>
          <li>sid = unstable</li>
          <li>experimental</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	chroot-installation tests
	</h2>
        <ul>
          <li>338 jobs basically running <code>apt install $metapackages</code><br />
           (gnome, kde, cinnamon, lxde, xfce, qt4, qt5, haskell, developer, debconf-video, debian-edu)</li>
          <li>new installations and upgrades tested in <br />
           wheezy (98), jessie (147), stretch (153), sid (98)</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	g-i-installation tests
	</h2>
        <ul>
          <li>tests Debian Installer (d-i) in graphical mode ("g-i") and text mode</li>
          <li>creates videos and screenshots</li>
          <li>plain Debian (installations and rescue mode) and Debian Edu</li>
          <li>jessie, stretch and sid</li>
          <li>linux, kfreebsd and hurd</li>
          <li>finally almost deprecated today, will be replaced by lvc tests (libvirt-cucumber)</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	more debian-installer related jobs on jenkins.debian.net:
	</h2>
        <ul>
                  <li>FIXME 78 packages (building udebs) triggered by commits to their git master branches</li>
                  <li>manual in several/FIXME languages, also git triggered</li>
                  <li>lvc and d-i from proposed branches planned</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	$amount/FIXME debian-edu jobs on jenkins.debian.net:
	</h2>
        <ul>
           <li>
            g-i tests for jessie and stretch
           </li>
           <li>
            six debian-edu packages build triggerd by commits on their git master branches
           </li>
           <li>
            very useful for debian-edu-doc which is published for 7 languages in HTML, PDF &amp; EPUB format.
           </li>
        </ul>
      </section>


      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	more QA:
	</h2>
        <ul>
          <li>debian-qa
                <ul>
		  <li>orphaned packages without bug</li>
                  <li>dpkg trigger cycles</li> 
                  <li>lintian, debhelper and piuparts are build on git commits in jessie, stretch and unstable</li>
                </ul>
           </li>
           <li>
                rebootstrap - Helmut Grohne files lots of cross-building and bootstrapping bugs
           </li>
           <li>
         	reproducible-builds.org - "btw": over 2600 'FTBFS' bugs found and fixed so far, ~400 open…
           </li>
        </ul>
      </section>


      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	reproducible.debian.net
	</h2>
        <ul>
          <li>created by 379 jobs on jenkins.debian.net</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	tests.reproducible-builds.org/debian/
	</h2>
        <ul>
          <li>created by ~350 jobs on jenkins.debian.net </li>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>The problem: why do we need reproducible builds?</h2>
        <ul>
          <li class="fragment">One can inspect the source code of free software for flaws</li>
          <li class="fragment">But distributions provide binary/compiled packages</li>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>Can we trust this process?</h2>

        <ul>
          <li class="fragment">To get users, go after the developers</li>
          <li class="fragment">Financial incentives to crack developer machines / build infrastructure</li>
          <li class="fragment"><code>CVE-2002-0083</code>: Remote root exploit in OpenSSH (single bit difference in binary)</li>
          <li class="fragment">Kernel module modifying source code when "viewed" by GCC only (see <code>media.ccc.de</code>)</li>
          <li class="fragment">Compromised Apple iOS SDK, <em>Xcodeghost</em>, etc.</li>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2 style="line-height: 130%;">
          The motivation behind "reproducible" builds is to allow verification
          that no flaws have been introduced during the compilation process.
        </h2>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>The solution - FIXME wordings</h2>

        <ul class="fragment">
          <li class="fragment">Ensure compilation always identical results</li>
          <li class="fragment">Multiple parties compare compilation results</li>
          <li class="fragment">Attacker needs to infect everybody simultaneously (or they are detected)</li>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>We call this <em>Reproducible Builds</em>.</h2>

        <ul class="fragment">
          <li class="fragment">We think this should become the norm for free software.</li>
        </ul>
      </section>

      <section data-background="images/debian.jpg" data-background-color="black">
        <h2>Reproducible builds in Debian</h2>

        <p>Continuously build every package twice, varying:</p>

        <ul>
          <ul>
            <li>Time &amp; date</li>
            <li>Hostname &amp; domain name</li>
            <li>Filesystem (<code><strike>disorderfs</strike></code>)</li>
            <li>Timezone &amp; locale</li>
            <li><code>uid</code> &amp; <code>gid</code></li>
            <li>GECOS information, the shell &amp; a bunch of environment variables  </li>
            <li>Kernel &amp; CPU type</li>
            <li>and more&hellip;</li>
          </ul>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>Challenges</h2>
        <ul>
        <ul>
          <li>Timestamps</li>
          <li>Timezones &amp; locales</li>
          <li>Non-deterministic file ordering</li>
          <li>Dictionary/hash key ordering</li>
          <li>Users, groups, <code>umask</code>, environment variables</li>
          <li>Build paths</li>
          <li>Specifying the environment</li>
        </ul>
        </ul>
      </section>

      <section data-background="images/unstable_status.png" data-background-size="100%">
        &nbsp;
      </section>

      <section data-background="images/testing_status.png" data-background-size="100%">
        &nbsp;
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>Technical advantages</h2>

        <ul>
        <ul>
          <li>Faster to build; saves time, money &amp; the environment</li>
          <li>Easier to test changes/revisions</li>
          <li>Unsafe behaviour (eg. internet access)</li>
          <li>Unreliable / non-deterministic behaviours (eg. timing)</li>
          <li>Finds bugs in uncommon timezones or locales</li>
          <li>Detect corrupted build environments</li>
          <li>Find future build failures (eg. expired certificates)</li>
        </ul>
        </ul>
      </section>

      <section data-background="images/diffoscope.png" data-background-size="75%" data-background-position="50% 50%">
       <p><!-- FIXME: this is horrible… -->
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
         &nbsp;<br />
        <h2><code>https://try.diffoscope.org</code></h2>
       </p>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>Future work</h2>

        <ul>
          <li><code>.buildinfo</code> files distribution unsolved</li>
          <li>How to make it meaningful for end-users</li>
          <li>Source code still vulnerable</li>
        </ul>
      </section>

      <section data-background="images/stats_bugs_sin_ftbfs_state.png" data-background-size="100%">
        &nbsp;
      </section>

      <section>
        <h2>Beyond Debian&hellip;</h2>
        <p>
          <img src="images/logos/archlinux.png">
          <!-- img src="images/logos/baserock.png" -->
          <img src="images/logos/bitcoin.png">
          <img src="images/logos/coreboot.png">
          <img src="images/logos/debian.png">
          <img src="images/logos/electrobsd.png">
          <img src="images/logos/f-droid.png">
          <img src="images/logos/fedora.png">
          <img src="images/logos/freebsd.png">
          <img src="images/logos/google.png">
          <img src="images/logos/guix.png">
          <img src="images/logos/lede.png">
          <img src="images/logos/netbsd.png">
          <img src="images/logos/nixos.png">
          <img src="images/logos/openSUSE.png">
          <img src="images/logos/openwrt.png">
          <img src="images/logos/tails.png">
          <img src="images/logos/tor.png">
          <img src="images/logos/webconverger.png">
           <div class="fragment">Reproducible Builds summits (Athens 2015, Berlin 2016)</li>
          </div>
         </p>
      </section>

      <section>
        <h2>Projects using Profitbricks ressources via jenkins.debian.net</h2>
        <p>works:
          <img src="images/logos/coreboot.png">
          <img src="images/logos/debian.png">
          <img src="images/logos/freebsd.png">
          <img src="images/logos/lede.png">
          <img src="images/logos/netbsd.png">
          <img src="images/logos/openwrt.png">
         </p>
        <p>worked:
          <img src="images/logos/archlinux.png">
          <img src="images/logos/fedora.png">
         </p>
        <p>work in progress:
          <img src="images/logos/f-droid.png">
          <img src="images/logos/guix.png">
         </p>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>
 	 Ressources used by reproducible.debian.net, by architecture &amp; sponsor
	</h2>
        <ul>
          <li>13 amd64 systems, sponsored by Profitbricks</li>
          <li>4 i386 systems, sponsored by Profitbricks</li>
          <li>22 armhf systems, sponsored by vagrant@d.o, Debian &amp; other donations</li>
          <li>soon: 8 arm64 systems, sponsored by codethink.co.uk</li>
        </ul>
      </section>


      <section data-background-color="white" data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>Usually I thank:</h2>
        <p style="text-align: center;">
          <img src="images/cii.png">
          <br>
          <img src="images/lf.png">
          <br>
          <img src="images/profitbricks.jpg">
          <br>
          <img src="images/debian_logo.png">
        </p>
      </section>

      <section data-background="images/wholeworld.jpg" data-background-size="28%" data-background-position="99% 2%">
        <h2>Todays special thanks:</h2>
        <p style="text-align: center;">
          <img src="images/profitbricks.jpg">
	  <ul>
            <li>from Debian, <code>jenkins.debian.net</code> would not have been possible like this without <em>your support!</em></li>
            <li>from many many folks interested in Reproducible Builds!</li><!-- thanks to <em>you</em> <code>reproducible.debian.net</code>
             could grow into <code>tests.reproducible-builds.org</code> so smoothly!</li> -->
          </ul>
        </p>
      </section>

      <section data-background="images/debian.jpg" data-background-color="black">
        <h2 style="text-align: center;">Questions?</h2>

        <br />
        <br />

        <table>
        <tr>
          <td>
            <a href="mailto:holger@debian.org">holger@debian.org</a>
          </td>
          <td style="text-align: right;">
            <code>B8BF 5413 7B09 D35C F026  FE9D 091A B856 069A AA1C</code>
          </td>
        </tr>
        </table>

        <br>

        <p style="text-align: center;">
          <a href="https://jenkins.debian.net/"><code>https://jenkins.debian.net</code></a>
          <br>
          <a href="https://reproducible-builds.org/"><code>https://reproducible-builds.org</code></a>
 	 <br />
	 <br />
	 <br />
 	 <br />
	 <br />
	 <br />
        </p>
        <p style="text-align: center;">
         <small> …and many thanks to Chris Lamb for the nice slides design!</small>
        </p>
      </section>
    </div>
  </div>

  <script src="lib/js/head.min.js"></script>
  <script src="js/reveal.js"></script>
  <script>
    Reveal.initialize({
      controls: false,
      progress: false,
      history: true
    });
  </script>
</body>
</html>