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}{Bugs from the beginning of time}
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),]
157 while (bug.growth[,any(c(0,diff(bugs)) < 0)]) {
159 bug.growth[c(0,diff(bugs))>=0,]
162 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+
163 as.numeric(bug.growth$time))]
164 bug.growth[,`bugs per day`:=c(0,diff(bugs)/
165 as.double(diff(date),"days"))
167 print(ggplot(bug.growth,#[date > as.POSIXct(ISOdatetime(2005,1,1,0,0,0)),],
169 xlab("Time")+ylab("Bugs filed in Debian")+
170 scale_y_continuous(labels = scientific_10)+
176 \begin{frame}{Bug Growth Rate}
177 <<bug_growth_rate,echo=FALSE>>=
178 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2014,1,1,0,0,0)),],
179 aes(x=date,y=`bugs per day`))+
180 xlab("Time")+ylab("Bugs filed per day")
181 + scale_y_log10(breaks=c(60,100,200,400,800))
182 + geom_line()+stat_smooth(method="lm")
183 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2015,04,25,0,0,0)),"bugs per day"=400),label="Jessie",color="red")
184 + geom_label(data=data.table(date=as.POSIXct(ISOdatetime(2017,06,17,0,0,0)),"bugs per day"=400),label="Stretch",color="purple")
189 \begin{frame}{My entries into Cristian's game}
191 \column{0.5\textwidth}
193 <<bugs.filed,fig=TRUE,echo=FALSE,warning=FALSE,fig.width=3,fig.height=3>>=
194 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),],
196 xlab("Time")+ylab("Bugs filed in Debian")+
197 scale_y_continuous(labels = scientific_10)+
198 geom_point()+stat_smooth(method="lm"))
199 bugs.filed.per.day <-
200 lm(bugs~date,bug.growth)$coeff[2]*3600*24
201 temp.lm <- lm(date~bugs,bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),])
203 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=880000,date=NA))))
205 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=900000,date=NA))))
207 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=1000000,date=NA))))
210 \column{0.5\textwidth}
211 Roughly \Sexpr{format(bugs.filed.per.day,digits=1)} bugs are filed per
212 day. The 880000th bug will be filed at \Sexpr{bug.880000}, the
213 900000th bug will be filed at \Sexpr{bug.900000}, and bug one million will be filled
219 \subsection{Bug Fixing Rate}
222 <<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"]>>=
223 bug.closed.series <- fread(file="data/bug_closed_time_series.txt")
224 colnames(bug.closed.series) <- c("archived.bugs","year.week")
225 bug.closed.series[,week:=
226 gsub("(\\d+)-(\\d+)","\\2",year.week)]
227 bug.closed.series[,year:=
228 gsub("(\\d+)-(\\d+)","\\1",year.week)]
229 bug.closed.series[,doy:= as.numeric(week)*7]
230 bug.closed.series[,year.doy:=
231 paste(sep="-",year,doy)]
232 bug.closed.series[,date:=
233 as.POSIXct(strptime(year.doy,
236 # bug.closed.ts <- ts(bug.closed.series[,1],start=1,frequency=7)
238 print(ggplot(bug.closed.series[date > as.POSIXct(ISOdatetime(2008,1,1,0,0,0)),],
239 aes(x=date,y=archived.bugs/7))+geom_line()+stat_smooth(method="lm")+
240 ylab("Bugs archived Per Day")+xlab("Time"))
241 bugs.closed.per.day <-
242 bug.closed.series[,sum(archived.bugs)]/
243 as.numeric(bug.closed.series[nrow(bug.closed.series),date]-
244 bug.closed.series[1,date])
247 Roughly \Sexpr{format(bugs.closed.per.day,digits=1)} bugs are closed per day.
251 \begin{frame}{RC Bugs in the Past Year}
253 <<rc.bugs,fig=TRUE,echo=FALSE,warning=FALSE,cache.extra=file.info("data/rc_bugs.txt")[,"mtime"]>>=
255 data.table(read.table(file="data/rc_bugs.txt",
256 header=TRUE,fill=TRUE))
258 as.POSIXct(strptime(date,
259 format="%Y%m%d%H%M"))]
260 rc.bugs[,unknown:=NULL]
261 rc.bugs[,unknown.1:=NULL]
263 rc.bugs <- rc.bugs[c(0,diff(total)) > -1000,]
266 data.table(melt(rc.bugs,id="date"))
267 print(ggplot(rc.bugs.long[date >
268 as.POSIXct(ISOdatetime(2016,08,1,0,0,0)),]
269 ,aes(x=date,y=value,color=variable))+
271 ylab("# of Release Critical Bugs")+xlab("Time")+
272 theme(legend.position="top")+
273 scale_color_discrete("Measure"))
276 \setbeamercolor{postit}{fg=black,bg=yellow}
277 \begin{textblock}{4}(6,4)
279 \begin{beamercolorbox}[sep=1em,wd=5cm]{postit}
280 \centering \huge Too many RC bugs!
287 \section{Debbugs Structure and Infrastructure}
289 \subsection{BTS System Diagram}
290 \begin{frame}{BTS system Diagram}
292 \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{figures/bug_global_layout}
296 \subsection{Debbugs Box Diagram}
297 \begin{frame}{Debbugs Box Diagram}
299 \input{debbugs_layout}
303 \section{Database Ho!}
305 \subsection{Overall Database Design}
307 \begin{frame}{Overall Database Design}
309 \input{debbugs_layout_db}
313 \subsection{Perl Database Infrastucture}
314 \begin{frame}{Perl Database Infrastructure}
317 \item DBIx::Class::Schema::Loader -- SQL schema to DBIx::Class
318 \item DBIx::Class::DeploymentHandler -- Upgrades of Schema
319 \item Debbugs::DB -- Debbugs SQL Module
324 \subsection{SQL Design}
325 \begin{frame}{SQL Schema}
326 \includegraphics[width=\textwidth,keepaspectratio]{figures/schema.png}
328 \item Current Debbugs SQL Schema
332 \subsubsection{dak SQL Design}
333 \begin{frame}{dak SQL Schema}
334 \includegraphics[width=\textwidth,keepaspectratio]{figures/dak_schema.png}
336 \item Inspiration taken from dak SQL Schema where appropriate
340 \subsection{SQL Loading}
341 \begin{frame}[fragile]{SQL Loading}
346 debbugs-loadsql bugs;
347 debbugs-loadsql bugs archive;
349 \item Load Versioning information
351 debbugs-loadsql versions;
352 debbugs-loadsql debinfo;
357 \subsection{SQL Working}
358 \begin{frame}[fragile]{SQL Working}
360 \begin{lstlisting}[language=SQL]
361 SELECT count(*) FROM bug
362 WHERE last_modified > '2014-07-01'
364 AND owner IS NOT NULL;
366 \begin{visibleenv}<2>
375 \subsection{Work still needed for SQL}
376 \begin{frame}{Work Still needed for SQL}
378 \item Logfile loading (for full text searching)
379 \item Status Caching (for faster page loading)
385 \section{New(ish) Features}
387 \subsection{New Changes}
388 \begin{frame}{New Changes}
390 \column{0.5\textwidth}
392 \item mailto links (demo)
393 \item forcemerge does the right thing
394 \item control at submit time
396 \column{0.5\textwidth}
397 \includegraphics[width=\textwidth,keepaspectratio]{images/telegraph_bug}
401 \section{Future features}
403 \subsection{Status Caching}
404 \begin{frame}{Status Caching}
406 \item Cache status of bugs (presence/absence at all distributions)
407 \item Speed up display of \url{http://bugs.debian.org/src:linux-2.6}
408 \item Allows for reverse status lookup
410 \item Enables finding bugs which are present in testing or unstable
415 \subsection{Statistics}
416 \begin{frame}{Statistics}
418 \column{0.5\textwidth}
420 \item Track status changes over time
421 \item Bugs found/fixed/absent in stable/testing/unstable over time
422 \item Bug submission times
423 \item Bug closure times
425 \item Per package, severity, maintainer tracking of the above
427 \column{0.5\textwidth}
429 \includegraphics[width=\textwidth,height=0.35\textheight,keepaspectratio]{images/bug}
435 \subsection{Additional Planned Features}
436 \begin{frame}{More planned features}
438 \column{0.5\textwidth}
440 \item HTTP based reporting system with e-mail roundtrip
441 \item Release Debbugs again
442 \item Bug mailing lists in Debbugs
444 \item Avoid duplicate mail
445 \item Opt in/out of mail
447 \item Merging of merged bug reports
448 \item Threading in report
450 \column{0.5\textwidth}
451 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
455 \begin{frame}{Even More planned features}
457 \column{0.5\textwidth}
459 \item Usercategory duplication and replay
460 \item Remote Attachments
461 \item New Spool Storage Format
462 \item Usertags visibility
463 \item Smarter CGI options
465 \column{0.5\textwidth}
466 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
474 \section{Places you can help}
476 \begin{frame}{7 tasks seeking contributors}
478 \item Documentation of Usercategories
479 \item Implementation of rss feeds for packages and bugs
480 \item CGI options on pkgreport.cgi for usertags et al. \#536378)
481 \item Documentation of multipe-package reassign and when it or
482 affects should be used
483 \item Mailto link with subject, references, etc. all filled in
484 \item Documentation for local-debbugs configuration file (behaves
489 \begin{frame}{Getting started on these tasks}
491 \item Upstream branches: \url{http://bugs.debian.org/debbugs-source/}
493 \item master (upstream debbugs): git clone \url{http://bugs.debian.org/debbugs-source/debbugs.git}
494 \item debian (debian branch): git clone -b debian \url{http://bugs.debian.org/debbugs-source/debbugs.git}
495 \item Checked out branches are also available at
496 \url{http://bugs.debian.org/debbugs-source/master} and
497 \url{http://bugs.debian.org/debbugs-source/debian}
499 \item My branches: \url{http://git.donarmstrong.com/debbugs.git}
500 \item Mailing list debian-debbugs@lists.debian.org
501 \item IRC \#debbugs or \#debian-bugs on irc.debian.org; I'm dondelelcaro
505 \begin{frame}{The Debbugs Team}
513 \item Emeritus Developers
515 \item Steiner Gunderson
524 \begin{frame}{Questions?}
525 \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{images/don_at_burning_man.jpg}