From c78d76d637c4697ae72780a439506f1a8dd8950e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 23 Nov 2014 20:32:12 +0100 Subject: qa.d.o: add udd_orphaned_without_o_bug job, thanks to Johannes Schauer --- job-cfg/udd.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'job-cfg/udd.yaml') diff --git a/job-cfg/udd.yaml b/job-cfg/udd.yaml index 932ac715..dfaf5547 100644 --- a/job-cfg/udd.yaml +++ b/job-cfg/udd.yaml @@ -40,19 +40,31 @@ defaults: udd name: '{name}_sid_multiarch_versionskew' +- job-template: + defaults: udd + name: '{name}_sid_multiarch_versionskew' + +- job-template: + defaults: udd + name: '{name}_orphaned_without_o_bug' + - project: name: udd jobs: - '{name}_wheezy_multiarch_versionskew': my_time: '2 8 1 * *' - my_params: 'wheezy multiarch_versionskew' + my_params: 'multiarch_versionskew wheezy' my_description: 'Detect multi-arch versions skews in wheezy.' - '{name}_jessie_multiarch_versionskew': my_time: '1 8 * * *' - my_params: 'jessie multiarch_versionskew' + my_params: 'multiarch_versionskew jessie' my_description: 'Detect multi-arch versions skews in jessie.' - '{name}_sid_multiarch_versionskew': my_time: '0 8 * * *' - my_params: 'sid multiarch_versionskew' + my_params: 'multiarch_versionskew sid' my_description: 'Detect multi-arch versions skews in sid.' + - '{name}_orphaned_without_o_bug': + my_time: '3 8 * * *' + my_params: 'orphaned_without_o_bug' + my_description: 'Detect orphaned packages with maintainer set to packages@qa.debian.org but without an "Orphaned" bug against the wnpp pseudo-package.' -- cgit v1.2.3-70-g09d2 From ec8f143d1ad66ed1af8609e76c144af06454afae Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 23 Nov 2014 20:43:48 +0100 Subject: qa.d.o: use logparse/debian.rules --- bin/udd-query.sh | 31 +++++++++++++++++-------------- job-cfg/udd.yaml | 4 ++++ 2 files changed, 21 insertions(+), 14 deletions(-) (limited to 'job-cfg/udd.yaml') diff --git a/bin/udd-query.sh b/bin/udd-query.sh index 71efce71..9fde6f5a 100755 --- a/bin/udd-query.sh +++ b/bin/udd-query.sh @@ -46,9 +46,13 @@ multiarch_versionskew() { ORDER BY source ;" udd_query - cat $UDD - # TODO: turn source package names into links - # TODO: show versions (per arch) too + if [ -s $UDD ] ; then + echo "Warning: multi-arch version skew in $DISTRO detected." + echo + # TODO: turn source package names into links + # TODO: show versions (per arch) too + cat $UDD + fi rm $UDD } @@ -65,10 +69,8 @@ orphaned_without_o_bug() { udd_query cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD" - curl --silent https://qa.debian.org/data/bts/wnpp_rm \ | cut -d ' ' -f 1 | tr -d ':' | sort | uniq > "$WNPPRM" - comm -23 "$SORTED_UDD" "$WNPPRM" > "$RES1" # $RES1 now contains all packages that have packages@qa.debian.org as the @@ -76,30 +78,31 @@ orphaned_without_o_bug() { # (because they are missing a bug) # we have to remove all the packages that appear in experimental but do not # have packages@qa.debian.org as a maintainer (i.e: they found a new one) - SQL_QUERY="SELECT DISTINCT source FROM sources WHERE maintainer NOT LIKE '%packages@qa.debian.org%' AND release='experimental' ORDER BY source ; " udd_query - cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD" - echo "The following packages are maintained by packages@qa.debian.org" - echo "but are missing a wnpp bug according to https://qa.debian.org/data/bts/wnpp_rm" - echo + if [ -s $UDD ] ; then + cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD" - comm -13 "$SORTED_UDD" "$RES1" + echo "Warning: The following packages are maintained by packages@qa.debian.org" + echo "but are missing a wnpp bug according to https://qa.debian.org/data/bts/wnpp_rm" + echo + # TODO: turn source package names into links + comm -13 "$SORTED_UDD" "$RES1" + fi rm -f "$UDD" "$WNPPRM" "$RES1" "$SORTED_UDD" - } # # main # UDD=$(mktemp) -case QUERY in +case $1 in orphaned_without_o_bug) orphaned_without_o_bug ;; @@ -110,4 +113,4 @@ case QUERY in echo "unknown query requested, exiting... please provide patches :)" ;; esac - +echo diff --git a/job-cfg/udd.yaml b/job-cfg/udd.yaml index dfaf5547..49e6cc94 100644 --- a/job-cfg/udd.yaml +++ b/job-cfg/udd.yaml @@ -23,6 +23,10 @@ publishers: - email: recipients: 'jenkins+debian-qa holger@layer-acht.org' + - logparser: + parse-rules: '/srv/jenkins/logparse/debian.rules' + unstable-on-warning: 'true' + fail-on-error: 'true' builders: - shell: '/srv/jenkins/bin/udd-query.sh {my_params}' triggers: -- cgit v1.2.3-70-g09d2