Add an AB-INT report
PATCH 1/1 Add an AB-INT report
From: Ross Burton <[email protected]>
This report visualises the AB-INT bugs over time, to help find trends such as bugs which are no longer occuring, or bugs which should be fixed urgently.
Signed-off-by Ross Burton <[email protected]>
--- config.json | 4 + scripts/abint/abint.html.j2 | 81 ++++++ scripts/abint/abint.py | 132 +++++++++ scripts/abint/requirements.txt | 5 + scripts/abint/sorttable.js | 495 +++++++++++++++++++++++++++++++++ scripts/run-abint | 23 ++ 6 files changed, 740 insertions(+) create mode 100644 scripts/abint/abint.html.j2 create mode 100755 scripts/abint/abint.py create mode 100644 scripts/abint/requirements.txt create mode 100644 scripts/abint/sorttable.js create mode 100755 scripts/run-abint
config.json +4 -0
@@ -1284,6 +1284,10 @@ "${BUILDDIR}/../meta-openembedded/meta-webserver" ], "EXTRACMDS" : ["echo 'do_cve_check:layer-core = \"\"' >> conf/auto.conf ; ${SCRIPTSDIR}/run-cvecheck --metrics ../yocto-metrics-meta-oe --branch ${HELPERBRANCHNAME} --results ${HELPERRESULTSDIR}/../../patchmetrics-meta-oe --push"] + }, + "step6": { + "shortname": "AB-INT report", + "EXTRACMDS": [ "${SCRIPTSDIR}/run-abint ${HELPERRESULTSDIR}/../../abint/"] } }, "meta-mingw" : {
scripts/abint/abint.html.j2 new file +81 -0
82 lines not on this page · raw message
scripts/abint/abint.py new file +132 -0
132 lines not on this page · raw message
scripts/abint/requirements.txt new file +5 -0
@@ -0,0 +1,5 @@ +arrow +requests +python-bugzilla +Jinja2 +jinja2-humanize-extension
scripts/abint/sorttable.js new file +495 -0
495 lines not on this page · raw message
scripts/run-abint new file +23 -0
@@ -0,0 +1,23 @@ +#! /bin/bash + +set -e -u + +OURDIR=$(dirname $0) +RESULTSDIR=$1 + +cd $OURDIR/abint + +echo Building venv... + +python3 -m venv venv +source venv/bin/activate +python3 -m pip --disable-pip-version-check install --requirement requirements.txt + +echo Generating report... + +./abint.py + +echo Publishing report to ${RESULTSDIR} + +mkdir --parents ${RESULTSDIR}/ +cp --verbose *.html *.js ${RESULTSDIR}/
Signature · 1 line
2.34.1