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 % State of the BTS: new features, changes and tips
59 % The bug tracking system is where all bugs that affect Debian are
60 % filed. New features, including the affects, summary, and local debbugs
61 % mirror will be presented and demonstrated. Some of the underlying
62 % architectural changes to the codebase in debbugs to make it more
63 % maintainable and deployable are also outlined. Finally, a set of tips
64 % and tricks that can be used to make the BTS easier to use are
70 % - local debbugs mirror for offline work
74 % - multi-distribution/arch status
75 % - control changes at submit@ time
76 % - Code Architecture Changes
78 % - Control abstraction
79 % - release to experimental
82 <<load.libraries,echo=FALSE,results="hide",error=FALSE,message=FALSE,cache=FALSE>>=
89 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)
90 opts_chunk$set(cache=TRUE, autodep=TRUE)
91 options(device = function(file, width = 6/1.2, height = 4/1.2, ...) {
92 cairo_pdf(tempfile(), width = width, height = height, ...)
97 <<scientific_format,echo=FALSE>>=
98 scientific_10 <- function(x) {
99 parse(text=gsub("e", " %*% 10^", scientific_format()(x)))
105 %\setbeamercolor{frametitle}[bg=-red!90!green!10,fg=black]
107 \frame[plain]{\titlepage
108 Code and slides are here:
109 \qrcode[padding]{https://dla2.us/p/debbugs2017}
110 \url{https://dla2.us/p/debbugs2017}
114 % \begin{frame}{Debbugs}
115 % \tableofcontents[subsectionstyle=hide]
118 \section{Introduction to Debbugs}
120 \subsection{Introduction}
121 \begin{frame}{Goals of this talk}
123 \column{0.5\textwidth}
127 \item Planned features
128 \item Places you can help
130 \column{0.5\textwidth}
131 \includegraphics[width=\textwidth,keepaspectratio]{images/rc_buggy}
134 \begin{frame}{Goals of the BTS}
136 \column{0.4\textwidth}
137 \includegraphics[width=\textwidth,keepaspectratio]{images/not_a_bug}
138 \column{0.6\textwidth}
140 \item Reporting of \only<1>{Features}\only<2>{Bugs}
141 \item Evolution of \only<1>{Features}\only<2>{Bugs}
142 \item Fixing of \only<1>{Features}\only<2>{Bugs}
143 \item Reducing impact of \only<1>{Features}\only<2>{Bugs}
148 \section{Bugs in Debian}
149 \subsection{Bug Reporting Rate}
150 \begin{frame}{How many bugs do we have?}
152 <<bug.growth,fig=TRUE,echo=FALSE,cache.extra=file.info("data/sorted_bug_growth_for_r_every_500.txt")[,"mtime"]>>=
153 bug.growth <- fread("data/sorted_bug_growth_for_r_every_500.txt")
154 colnames(bug.growth) <- c("time","bugs")
155 bug.growth <- bug.growth[pmax(bugs) <= as.numeric(bugs),]
156 bug.growth <- bug.growth[order(time),]
158 bug.growth[c(0,diff(bugs))>=0,]
160 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+
161 as.numeric(bug.growth$time))]
162 bug.growth[,`bugs per day`:=c(0,diff(bugs)/
163 as.double(diff(date),"days"))
165 print(ggplot(bug.growth,#[date > as.POSIXct(ISOdatetime(2005,1,1,0,0,0)),],
167 xlab("Time")+ylab("Bugs filed in Debian")+
168 scale_y_continuous(labels = scientific_10)+
169 geom_point()+stat_smooth(method="lm"))
174 \begin{frame}{Bug Growth Rate}
175 <<bug_growth_rate,echo=FALSE>>=
176 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2014,1,1,0,0,0)),],
177 aes(x=date,y=`bugs per day`))+
178 xlab("Time")+ylab("Bugs filed per day")
179 + scale_y_log10(breaks=c(60,100,200,400,800))
180 + geom_line()+stat_smooth(method="lm")
181 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2015,04,25,0,0,0)),"bugs per day"=400),label="Jessie",color="red")
182 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2017,06,17,0,0,0)),"bugs per day"=400),label="Stretch",color="purple")
187 \begin{frame}{My entries into Cristian's game}
189 \column{0.5\textwidth}
191 <<bugs.filed,fig=TRUE,echo=FALSE,warning=FALSE,fig.width=3,fig.height=3>>=
192 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),],
194 xlab("Time")+ylab("Bugs filed in Debian")+
195 scale_y_continuous(labels = scientific_10)+
196 geom_point()+stat_smooth(method="lm"))
197 bugs.filed.per.day <-
198 lm(bugs~date,bug.growth)$coeff[2]*3600*24
199 temp.lm <- lm(date~bugs,bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),])
201 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=880000,date=NA))))
203 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=900000,date=NA))))
205 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=1000000,date=NA))))
208 \column{0.5\textwidth}
209 Roughly \Sexpr{format(bugs.filed.per.day,digits=1)} bugs are filed per
210 day. The 880000th bug will be filed at \Sexpr{bug.880000}, the
211 900000th bug will be filed at \Sexpr{bug.900000}, and bug one million will be filled
217 \subsection{Bug Fixing Rate}
220 <<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"]>>=
221 bug.closed.series <- fread(file="data/bug_closed_time_series.txt")
222 colnames(bug.closed.series) <- c("archived.bugs","year.week")
223 bug.closed.series[,week:=
224 gsub("(\\d+)-(\\d+)","\\2",year.week)]
225 bug.closed.series[,year:=
226 gsub("(\\d+)-(\\d+)","\\1",year.week)]
227 bug.closed.series[,doy:= as.numeric(week)*7]
228 bug.closed.series[,year.doy:=
229 paste(sep="-",year,doy)]
230 bug.closed.series[,date:=
231 as.POSIXct(strptime(year.doy,
234 # bug.closed.ts <- ts(bug.closed.series[,1],start=1,frequency=7)
236 print(ggplot(bug.closed.series[date > as.POSIXct(ISOdatetime(2008,1,1,0,0,0)),],
237 aes(x=date,y=archived.bugs/7))+geom_line()+stat_smooth(method="lm")+
238 ylab("Bugs archived Per Day")+xlab("Time"))
239 bugs.closed.per.day <-
240 bug.closed.series[,sum(archived.bugs)]/
241 as.numeric(bug.closed.series[nrow(bug.closed.series),date]-
242 bug.closed.series[1,date])
245 Roughly \Sexpr{format(bugs.closed.per.day,digits=1)} bugs are closed per day.
249 \begin{frame}{RC Bugs in the Past Year}
251 <<rc.bugs,fig=TRUE,echo=FALSE,warning=FALSE,cache.extra=file.info("data/rc_bugs.txt")[,"mtime"]>>=
253 data.table(read.table(file="data/rc_bugs.txt",
254 header=TRUE,fill=TRUE))
256 as.POSIXct(strptime(date,
257 format="%Y%m%d%H%M"))]
258 rc.bugs[,unknown:=NULL]
259 rc.bugs[,unknown.1:=NULL]
261 rc.bugs <- rc.bugs[c(0,diff(total)) > -1000,]
264 data.table(melt(rc.bugs,id="date"))
265 print(ggplot(rc.bugs.long[date >
266 as.POSIXct(ISOdatetime(2016,08,1,0,0,0)),]
267 ,aes(x=date,y=value,color=variable))+
269 ylab("# of Release Critical Bugs")+xlab("Time")+
270 theme(legend.position="top")+
271 scale_color_discrete("Measure"))
274 \setbeamercolor{postit}{fg=black,bg=yellow}
275 \begin{textblock}{4}(6,4)
277 \begin{beamercolorbox}[sep=1em,wd=5cm]{postit}
278 \centering \huge Too many RC bugs!
285 \section{Debbugs Structure and Infrastructure}
287 \subsection{BTS System Diagram}
288 \begin{frame}{BTS system Diagram}
290 \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{figures/bug_global_layout}
294 \subsection{Debbugs Box Diagram}
295 \begin{frame}{Debbugs Box Diagram}
297 \input{debbugs_layout}
301 \section{Database Ho!}
303 \subsection{Overall Database Design}
305 \begin{frame}{Overall Database Design}
307 \input{debbugs_layout_db}
311 \subsection{Perl Database Infrastucture}
312 \begin{frame}{Perl Database Infrastructure}
315 \item DBIx::Class::Schema::Loader -- SQL schema to DBIx::Class
316 \item DBIx::Class::DeploymentHandler -- Upgrades of Schema
317 \item Debbugs::DB -- Debbugs SQL Module
322 \subsection{SQL Design}
323 \begin{frame}{SQL Schema}
324 \includegraphics[width=\textwidth,keepaspectratio]{figures/schema.png}
326 \item Current Debbugs SQL Schema
330 \subsubsection{dak SQL Design}
331 \begin{frame}{dak SQL Schema}
332 \includegraphics[width=\textwidth,keepaspectratio]{figures/dak_schema.png}
334 \item Inspiration taken from dak SQL Schema where appropriate
338 \subsection{SQL Loading}
339 \begin{frame}[fragile]{SQL Loading}
344 debbugs-loadsql bugs;
345 debbugs-loadsql bugs archive;
347 \item Load Versioning information
349 debbugs-loadsql versions;
350 debbugs-loadsql debinfo;
355 \subsection{SQL Working}
356 \begin{frame}[fragile]{SQL Working}
358 \begin{lstlisting}[language=SQL]
359 SELECT count(*) FROM bug
360 WHERE last_modified > '2014-07-01'
362 AND owner IS NOT NULL;
364 \begin{visibleenv}<2>
373 \subsection{Work still needed for SQL}
374 \begin{frame}{Work Still needed for SQL}
376 \item Logfile loading (for full text searching)
377 \item Status Caching (for faster page loading)
383 \section{New(ish) Features}
385 \subsection{New Changes}
386 \begin{frame}{New Changes}
388 \column{0.5\textwidth}
390 \item mailto links (demo)
391 \item forcemerge does the right thing
392 \item control at submit time
394 \column{0.5\textwidth}
395 \includegraphics[width=\textwidth,keepaspectratio]{images/telegraph_bug}
399 \section{Future features}
401 \subsection{Status Caching}
402 \begin{frame}{Status Caching}
404 \item Cache status of bugs (presence/absence at all distributions)
405 \item Speed up display of \url{http://bugs.debian.org/src:linux-2.6}
406 \item Allows for reverse status lookup
408 \item Enables finding bugs which are present in testing or unstable
413 \subsection{Statistics}
414 \begin{frame}{Statistics}
416 \column{0.5\textwidth}
418 \item Track status changes over time
419 \item Bugs found/fixed/absent in stable/testing/unstable over time
420 \item Bug submission times
421 \item Bug closure times
423 \item Per package, severity, maintainer tracking of the above
425 \column{0.5\textwidth}
427 \includegraphics[width=\textwidth,height=0.35\textheight,keepaspectratio]{images/bug}
433 \subsection{Additional Planned Features}
434 \begin{frame}{More planned features}
436 \column{0.5\textwidth}
438 \item HTTP based reporting system with e-mail roundtrip
439 \item Release Debbugs again
440 \item Bug mailing lists in Debbugs
442 \item Avoid duplicate mail
443 \item Opt in/out of mail
445 \item Merging of merged bug reports
446 \item Threading in report
448 \column{0.5\textwidth}
449 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
453 \begin{frame}{Even More planned features}
455 \column{0.5\textwidth}
457 \item Usercategory duplication and replay
458 \item Remote Attachments
459 \item New Spool Storage Format
460 \item Usertags visibility
461 \item Smarter CGI options
463 \column{0.5\textwidth}
464 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
472 \section{Places you can help}
474 \begin{frame}{7 tasks seeking contributors}
476 \item Documentation of Usercategories
477 \item Implementation of rss feeds for packages and bugs
478 \item CGI options on pkgreport.cgi for usertags et al. \#536378)
479 \item Documentation of multipe-package reassign and when it or
480 affects should be used
481 \item Mailto link with subject, references, etc. all filled in
482 \item Documentation for local-debbugs configuration file (behaves
487 \begin{frame}{Getting started on these tasks}
489 \item Upstream branches: \url{http://bugs.debian.org/debbugs-source/}
491 \item master (upstream debbugs): git clone \url{http://bugs.debian.org/debbugs-source/debbugs.git}
492 \item debian (debian branch): git clone -b debian \url{http://bugs.debian.org/debbugs-source/debbugs.git}
493 \item Checked out branches are also available at
494 \url{http://bugs.debian.org/debbugs-source/master} and
495 \url{http://bugs.debian.org/debbugs-source/debian}
497 \item My branches: \url{http://git.donarmstrong.com/debbugs.git}
498 \item Mailing list debian-debbugs@lists.debian.org
499 \item IRC \#debbugs or \#debian-bugs on irc.debian.org; I'm dondelelcaro
503 \begin{frame}{The Debbugs Team}
511 \item Emeritus Developers
513 \item Steiner Gunderson
522 \begin{frame}{Questions?}
523 \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{images/don_at_burning_man.jpg}