3 \setmainfont{FreeSerif}
9 \usepackage[bf]{caption}
15 \usepackage{tcolorbox}
17 \BeforeBeginEnvironment{minted}{\begin{tcolorbox}}%
18 \AfterEndEnvironment{minted}{\end{tcolorbox}}%
19 % \usepackage{multirow}
22 \usepackage[backend=biber,natbib=true,hyperref=true,style=nature]{biblatex}
23 \addbibresource{references.bib}
24 % \usepackage[nomargin,inline,draft]{fixme}
25 % \newcommand{\DLA}[1]{\textcolor{red}{\fxnote{DLA: #1}}}
26 % \usepackage[hyperfigures,bookmarks,colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black]{hyperref}
30 \usepackage{zref-xr,zref-user}
31 \renewcommand*{\bibfont}{\tiny}
32 \usepackage[absolute,overlay]{textpos}
36 \usetheme{Montpellier}
37 %\useoutertheme[hideallsubsections]{debiansidebar}
38 % \setbeamercovered{transparent}
41 \setbeamertemplate{navigation symbols}{}%remove navigation symbols
43 \usepackage[nomargin,inline,draft]{fixme}
47 \logo{\begin{tikzpicture}% Pale figure
48 {\node[opacity=0.3] {\includegraphics[width=2cm,keepaspectratio]{figures/openlogo-crop.pdf}};}%
50 \author{Don Armstrong}
52 \subtitle{22 Years of Bugs}
53 \date{August 10th, 2017}
54 \titlegraphic{\includegraphics[height=0.2\textheight,keepaspectratio]{figures/openlogo-crop.pdf}}
57 \setbeamercolor{postit}{fg=black,bg=yellow}
59 % State of the BTS: new features, changes and tips
61 % The bug tracking system is where all bugs that affect Debian are
62 % filed. New features, including the affects, summary, and local debbugs
63 % mirror will be presented and demonstrated. Some of the underlying
64 % architectural changes to the codebase in debbugs to make it more
65 % maintainable and deployable are also outlined. Finally, a set of tips
66 % and tricks that can be used to make the BTS easier to use are
72 % - local debbugs mirror for offline work
76 % - multi-distribution/arch status
77 % - control changes at submit@ time
78 % - Code Architecture Changes
80 % - Control abstraction
81 % - release to experimental
84 <<load.libraries,echo=FALSE,results="hide",error=FALSE,message=FALSE,cache=FALSE>>=
91 opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.8\\textheight",out.extra="keepaspectratio",fig.width=6/1.2,fig.height=4/1.2)
92 opts_chunk$set(cache=TRUE, autodep=TRUE)
93 options(device = function(file, width = 6/1.2, height = 4/1.2, ...) {
94 cairo_pdf(tempfile(), width = width, height = height, ...)
99 <<scientific_format,echo=FALSE>>=
100 scientific_10 <- function(x) {
101 parse(text=gsub("e", " %*% 10^", scientific_format()(x)))
107 %\setbeamercolor{frametitle}[bg=-red!90!green!10,fg=black]
109 \frame[plain]{\titlepage
110 Code and slides are here:
111 \qrcode[padding]{https://dla2.us/p/debbugs2017}
112 \url{https://dla2.us/p/debbugs2017}
116 % \begin{frame}{Debbugs}
117 % \tableofcontents[subsectionstyle=hide]
120 \section{Introduction to Debbugs}
122 \subsection{Introduction}
123 \begin{frame}{Goals of this talk}
125 \column{0.5\textwidth}
129 \item Planned features
130 \item Places you can help
132 \column{0.5\textwidth}
133 \includegraphics[width=\textwidth,keepaspectratio]{images/rc_buggy}
136 \begin{frame}{Goals of the BTS}
138 \column{0.4\textwidth}
139 \includegraphics[width=\textwidth,keepaspectratio]{images/not_a_bug}
140 \column{0.6\textwidth}
142 \item Reporting of \only<1>{Features}\only<2>{Bugs}
143 \item Evolution of \only<1>{Features}\only<2>{Bugs}
144 \item Fixing of \only<1>{Features}\only<2>{Bugs}
145 \item Reducing impact of \only<1>{Features}\only<2>{Bugs}
150 \section{Bugs in Debian}
151 \subsection{Bug Reporting Rate}
152 \begin{frame}{Bugs from the beginning of time}
154 <<bug.growth,fig=TRUE,echo=FALSE,cache.extra=file.info("data/sorted_bug_growth_for_r_every_500.txt")[,"mtime"]>>=
155 bug.growth <- fread("data/sorted_bug_growth_for_r_every_500.txt")
156 colnames(bug.growth) <- c("time","bugs")
157 bug.growth <- bug.growth[pmax(bugs) <= as.numeric(bugs),]
158 bug.growth <- bug.growth[order(time),]
159 while (bug.growth[,any(c(0,diff(bugs)) < 0)]) {
161 bug.growth[c(0,diff(bugs))>=0,]
164 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+
165 as.numeric(bug.growth$time))]
166 bug.growth[,`bugs per day`:=c(0,diff(bugs)/
167 as.double(diff(date),"days"))
169 print(ggplot(bug.growth,#[date > as.POSIXct(ISOdatetime(2005,1,1,0,0,0)),],
171 xlab("Time")+ylab("Bugs filed in Debian")+
172 scale_y_continuous(labels = scientific_10)+
178 \begin{frame}[fragile]{Bug Growth Rate}
179 <<bug_growth_rate,echo=FALSE>>=
180 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2014,1,1,0,0,0)),],
181 aes(x=date,y=`bugs per day`))+
182 xlab("Time")+ylab("Bugs filed per day")
183 + scale_y_log10(breaks=c(60,100,200,400,800))
184 + geom_line()+stat_smooth(method="lm")
185 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2015,04,25,0,0,0)),"bugs per day"=400),label="Jessie",color="red")
186 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2017,06,17,0,0,0)),"bugs per day"=400),label="Stretch",color="purple")
191 \begin{frame}[fragile]{Is the bug filing rate decreasing?}
193 <<bug_growth_rate_over_time>>=
194 summary(lm(log(`bugs per day`)~date,
195 bug.growth[date > "2014-01-01 PST",]))
198 Not significantly decreasing.
201 \begin{frame}{My entries into Christian's game}
203 \column{0.5\textwidth}
205 <<bugs.filed,fig=TRUE,echo=FALSE,warning=FALSE,fig.width=3,fig.height=3>>=
206 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),],
208 xlab("Time")+ylab("Bugs filed in Debian")+
209 scale_y_continuous(labels = scientific_10)+
210 geom_point()+stat_smooth(method="lm"))
211 bugs.filed.per.day <-
212 lm(bugs~date,bug.growth)$coeff[2]*3600*24
213 temp.lm <- lm(date~bugs,bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),])
215 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=880000,date=NA))))
217 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=900000,date=NA))))
219 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=1000000,date=NA))))
222 \column{0.5\textwidth}
223 Roughly \Sexpr{format(bugs.filed.per.day,digits=1)} bugs are filed per
224 day. The 880000th bug will be filed at \Sexpr{bug.880000}, the
225 900000th bug will be filed at \Sexpr{bug.900000}, and bug one million will be filled
231 \subsection{Bug Fixing Rate}
234 <<bugs.closed,fig=TRUE,echo=FALSE,width=7,height=5,warning=FALSE,error=FALSE,cache.extra=file.info("data/bug_closed_time_series.txt")[,"mtime"]>>=
235 bug.closed.series <- fread(file="data/bug_closed_time_series.txt")
236 colnames(bug.closed.series) <- c("archived.bugs","year.week")
237 bug.closed.series[,week:=
238 gsub("(\\d+)-(\\d+)","\\2",year.week)]
239 bug.closed.series[,year:=
240 gsub("(\\d+)-(\\d+)","\\1",year.week)]
241 bug.closed.series[,doy:= as.numeric(week)*7]
242 bug.closed.series[,year.doy:=
243 paste(sep="-",year,doy)]
244 bug.closed.series[,date:=
245 as.POSIXct(strptime(year.doy,
248 # bug.closed.ts <- ts(bug.closed.series[,1],start=1,frequency=7)
250 print(ggplot(bug.closed.series[date > as.POSIXct(ISOdatetime(2008,1,1,0,0,0)),],
251 aes(x=date,y=archived.bugs/7))+geom_line()+stat_smooth(method="lm")+
252 ylab("Bugs archived Per Day")+xlab("Time"))
253 bugs.closed.per.day <-
254 bug.closed.series[,sum(archived.bugs)]/
255 as.numeric(bug.closed.series[nrow(bug.closed.series),date]-
256 bug.closed.series[1,date])
259 Roughly \Sexpr{format(bugs.closed.per.day,digits=1)} bugs are closed per day.
263 \begin{frame}{RC Bugs in the Past Year}
265 <<rc.bugs,fig=TRUE,echo=FALSE,warning=FALSE,cache.extra=file.info("data/rc_bugs.txt")[,"mtime"]>>=
267 data.table(read.table(file="data/rc_bugs.txt",
268 header=TRUE,fill=TRUE))
270 as.POSIXct(strptime(date,
271 format="%Y%m%d%H%M"))]
272 rc.bugs[,unknown:=NULL]
273 rc.bugs[,unknown.1:=NULL]
275 rc.bugs <- rc.bugs[c(0,diff(total)) > -1000,]
278 data.table(melt(rc.bugs,id="date"))
279 print(ggplot(rc.bugs.long[date >
280 as.POSIXct(ISOdatetime(2016,08,1,0,0,0)),]
281 ,aes(x=date,y=value,color=variable))+
283 ylab("# of Release Critical Bugs")+xlab("Time")+
284 theme(legend.position="top")+
285 scale_color_discrete("Measure"))
290 \section{Debbugs Structure and Infrastructure}
292 \subsection{BTS System Diagram}
293 \begin{frame}{BTS system Diagram}
295 \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{figures/bug_global_layout}
299 \subsection{Debbugs Box Diagram}
300 \begin{frame}{Debbugs Box Diagram}
302 \input{debbugs_layout}
306 \section{New Features}
308 \subsection{Database}
310 \subsubsection{Perl Database Infrastucture}
311 \begin{frame}{Perl Database Infrastructure}
314 \item DBIx::Class::Schema::Loader -- SQL schema to DBIx::Class
315 \item DBIx::Class::DeploymentHandler -- Upgrades of Schema
316 \item Debbugs::DB -- Debbugs SQL Module
321 \subsubsection{SQL Loading}
322 \begin{frame}[fragile]{SQL Loading}
327 debbugs-loadsql bugs;
328 debbugs-loadsql bugs archive;
330 \item Load Versioning information
332 debbugs-loadsql versions;
333 debbugs-loadsql debinfo;
338 \subsubsection{Fun Queries}
340 \begin{frame}[fragile]{Messages to bugs}
343 SELECT count(*),c.addr FROM
344 message_correspondent mc
345 JOIN correspondent c ON mc.correspondent=c.id
346 WHERE correspondent_type='from'
347 GROUP BY mc.correspondent,c.addr
348 ORDER BY count DESC LIMIT 5;
352 -------+---------------------------------
353 5123 | bubulle@debian.org
354 4346 | joeyh@debian.org
355 4214 | biebl@debian.org
356 3875 | tbm@cyrius.com
357 3632 | ftpmaster@ftp-master.debian.org
361 \begin{frame}[fragile]{Single-message correspondents}
364 SELECT count (*) FROM
365 (SELECT count(*),c.addr
366 FROM message_correspondent mc
367 JOIN correspondent c ON
368 mc.correspondent=c.id
369 WHERE correspondent_type='from'
370 GROUP BY mc.correspondent,
372 HAVING count(*) = 1) AS foo;
383 \begin{frame}[fragile]{More fun queries}
385 SELECT count(*),t.tag
387 JOIN bug_tag bt ON b.id=bt.bug
388 JOIN tag t on bt.tag=t.id
389 GROUP by bt.tag,t.tag
390 ORDER by count DESC LIMIT 5;
394 --------+----------------
399 25566 | fixed-upstream
403 \subsection{Database status caching}
404 \begin{frame}[fragile]{Status caching ``working''}
406 SELECT count(*),status
407 FROM bug_status_cache bsc
408 JOIN suite s ON bsc.suite=s.id
409 WHERE s.suite_name='unstable'
421 \subsection{Work still needed for SQL}
422 \begin{frame}{Work Still needed for SQL}
424 \item Integration into CGI
430 \section{New(ish) Features}
432 \subsection{New Changes}
433 \begin{frame}{New Changes}
435 \column{0.5\textwidth}
437 \item mailto links (demo)
438 \item forcemerge does the right thing
439 \item control at submit time
441 \column{0.5\textwidth}
442 \includegraphics[width=\textwidth,keepaspectratio]{images/telegraph_bug}
446 \section{Future features}
448 \subsection{Status Caching}
449 \begin{frame}{Status Caching}
451 \item Cache status of bugs (presence/absence at all distributions)
452 \item Speed up display of \url{http://bugs.debian.org/src:linux-2.6}
453 \item Allows for reverse status lookup
455 \item Enables finding bugs which are present in testing or unstable
460 \subsection{Statistics}
461 \begin{frame}{Statistics}
463 \column{0.5\textwidth}
465 \item Track status changes over time
466 \item Bugs found/fixed/absent in stable/testing/unstable over time
467 \item Bug submission times
468 \item Bug closure times
470 \item Per package, severity, maintainer tracking of the above
472 \column{0.5\textwidth}
474 \includegraphics[width=\textwidth,height=0.35\textheight,keepaspectratio]{images/bug}
480 \subsection{Additional Planned Features}
481 \begin{frame}{More planned features}
483 \column{0.5\textwidth}
485 \item HTTP based reporting system with e-mail roundtrip
486 \item Release Debbugs again
487 \item Bug mailing lists in Debbugs
489 \item Avoid duplicate mail
490 \item Opt in/out of mail
492 \item Merging of merged bug reports
493 \item Threading in report
495 \column{0.5\textwidth}
496 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
500 \begin{frame}{Even More planned features}
502 \column{0.5\textwidth}
504 \item Usercategory duplication and replay
505 \item Remote Attachments
506 \item New Spool Storage Format
507 \item Usertags visibility
508 \item Smarter CGI options
510 \column{0.5\textwidth}
511 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
519 \section{Places you can help}
521 \begin{frame}{7 tasks seeking contributors}
523 \item Documentation of Usercategories
524 \item Implementation of rss feeds for packages and bugs
525 \item CGI options on pkgreport.cgi for usertags et al. \#536378)
526 \item Documentation of multipe-package reassign and when it or
527 affects should be used
528 \item Mailto link with subject, references, etc. all filled in
529 \item Documentation for local-debbugs configuration file (behaves
534 \begin{frame}{Getting started on these tasks}
536 \item Upstream branches: \url{http://bugs.debian.org/debbugs-source/}
538 \item master (upstream debbugs): git clone \url{http://bugs.debian.org/debbugs-source/debbugs.git}
539 \item debian (debian branch): git clone -b debian \url{http://bugs.debian.org/debbugs-source/debbugs.git}
540 \item Checked out branches are also available at
541 \url{http://bugs.debian.org/debbugs-source/master} and
542 \url{http://bugs.debian.org/debbugs-source/debian}
544 \item My branches: \url{http://git.donarmstrong.com/debbugs.git}
545 \item Mailing list debian-debbugs@lists.debian.org
546 \item IRC \#debbugs or \#debian-bugs on irc.debian.org; I'm dondelelcaro
550 \begin{frame}{The Debbugs Team}
558 \item Emeritus Developers
560 \item Steiner Gunderson
569 \begin{frame}{Questions?}
570 \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{images/don_at_burning_man.jpg}