aboutsummaryrefslogtreecommitdiff
path: root/bin/sse-auto-report
blob: 69ac8ec33827484de891880b466c96d18ae0223f (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
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
#!/bin/sh

#
# sse-auto-report
#
# (Almost) fully automatic monthly report generator
#

# Don't rumble on if a tool fails
set -e
set -x

#
# General prep
#

if [ "$1" = "yearly" ]
then
	day=$(date +'%-d')
	since=`date -d"-$(($day - 1)) days 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	until=`date -d"next-month -$day days 23:59:59" +"%Y-%m-%d %H:%M:%S"`
	full_year_since=`date -d"next-month -$(($day - 1)) days -1 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	double_year_since=`date -d"next-month -$(($day - 1)) days -2 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	since=$full_year_since
	tag="yearly"
	quantum="year"
elif [ "$1" = "quarterly" ]
then
	day=`date +'%-d'`
	since=`date -d"last-month -$(($day - 1)) days -2 month 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	until=`date -d"-$day days 23:59:59" +"%Y-%m-%d %H:%M:%S"`
	full_year_since=`date -d"-$(($day - 1)) days -1 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	double_year_since=`date -d"-$(($day - 1)) days -2 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`

	title="Quarterly"
	tag="quarterly"
	quantum="quarter"
else # monthly
	day=`date +'%-d'`
	since=`date -d"last-month -$(($day - 1)) days 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	until=`date -d"-$day days 23:59:59" +"%Y-%m-%d %H:%M:%S"`
	full_year_since=`date -d"-$(($day - 1)) days -1 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	double_year_since=`date -d"-$(($day - 1)) days -2 year 00:00:00" +"%Y-%m-%d %H:%M:%S"`
	title="Monthly"
	tag="monthly"
	quantum="month"
fi

echo "Generating report from $since until $until ($full_year_since, $double_year_since)"
echo

if [ -z $SSE_DATA_DIR ]
then
	SSE_DATA_DIR=reports/`date -d "$until" +"%Y-%m"`

	if [ ! -z $1 ]
	then
		SSE_DATA_DIR=$SSE_DATA_DIR-$tag
	fi
fi

mkdir -p $SSE_DATA_DIR/tmp
cd $SSE_DATA_DIR

#
# Generate the monthly report template and the "solutions" graphs
#

maventool filter \
	--people 'Daniel Thompson,Leo Yan,Loic Poulain,Sumit Garg' \
	../../all_time_entries.csv \
| maventool scale \
	--from 'time in hours' \
	--to 'time in days' \
	--factor 1/8 \
	> sse_time_entries.json

#
# Bring everything together as a HTML document
#

cat > ${tag}_report.html <<EOF
<html>
<head>
<title>SSE $title Report `date -d "$until" +"%Y.%m"`</title>
</head>
<body>

<p>
Google Docs conversion checklist:
<p>

<ul>
<li>Convert the Title from "Heading 1" to "Title"
<li>Replace links above with a real TOC</li>
<li>Select any item of regular text and "Add space after paragraph" and "Update Normal Text to match"</li>
<li>Visit every table and remove the space after every paragraph again (sigh)</li>
<li>Update the CALCULATED MANUALLY fields.</li>
</ul>

<h1>Summary</h1>

<p>
This report is 100% auto-generated and does not have an executive summary.
</p>

<h1>Dashboard</h1>

<p>Support and Solutions Engineering is a multi-functional team that
contributes to a wide variety of activity both for members and for members and
for Developer Services customers.</p>

<p>The dashboard provides an at-a-glance summary of the allocation between
major activities by the team. Figures 1 and 2 shows the effort applied across
the team this quarter in all areas of the business. Figure 2 is complimented by
a diagram that summarized the last 12 months as a comparison. The legend in
figure 1 applies to all three figures.  The total effort is graphed in man/days
and, as expected, the totals approximately match the headcount of the team.</p>

<p><table border="0">
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$full_year_since" --until "$until" \
          --barchart \
          --effort-by-category fig-1-effort_by_month_and_category.png)
      <img src="fig-1-effort_by_month_and_category.png">
    </td>
  </tr>
  <tr>
    <td><strong>Figure 1</strong>: Effort summary organised by month and cateogry</td>
  </tr>
</table></p>
<p><table border="0">
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$since" --until "$until" \
          --piechart \
	  --effort-by-category fig-2-effort_by_category.png)
       <img src="fig-2-effort_by_category.png">
    </td>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$full_year_since" --until "$until" \
          --piechart \
	  --effort-by-category fig-3-effort_by_category-full_year.png)
      <img src="fig-3-effort_by_category-full_year.png">
    </td>
  </tr>
  <tr>
     <td><strong>Figure 2</strong>: Allocations this $quantum</td>
     <td><strong>Figure 3</strong>: Allocations over the last 12 months</td>
  </tr>
</table></p>

<p>It is currently difficult to allocate team effort recorded against
Internal Projects to specific team responsibilities. Therefore it is 
so it is fortunate that it only consumed
$(maventool collate sse_time_entries.json \
    --since "$since" --until "$until" \
    --field 'category' --percent \
| maventool count \
    --category 'Internal' --field 'time in hours percent' --format '{:.1f}%')
of the effort this $quantum.</p>

<p>Currently the Internal Projects include team overhead (meetings, upstream
maintenance) together with business development-and-proposals and some R&D
activities (mostly the development of training materials). This is only a minor
problem when the overall effort in this area is low. To help better understand
how the Internal Projects are recorded the effort by SSE is broken down in
figures 4, 5 and 6.</p>

<p><table border="0">
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$full_year_since" --until "$until" \
	  --project Internal \
          --barchart \
          --effort-by-task fig-4-effort_by_month_and_task.png)
      <img src="fig-4-effort_by_month_and_task.png">
    </td>
  </tr>
  <tr>
    <td><strong>Figure 4</strong>: Internal Projects, broken down by month and category</td>
  </tr>
</table></p>
<p><table border="0">
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$since" --until "$until" \
	  --project Internal \
          --piechart \
	  --effort-by-task fig-5-effort_by_task.png)
       <img src="fig-5-effort_by_task.png">
    </td>
    <td>
      $(maventool chart sse_time_entries.json \
          --since "$full_year_since" --until "$until" \
	  --project Internal \
          --piechart \
	  --effort-by-task fig-6-effort_by_task-full_year.png)
      <img src="fig-6-effort_by_task-full_year.png">
    </td>
  </tr>
  <tr>
     <td><strong>Figure 5</strong>: Internal Projects, this $quantum</td>
     <td><strong>Figure 6</strong>: Internal Projects, last 12 months</td>
  </tr>
</table></p>

<h1>Member activities</h1>

<p>Activities on behalf of members are tracked in the Support & Solutions
Project within Mavenlink and consist of LDTS and premium services activities
together with management overhead for the team.</p>

<p>The premium services activities include limited 96Boards forum support for
boards promoted by club/core members.</p>

<p>Figures 4, 5 and 6 (below) zoom in on the effort applied across the team on
behalf of Linaro members. These topics include LDTS and 96Boards forum support
together with various premium services projects. Also included is management
overhead for the team. The total effort is graphed in man/days.</p>

<p><table>
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
	  --since "$full_year_since" --until "$until" \
	  --project 'Support & Solutions' \
	  --barchart \
	  --simplify 9 \
	  --effort-by-task fig-7-effort_by_month_and_task.png)
      <img src="fig-7-effort_by_month_and_task.png">
    </td>
  </tr>
  <tr>
    <td><strong>Figure 7</strong>: Effort summary organised by month and task</td>
  </tr>
</table></p>

<p><table>
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
	  --since "$since" --until "$until" \
	  --project 'Support & Solutions' \
	  --piechart \
	  --simplify 3 \
	  --effort-by-task fig-8-effort_by_task.png)
      <img src="fig-8-effort_by_task.png">
    </td>
    <td>
      $(maventool chart sse_time_entries.json \
	--since "$full_year_since" --until "$until" \
	--project 'Support & Solutions' \
	--piechart \
	--simplify 3 \
	--effort-by-task fig-9-effort_by_task-full_year.png)
      <img src="fig-9-effort_by_task-full_year.png">
    </td>
  </tr>
  <tr>
    <td><strong>Figure 8</strong>: Member activity this $quantum</td>
    <td><strong>Figure 9</strong>: Member activity, last 12 months.</td>
  </tr>
</table></p>

<p>In the above graphs the Other category is a miscellany of small tasks. On
the barchart any topic that did not occupy more than 10% in a single month is
accounted as Other and, within the pie charts, any wedge representing less than
3% has been combined. This ensures that large tasks are clearly visible in the
above graphs.  The following table shows the raw data for figure 5 (activity
this $quantum) but the Other category has been fully expanded allowing all
activity to be seen.</p>

<p><table>
  <tr>
    <td><strong>Task</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Proportion</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --project 'Support & Solutions' \
    --field 'task/deliverable' \
    --percent | \
maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td><a href="https://linaro.mavenlink.com/stories/relevance?search={task/deliverable}&usingDefaultFilters=false&columnSet=Info">{task/deliverable}</a></td><td>{time in days:.1f}</td><td>{time in days percent:.1f}%</td></tr>')
</table></p>

<h1>Developer Services</h1>

<p>SSE provides staff for both T&M contracts and fixed price contracts (in the
case of SSE this is primarily fixed price training).</p>

<p>Figures 10, 11 and 12 (below) summarize the overall contribution to Developer
Services by SSE team members and covers both T&M and fixed price activity.</p>


<p><table>
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
	  --since "$full_year_since" --until "$until" --category Fixed,Materials \
	  --barchart \
	  --simplify 10 \
	  --effort-by-project fig-10-effort_by_month_and_project.png)
      <img src="fig-10-effort_by_month_and_project.png">
    </td>
  </tr>
  <tr><td><strong>Figure 10</strong>: Effort summary organised by month and by project</td></tr>
</table></p>

<p><table>
  <tr>
    <td>
      $(maventool chart sse_time_entries.json \
	  --since "$since" --until "$until" \
	  --category Fixed,Materials \
	  --piechart \
	  --simplify 3 \
	  --effort-by-project fig-11-effort_by_project.png)
      <img src="fig-11-effort_by_project.png">
    </td>
    <td>
      $(maventool chart sse_time_entries.json \
	  --since "$full_year_since" --until "$until" \
	  --category Fixed,Materials \
	  --piechart \
	  --simplify 3 \
	  --effort-by-project fig-12-effort_by_project-full_year.png)
      <img src="fig-12-effort_by_project-full_year.png">
    </td>
  </tr>
  <tr>
     <td><strong>Figure 11</strong>: Services effort this $quantum</td>
     <td><strong>Figure 12</strong>: Services effort, last 12 months</td>
  </tr>
</table></p>

<p>In the above graphs very small activities have been recorded in the Other
category to ensure graph readability. The overall division between T&M and
Fixed Price activities for this $quantum is:</p>

<p><table>
  <tr>
    <td><strong>Category</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Proportion</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Fixed,Materials \
    --field 'category' \
    --percent | \
maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td>{category}</td><td>{time in days:.1f}</td><td>{time in days percent:.1f}%</td></tr>')
</table></p>

<p>Zooming in on the T&M activity then effort is split as follows:</p>

<p><table>
  <tr>
    <td><strong>Category</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Proportion</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Materials \
    --field 'project' \
    --percent | \
maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td><a href="https://linaro.mavenlink.com/projects#?search={project}&genreFilter=on_account_by_orgs">{project}</a></td><td>{time in days:.1f}</td><td>{time in days percent:.1f}%</td></tr>')
</table></p>

<p>Likewise the Fixed Price activity this $quantum includes:</p>

<p><table>
  <tr>
    <td><strong>Category</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Proportion</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Fixed \
    --field 'project' \
    --percent | \
maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td><a href="https://linaro.mavenlink.com/projects#?search={project}&genreFilter=on_account_by_orgs">{project}</a></td><td>{time in days:.1f}</td><td>{time in days percent:.1f}%</td></tr>')
</table></p>

<h1>Appendix A - Developer Services revenue</h1>

<p>Revenue for SSE consists of all T&M activity undertaken by SSE together with
fixed price contracts that are entirely or overwhelming-majority-staffed by
SSE.</p>

<p>Note: <em>Within this report T&M activity is separated from Fixed Price
activity based on whether a billable rate has been set in Mavenlink. Thus for
projects that are minority-staffed by SEE (Schneider for example) the figures
below are estimates based on internal recharging rather than directly linked to
company revenue.</em></p>

<p>The SSE revenue target is:</p>

<p><table>
  <tr><td>Per year</td><td>\$687,500</td>
  <tr><td>Per year</td><td>\$687,500</td>
  <tr><td>Per quarter</td><td>\$172,000 (approx)</td>
  <tr><td>Per month</td><td>\$57,500 (approx)</td>
</table></p>

<p>
Total T&M revenue this $quantum is \$
$(maventool count sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Materials \
    --field 'subtotal')
and can be attributed to the following projects:

<p><table>
  <tr>
    <td><strong>Project</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Revenue</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Materials \
    --field 'project' \
| maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td><a href="https://linaro.mavenlink.com/projects#?search={project}&genreFilter=on_account_by_orgs">{project}</a></td><td>{time in days:.1f}</td><td>{subtotal}</td></tr>')
</table></p>

<p>Total fixed price revenue is CALCULATED-MANUALLY and can be attributed to the following
projects:</p>

<p><table>
  <tr>
    <td><strong>Project</strong></td>
    <td><strong>Time in man/days</strong></td>
    <td><strong>Revenue</strong></td>
  </tr>
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --category Fixed \
    --field 'project' \
| maventool format \
    --template '<tr><td><a href="https://linaro.mavenlink.com/projects#?search={project}&genreFilter=on_account_by_orgs">{project}</a></td><td>{time in days:.1f}</td><td>{subtotal}</td></tr>')
$(maventool collate sse_time_entries.json \
    --since "$since" \
    --until "$until" \
    --task Proposals \
    --field 'task/deliverable' \
| maventool format \
    --sort-by 'time in days' --reverse \
    --template '<tr><td><a href="https://linaro.mavenlink.com/stories/relevance?search={task/deliverable}&usingDefaultFilters=false&columnSet=Info">{task/deliverable}</a></td><td>{time in days:.1f}</td><td>{subtotal}</td></tr>')
</table></p>

Total revenue is CALCULATED-MANUALLY and this (approximately) meets the revenue target for the $quantum.
EOF

# Inline images (and wreck some of the formatting)
pandoc -s --toc --self-contained ${tag}_report.html -o ../../${tag}_report-`date -d "$until" +"%Y-%m"`.html

# Fixup the nastiest problems pandoc introduces!
sed -i ../../${tag}_report-`date -d "$until" +"%Y-%m"`.html \
	-e 's/^<table>/<table border=0>/'


#
# LEGACY... some of these tools no longer work... some are no longer relevant
#


#printf "Generating JIRA activity report ..."
#glance filter --worklog-since "$since" --worklog-until "$until" \
#	--no-worklog tmp/jira-activity.json | \
#glance monthly > tmp/monthly.html
#sed -i -e '/^<\/*html>$/d' -e '/^<\/*head>$/d' -e '/^<title>/d' -e '/^<\/*body>/d' tmp/monthly.html
#printf " done\n"

#
# Grab LDTS data for this month
#

#printf "Grabbing LDTS monthly activity ..."
# -e tmp/ldtstool-pull.empty ] || \
#    ldtstool pull > tmp/ldtstool-pull.empty
#printf " done\n"
#
#printf "Generating LDTS activity graphs ."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$double_year_since" --until "$until" | \
#ldtstool chart --output "fig-2.1-ldts-by_month_by_member.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$since" --until "$until" | \
#ldtstool piechart --by-member --output "fig-2.2-ldts-by_member.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$double_year_since" --until "$until" | \
#ldtstool piechart --by-member --output "fig-2.3-ldts-by_member-full_year.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$double_year_since" --until "$until" | \
#ldtstool chart --by-category --output "fig-2.4-ldts-by_month_by_category.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$since" --until "$until" | \
#ldtstool piechart --by-category --output "fig-2.5-ldts-by_category.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --member \
#		--since "$double_year_since" --until "$until" | \
#	ldtstool piechart --by-category --output "fig-2.6-ldts-by_category-full_year.png"
#printf "."
#
#ldtstool dump | ldtstool filter --restrict created --community \
#		--since "$double_year_since" --until "$until" | \
#ldtstool chart --by-category --output "fig-2.7-community-by_month_by_category.png"
#printf "."
#
#printf " done\n"

#printf "Generating LDTS activity report ..."
#ldtstool dump | ldtstool filter --since "$since" --until "$until" | \
#	ldtstool monthly > tmp/ldts.html
#printf " done\n"

#
# Slurp up posts by the team on the forum
#

# The output of pull --verbose is naturally compatible with our own output
#96btool pull --verbose

#printf "Generating 96boards activity report ..."
#96btool dump | \
#  96btool filter --since "$double_year_since" --until "$until" | \
#  96btool tag --tag-with 'Linaro (other)' --usermap ~/.96btool-usermap,linaro.org | \
#  96btool tag --tag-with 'Linaro (SSE)' --user danielt,Loic,leo-yan,sumit.garg --unique | \
#  96btool tag --tag-with 'Linaro (SSE)' --user ldts-atsuka --until 2017-01-01 --unique | \
#  96btool tag --tag-with 'Linaro (SSE)' --user ldts --until 2017-08-01 --unique | \
#  96btool tag --tag-with 'Linaro (SSE)' --user vchong --until 2018-04-01 --unique | \
#  96btool tag --tag-with 'Linaro (96Boards)' --user ric96,sdrobertw,Mani,yang --unique | \
#  96btool tag --tag-with 'All other posts' --empty \
#  > tmp/96boards-all.json
#cat tmp/96boards-all.json | 96btool filter --since "$since" --tag 'Linaro (SSE)' | 96btool monthly > tmp/96boards.html
#printf " done\n"
#
#printf "Generating 96boards activity graphs ..."
#cat tmp/96boards-all.json | 96btool chart --by-tag --output fig-3.1-96b_by_month.png
#cat tmp/96boards-all.json | 96btool filter --since "$since" | 96btool count --by-tag | 96btool piechart --output fig-3.2-96b_pie_of_the_month.png
#cat tmp/96boards-all.json | 96btool filter --since "$full_year_since" |  96btool count --by-tag | 96btool piechart --output fig-3.3-96b_pie_of_the_year.png
#cat tmp/96boards-all.json | 96btool chart --simplify 3 --output fig-3.4-96b_by_month.png
#cat tmp/96boards-all.json | 96btool filter --since "$since" | 96btool piechart --simplify 3 --output fig-3.5-96b_pie_of_the_month.png
#cat tmp/96boards-all.json | 96btool filter --since "$full_year_since" | 96btool piechart --simplify 3 --output fig-3.6-96b_pie_of_the_year.png
#printf " done\n"
#

cat > /dev/null <<EOF
<h2>Support via LDTS</h2>

<p><table>
<tr><td><img src="fig-2.1-ldts-by_month_by_member.png"></td></tr>
  <tr><td><strong>Figure 2.1</strong>: Member tickets, organised by month and by member</td></tr>
</table></p>

<p><table>
  <tr>
     <td><img src="fig-2.2-ldts-by_member.png" width="400" height="300"></td>
     <td><img src="fig-2.3-ldts-by_member-full_year.png" width="400" height="300"></td>
  </tr>
  <tr>
     <td><strong>Figure 2.2</strong>: Activity this $quantum, by member</td>
     <td><strong>Figure 2.3</strong>: Activity this year, by member</td>
  </tr>
</table></p>

<p>For LDTS there is no effort tracking so we can only monitor ticket
volumes. The three graph above shows the breakdown, by member, of
tickets over the last twelve months.</p>

<p><table>
<tr><td><img src="fig-2.4-ldts-by_month_by_category.png"></td></tr>
  <tr><td><strong>Figure 2.4</strong>: Member tickets, organised by month and by category</td></tr>
</table></p>

<p><table>
<p><table>
  <tr>
     <td><img src="fig-2.5-ldts-by_category.png" width="400" height="300"></td>
     <td><img src="fig-2.6-ldts-by_category-full_year.png" width="400" height="300"></td>
  </tr>
  <tr>
     <td><strong>Figure 2.5</strong>: Activity this $quantum, by category</td>
     <td><strong>Figure 2.6</strong>: Activity this year, by category</td>
  </tr>
</table></p>

The graph (fig 2.4) and piecharts (fig 2.5 & fig 2.6) show the member
tickets this $quantum. This helps guide us in choosing what skills the team
must invest in.

<p><table>
<tr><td><img src="fig-2.7-community-by_month_by_category.png"></td></tr>
  <tr><td><strong>Figure 2.7</strong>: Community tickets, organised by month and by category</td></tr>
</table></p>

<p>Figure 2.7 is of little strategic value to the team because we will not
invest in staff development based on the topics found in community
tickets. However, it is included in the report because it offers some
feedback on the stength of Linaro's community presence. In particular
the graph shows the signifiance of the Linaro toolchain to our external
image.</p>

<p><table>
-->
<h2>96Boards Support</h2>

<h3>SSE contributions to 96Boards forum</h3>

<p><table>
  <tr><td><img src="fig-3.1-96b_by_month.png"></td></tr>
  <tr><td><strong>Figure 3.1</strong>: Posts by month and topic (posts by SSE engineers only).</td></tr>
</table></p>

<p>Figure 3.1 shows the post volumes by SSE team members for the last year.
This report does not include general details of forum health; no automated
tools exist to gather this information and it has a scope beyond that
of the SSE team.</p>

<p><table>
  <tr>
     <td><img src="fig-3.2-96b_pie_of_the_month.png" width="400" height="300"></td>
     <td><img src="fig-3.3-96b_pie_of_the_year.png" width="400" height="300"></td>
  </tr>
  <tr>
     <td><strong>Figure 3.2</strong>: Posts this $quantum, by topic.</td>
     <td><strong>Figure 3.3</strong>: Posts this year, by topic.</td>
  </tr>
</table></p>

<p>Figures 3.2 and 3.3 contrast the period under review with the full year trend, showing the variety of topics SSE engineers have contributed to.</p>

<h3>Overall trends on the forum</h3>

<p><table>
  <tr><td><img src="fig-3.4-96b_by_month.png"></td></tr>
  <tr><td><strong>Figure 3.4</strong>: Posts by month and topic (all posts).</td></tr>
</table></p>

<p><table>
  <tr>
     <td><img src="fig-3.5-96b_pie_of_the_month.png" width="400" height="300"></td>
     <td><img src="fig-3.6-96b_pie_of_the_year.png" width="400" height="300"></td>
  </tr>
  <tr>
     <td><strong>Figure 3.5</strong>: Posts this $quantum, by topic.</td>
     <td><strong>Figure 3.6</strong>: Posts this year, by topic.</td>
  </tr>
</table></p>

Figures 3.4, 3.5 and 3.6 contract the previous figures (3.1 to 3.3) with
statistics describing all posts on the 96Boards forum. In particular this
allows us to start to compare board popularity versus the effort SSE applies
to the board.

<h1>Detailed activity report</h1>

<h2>Solutions Engineering</h2>

\$(cat tmp/monthly.html)

<h2>Support via LDTS</h2>

\$(cat tmp/ldts.html)

<h2>96Boards Support</h2>

\$(cat tmp/96boards.html)

</body>
</html>
EOF