3 \setmainfont{FreeSerif}
9 \usepackage[bf]{caption}
14 % \usepackage{multirow}
17 \usepackage[backend=biber,natbib=true,hyperref=true,style=nature]{biblatex}
18 \addbibresource{references.bib}
19 % \usepackage[nomargin,inline,draft]{fixme}
20 % \newcommand{\DLA}[1]{\textcolor{red}{\fxnote{DLA: #1}}}
21 % \usepackage[hyperfigures,bookmarks,colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black]{hyperref}
25 \usepackage{zref-xr,zref-user}
26 \renewcommand*{\bibfont}{\tiny}
27 \usepackage[absolute,overlay]{textpos}
31 \usetheme{Montpellier}
32 %\useoutertheme[hideallsubsections]{debiansidebar}
33 % \setbeamercovered{transparent}
37 \usepackage[nomargin,inline,draft]{fixme}
41 \logo{\begin{tikzpicture}% Pale figure
42 {\node[opacity=0.3] {\includegraphics[width=2cm,keepaspectratio]{figures/openlogo-crop.pdf}};}%
44 \author{Don Armstrong}
46 \subtitle{Database Ho!}
47 %\date{August 11th, 2008}
48 \titlegraphic{\includegraphics[height=0.3\textheight,keepaspectratio]{figures/openlogo-crop.pdf}}
51 % State of the BTS: new features, changes and tips
53 % The bug tracking system is where all bugs that affect Debian are
54 % filed. New features, including the affects, summary, and local debbugs
55 % mirror will be presented and demonstrated. Some of the underlying
56 % architectural changes to the codebase in debbugs to make it more
57 % maintainable and deployable are also outlined. Finally, a set of tips
58 % and tricks that can be used to make the BTS easier to use are
64 % - local debbugs mirror for offline work
68 % - multi-distribution/arch status
69 % - control changes at submit@ time
70 % - Code Architecture Changes
72 % - Control abstraction
73 % - release to experimental
76 <<load.libraries,echo=FALSE,results="hide",error=FALSE,message=FALSE>>=
83 opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.8\\textheight",out.extra="keepaspectratio",fig.width=6,fig.height=4)
84 opts_chunk$set(cache=TRUE, autodep=TRUE)
85 options(device = function(file, width = 6, height = 4, ...) {
86 cairo_pdf(tempfile(), width = width, height = height, ...)
91 <<scientific_format,echo=FALSE>>=
92 scientific_10 <- function(x) {
93 parse(text=gsub("e", " %*% 10^", scientific_format()(x)))
99 %\setbeamercolor{frametitle}[bg=-red!90!green!10,fg=black]
101 \frame[plain]{\titlepage
102 Source available at \url{http://git.donarmstrong.com/debbugs-presentations.git}
105 % \begin{frame}{Debbugs}
106 % \tableofcontents[subsectionstyle=hide]
109 \section{Introduction to Debbugs}
111 \subsection{Introduction}
112 \begin{frame}{Goals of this talk}
114 \column{0.5\textwidth}
117 \item Introduction to Debbugs
119 \item Planned features
120 \item Places you can help
122 \column{0.5\textwidth}
123 \includegraphics[width=\textwidth,keepaspectratio]{images/rc_buggy}
126 \begin{frame}{Goals of the BTS}
128 \column{0.4\textwidth}
129 \includegraphics[width=\textwidth,keepaspectratio]{images/not_a_bug}
130 \column{0.6\textwidth}
132 \item Reporting of \only<1>{Features}\only<2>{Bugs}
133 \item Evolution of \only<1>{Features}\only<2>{Bugs}
134 \item Fixing of \only<1>{Features}\only<2>{Bugs}
135 \item Reducing impact of \only<1>{Features}\only<2>{Bugs}
140 \section{Bugs in Debian}
141 \subsection{Bug Reporting Rate}
142 \begin{frame}{How many bugs do we have?}
144 <<bug.growth,fig=TRUE,echo=FALSE,cache.extra=file.info("data/sorted_bug_growth_for_r_every_500.txt")[,"mtime"]>>=
145 bug.growth <- fread("data/sorted_bug_growth_for_r_every_500.txt")
146 colnames(bug.growth) <- c("time","bugs")
147 bug.growth <- bug.growth[pmax(bugs) <= as.numeric(bugs),]
149 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+
150 as.numeric(bug.growth$time))]
151 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2005,1,1,0,0,0)),],
153 xlab("Time")+ylab("Bugs filed in Debian")+
154 scale_y_continuous(labels = scientific_10)+
155 geom_point()+stat_smooth(method="lm"))
162 \column{0.5\textwidth}
164 <<bugs.filed,fig=TRUE,echo=FALSE,warning=FALSE,fig.width=3,fig.height=3>>=
165 print(ggplot(bug.growth[date > as.POSIXct(ISOdatetime(2015,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"))
170 bugs.filed.per.day <-
171 lm(bugs~date,bug.growth)$coeff[2]*3600*24
172 temp.lm <- lm(date~bugs,bug.growth[date > as.POSIXct(ISOdatetime(2015,1,1,0,0,0)),])
174 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=880000,date=NA))))
176 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=900000,date=NA))))
178 as.POSIXct(ISOdatetime(1970,1,1,0,0,0)+as.numeric(predict(temp.lm,data.frame(bugs=1000000,date=NA))))
181 \column{0.5\textwidth}
182 Roughly \Sexpr{format(bugs.filed.per.day,digits=1)} bugs are filed per
183 day. The 880000th bug will be filed at \Sexpr{bug.880000}, the
184 900000th bug will be filed at \Sexpr{bug.900000}, and bug one million will be filled
190 \subsection{Bug Fixing Rate}
193 <<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"]>>=
194 bug.closed.series <- fread(file="data/bug_closed_time_series.txt")
195 colnames(bug.closed.series) <- c("archived.bugs","year.week")
196 bug.closed.series[,week:=
197 gsub("(\\d+)-(\\d+)","\\2",year.week)]
198 bug.closed.series[,year:=
199 gsub("(\\d+)-(\\d+)","\\1",year.week)]
200 bug.closed.series[,doy:= as.numeric(week)*7]
201 bug.closed.series[,year.doy:=
202 paste(sep="-",year,doy)]
203 bug.closed.series[,date:=
204 as.POSIXct(strptime(year.doy,
207 # bug.closed.ts <- ts(bug.closed.series[,1],start=1,frequency=7)
209 print(ggplot(bug.closed.series[date > as.POSIXct(ISOdatetime(2008,1,1,0,0,0)),],
210 aes(x=date,y=archived.bugs/7))+geom_line()+stat_smooth(method="lm")+
211 ylab("Bugs archived Per Day")+xlab("Time"))
212 bugs.closed.per.day <-
213 bug.closed.series[,sum(archived.bugs)]/
214 as.numeric(bug.closed.series[nrow(bug.closed.series),date]-
215 bug.closed.series[1,date])
218 Roughly \Sexpr{format(bugs.closed.per.day,digits=1)} bugs are closed per day.
222 \begin{frame}{RC Bugs in the Past Year}
224 <<rc.bugs,fig=TRUE,echo=FALSE,warning=FALSE,cache.extra=file.info("data/rc_bugs.txt")[,"mtime"]>>=
226 data.table(read.table(file="data/rc_bugs.txt",
227 header=TRUE,fill=TRUE))
229 as.POSIXct(strptime(date,
230 format="%Y%m%d%H%M"))]
231 rc.bugs[,unknown:=NULL]
232 rc.bugs[,unknown.1:=NULL]
234 rc.bugs <- rc.bugs[c(0,diff(total)) > -1000,]
237 data.table(melt(rc.bugs,id="date"))
238 print(ggplot(rc.bugs.long[date >
239 as.POSIXct(ISOdatetime(2016,08,1,0,0,0)),]
240 ,aes(x=date,y=value,color=variable))+
242 ylab("# of Release Critical Bugs")+xlab("Time")+
243 theme(legend.position="top")+
244 scale_color_discrete("Measure"))
247 \setbeamercolor{postit}{fg=black,bg=yellow}
248 \begin{textblock}{4}(6,4)
250 \begin{beamercolorbox}[sep=1em,wd=5cm]{postit}
251 \centering \huge Too many RC bugs!
258 \section{Debbugs Structure and Infrastructure}
260 \subsection{BTS System Diagram}
261 \begin{frame}{BTS system Diagram}
263 \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{figures/bug_global_layout}
267 \subsection{Debbugs Box Diagram}
268 \begin{frame}{Debbugs Box Diagram}
270 \input{debbugs_layout}
274 \section{Database Ho!}
276 \subsection{Overall Database Design}
278 \begin{frame}{Overall Database Design}
280 \input{debbugs_layout_db}
284 \subsection{Perl Database Infrastucture}
285 \begin{frame}{Perl Database Infrastructure}
288 \item DBIx::Class::Schema::Loader -- SQL schema to DBIx::Class
289 \item DBIx::Class::DeploymentHandler -- Upgrades of Schema
290 \item Debbugs::DB -- Debbugs SQL Module
295 \subsection{SQL Design}
296 \begin{frame}{SQL Schema}
297 \includegraphics[width=\textwidth,keepaspectratio]{figures/schema.png}
299 \item Current Debbugs SQL Schema
303 \subsubsection{dak SQL Design}
304 \begin{frame}{dak SQL Schema}
305 \includegraphics[width=\textwidth,keepaspectratio]{figures/dak_schema.png}
307 \item Inspiration taken from dak SQL Schema where appropriate
311 \subsection{SQL Loading}
312 \begin{frame}[fragile]{SQL Loading}
316 \begin{lstlisting}[language=sh]
317 debbugs-loadsql bugs;
318 debbugs-loadsql bugs archive;
320 \item Load Versioning information
321 \begin{lstlisting}[language=sh]
322 debbugs-loadsql versions;
323 debbugs-loadsql debinfo;
328 \subsection{SQL Working}
329 \begin{frame}[fragile]{SQL Working}
331 \begin{lstlisting}[language=SQL]
332 SELECT count(*) FROM bug
333 WHERE last_modified > '2014-07-01'
335 AND owner IS NOT NULL;
337 \begin{visibleenv}<2>
346 \subsection{Work still needed for SQL}
347 \begin{frame}{Work Still needed for SQL}
349 \item Logfile loading (for full text searching)
350 \item Status Caching (for faster page loading)
356 \section{New(ish) Features}
358 \subsection{New Changes}
359 \begin{frame}{New Changes}
361 \column{0.5\textwidth}
363 \item mailto links (demo)
364 \item forcemerge does the right thing
365 \item control at submit time
367 \column{0.5\textwidth}
368 \includegraphics[width=\textwidth,keepaspectratio]{images/telegraph_bug}
372 \section{Future features}
374 \subsection{Status Caching}
375 \begin{frame}{Status Caching}
377 \item Cache status of bugs (presence/absence at all distributions)
378 \item Speed up display of \url{http://bugs.debian.org/src:linux-2.6}
379 \item Allows for reverse status lookup
381 \item Enables finding bugs which are present in testing or unstable
386 \subsection{Statistics}
387 \begin{frame}{Statistics}
389 \column{0.5\textwidth}
391 \item Track status changes over time
392 \item Bugs found/fixed/absent in stable/testing/unstable over time
393 \item Bug submission times
394 \item Bug closure times
396 \item Per package, severity, maintainer tracking of the above
398 \column{0.5\textwidth}
400 \includegraphics[width=\textwidth,height=0.35\textheight,keepaspectratio]{images/bug}
406 \subsection{Additional Planned Features}
407 \begin{frame}{More planned features}
409 \column{0.5\textwidth}
411 \item HTTP based reporting system with e-mail roundtrip
412 \item Release Debbugs again
413 \item Bug mailing lists in Debbugs
415 \item Avoid duplicate mail
416 \item Opt in/out of mail
418 \item Merging of merged bug reports
419 \item Threading in report
421 \column{0.5\textwidth}
422 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
426 \begin{frame}{Even More planned features}
428 \column{0.5\textwidth}
430 \item Usercategory duplication and replay
431 \item Remote Attachments
432 \item New Spool Storage Format
433 \item Usertags visibility
434 \item Smarter CGI options
436 \column{0.5\textwidth}
437 \includegraphics[width=\textwidth,keepaspectratio]{images/fixed_bug}
445 \section{Places you can help}
447 \begin{frame}{7 tasks seeking contributors}
449 \item Documentation of Usercategories
450 \item Implementation of rss feeds for packages and bugs
451 \item CGI options on pkgreport.cgi for usertags et al. \#536378)
452 \item Documentation of multipe-package reassign and when it or
453 affects should be used
454 \item Mailto link with subject, references, etc. all filled in
455 \item Documentation for local-debbugs configuration file (behaves
460 \begin{frame}{Getting started on these tasks}
462 \item Upstream branches: \url{http://bugs.debian.org/debbugs-source/}
464 \item master (upstream debbugs): git clone \url{http://bugs.debian.org/debbugs-source/debbugs.git}
465 \item debian (debian branch): git clone -b debian \url{http://bugs.debian.org/debbugs-source/debbugs.git}
466 \item Checked out branches are also available at
467 \url{http://bugs.debian.org/debbugs-source/master} and
468 \url{http://bugs.debian.org/debbugs-source/debian}
470 \item My branches: \url{http://git.donarmstrong.com/debbugs.git}
471 \item Mailing list debian-debbugs@lists.debian.org
472 \item IRC \#debbugs or \#debian-bugs on irc.debian.org; I'm dondelelcaro
476 \begin{frame}{The Debbugs Team}
484 \item Emeritus Developers
486 \item Steiner Gunderson
495 \begin{frame}{Questions?}
496 \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{images/don_at_burning_man.jpg}