diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/jenkins_node_wrapper.sh | 10 | ||||
-rwxr-xr-x | bin/reproducible_blacklist.sh | 4 | ||||
-rwxr-xr-x | bin/reproducible_build.sh | 10 | ||||
-rwxr-xr-x | bin/reproducible_common.py | 4 | ||||
-rwxr-xr-x | bin/reproducible_common.sh | 24 | ||||
-rwxr-xr-x | bin/reproducible_html_breakages.py | 4 | ||||
-rwxr-xr-x | bin/reproducible_html_dashboard.sh | 32 | ||||
-rwxr-xr-x | bin/reproducible_html_repository_comparison.sh | 34 | ||||
-rwxr-xr-x | bin/reproducible_json.py | 6 | ||||
-rwxr-xr-x | bin/reproducible_maintenance.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_notes.py | 2 | ||||
-rwxr-xr-x | bin/reproducible_scheduler.py | 42 | ||||
-rwxr-xr-x | bin/reproducible_setup_pbuilder.sh | 6 | ||||
-rwxr-xr-x | bin/schroot-create.sh | 8 |
14 files changed, 94 insertions, 94 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index 27006a1e..eab69738 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Copyright (c) 2009, 2010, 2012, 2015 Peter Palfrader -# 2015-2016 Holger Levsen +# 2015-2017 Holger Levsen # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -103,8 +103,8 @@ elif [[ "$*" =~ ^rm\ -r\ /var/lib/jenkins/jobs/.*/workspace/results ]] ; then exec rm -r "$3" ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_setup_pbuilder_unstable_.*_.* ]] ; then exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; -elif [[ "$*" =~ ^reproducible_setup_pbuilder_testing_.*_.* ]] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; +elif [[ "$*" =~ ^reproducible_setup_pbuilder_stretch_.*_.* ]] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh stretch ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_setup_pbuilder_experimental_.*_.* ]] ; then exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_maintenance_.*_.* ]] ; then @@ -115,8 +115,8 @@ elif [[ "$*" =~ ^reproducible_setup_schroot_unstable_diffoscope_.*_.* ]] ; then exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-diffoscope unstable diffoscope locales-all ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_setup_schroot_unstable_.*_.* ]] ; then exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable botch ; croak "Exec failed"; -elif [[ "$*" =~ ^reproducible_setup_schroot_testing_.*_.* ]] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing testing ; croak "Exec failed"; +elif [[ "$*" =~ ^reproducible_setup_schroot_stretch_.*_.* ]] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-stretch stretch ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_setup_schroot_experimental_.*_.* ]] ; then exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-experimental experimental ; croak "Exec failed"; elif [[ "$*" =~ ^reproducible_coreboot ]] ; then diff --git a/bin/reproducible_blacklist.sh b/bin/reproducible_blacklist.sh index d59d2012..e60639ef 100755 --- a/bin/reproducible_blacklist.sh +++ b/bin/reproducible_blacklist.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014-2016 Holger Levsen <holger@layer-acht.org> +# Copyright 2014-2017 Holger Levsen <holger@layer-acht.org> # © 2015 Mattia Rizzolo <mattia@mapreri.org> # released under the GPLv=2 @@ -74,7 +74,7 @@ case $SUITE in sid) echo "WARNING: sid has been renamed to unstable." SUITE=unstable ;; - testing|unstable|experimental) ;; + stretch|unstable|experimental) ;; *) echo "$SUITE is not a valid suite". explain_syntax exit 1 diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 928580f6..5185a12a 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -133,7 +133,7 @@ update_db_and_html() { local OLD_STATUS=$(query_db "SELECT status FROM results WHERE package_id='${SRCPKGID}'" || \ query_db "SELECT status FROM results WHERE package_id='${SRCPKGID}'") # irc+mail notifications for changing status in unstable and experimental - if [ "$SUITE" != "testing" ] ; then + if [ "$SUITE" != "stretch" ] ; then if [ "${OLD_STATUS}" = "reproducible" ] && [ "$STATUS" != "depwait" ] && \ ( [ "$STATUS" = "unreproducible" ] || [ "$STATUS" = "FTBFS" ] ) ; then MESSAGE="${DEBIAN_URL}/${SUITE}/${ARCH}/${SRCPACKAGE} : reproducible ➤ ${STATUS}" @@ -626,8 +626,8 @@ export LANG="C" unset LC_ALL export LANGUAGE="en_US:en" EOF - # build path is not yet varied on testing - if [ "${SUITE}" != "testing" ]; then + # build path is not yet varied on stretch + if [ "${SUITE}" != "stretch" ]; then echo "BUILDDIR=/build/1st" >> "$TMPCFG" else echo "BUILDDIR=/build" >> "$TMPCFG" @@ -689,8 +689,8 @@ export LC_ALL="$locale.UTF-8" export LANGUAGE="$locale:$language" umask 0002 EOF - # build path is not yet varied on testing - if [ "${SUITE}" != "testing" ]; then + # build path is not yet varied on stretch + if [ "${SUITE}" != "stretch" ]; then local src_dir_name="$(perl -mDpkg::Source::Package -e '$_ = Dpkg::Source::Package->new(filename => $ARGV[0])->get_basename; s/_/-/g; print' -- "${SRCPACKAGE}_${EVERSION}.dsc")" echo "BUILDDIR=/build/$src_dir_name" >> "$TMPCFG" echo "BUILDSUBDIR=2nd" >> "$TMPCFG" diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index 7fd1e967..368b70c2 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright © 2015 Mattia Rizzolo <mattia@mapreri.org> -# Copyright © 2015-2016 Holger Levsen <holger@layer-acht.org> +# Copyright © 2015-2017 Holger Levsen <holger@layer-acht.org> # Based on the reproducible_common.sh by © 2014 Holger Levsen <holger@layer-acht.org> # Licensed under GPL-2 # @@ -39,7 +39,7 @@ if os.uname()[1] == 'jenkins-test-vm': sys.exit() # tested suites -SUITES = ['testing', 'unstable', 'experimental'] +SUITES = ['stretch', 'unstable', 'experimental'] # tested architectures ARCHS = ['amd64', 'i386', 'arm64', 'armhf'] # defaults diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 151ca57f..0ffbc05a 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -32,7 +32,7 @@ BIN_PATH=/srv/jenkins/bin TEMPLATE_PATH=/srv/jenkins/mustache-templates/reproducible # Debian suites being tested -SUITES="testing unstable experimental" +SUITES="stretch unstable experimental" # Debian architectures being tested ARCHS="amd64 i386 arm64 armhf" @@ -670,7 +670,7 @@ create_png_from_table() { WHERE_EXTRA="$WHERE_EXTRA AND architecture = '$ARCH'" if [ "$ARCH" = "armhf" ] ; then if [ $1 -eq 2 ] ; then - # unstable/armhf was only build since 2015-08-30 (and experimental/armhf since 2015-12-19 and testing/armhf since 2016-01-01) + # unstable/armhf was only build since 2015-08-30 (and experimental/armhf since 2015-12-19 and stretch/armhf since 2016-01-01) WHERE_EXTRA="$WHERE_EXTRA AND datum >= '2015-08-30'" fi elif [ "$ARCH" = "i386" ] ; then @@ -684,7 +684,7 @@ create_png_from_table() { WHERE_EXTRA="$WHERE_EXTRA AND datum >= '2016-12-23'" fi fi - # testing/amd64 was only build since... + # stretch/amd64 was only build since... # WHERE2_EXTRA="WHERE s.datum >= '2015-03-08'" # experimental/amd64 was only build since... # WHERE2_EXTRA="WHERE s.datum >= '2015-02-28'" @@ -697,29 +697,29 @@ create_png_from_table() { # This query becomes much more obnoxious when gaining # compatibility with postgres query_to_csv "SELECT stats.datum, - COALESCE(reproducible_testing,0) AS reproducible_testing, + COALESCE(reproducible_stretch,0) AS reproducible_stretch, COALESCE(reproducible_unstable,0) AS reproducible_unstable, COALESCE(reproducible_experimental,0) AS reproducible_experimental, - COALESCE(unreproducible_testing,0) AS unreproducible_testing, + COALESCE(unreproducible_stretch,0) AS unreproducible_stretch, COALESCE(unreproducible_unstable,0) AS unreproducible_unstable, COALESCE(unreproducible_experimental,0) AS unreproducible_experimental, - COALESCE(FTBFS_testing,0) AS FTBFS_testing, + COALESCE(FTBFS_stretch,0) AS FTBFS_stretch, COALESCE(FTBFS_unstable,0) AS FTBFS_unstable, COALESCE(FTBFS_experimental,0) AS FTBFS_experimental, - COALESCE(other_testing,0) AS other_testing, + COALESCE(other_stretch,0) AS other_stretch, COALESCE(other_unstable,0) AS other_unstable, COALESCE(other_experimental,0) AS other_experimental FROM (SELECT s.datum, - COALESCE((SELECT e.reproducible FROM stats_builds_per_day AS e WHERE s.datum=e.datum AND suite='testing' $WHERE_EXTRA),0) AS reproducible_testing, + COALESCE((SELECT e.reproducible FROM stats_builds_per_day AS e WHERE s.datum=e.datum AND suite='stretch' $WHERE_EXTRA),0) AS reproducible_stretch, COALESCE((SELECT e.reproducible FROM stats_builds_per_day AS e WHERE s.datum=e.datum AND suite='unstable' $WHERE_EXTRA),0) AS reproducible_unstable, COALESCE((SELECT e.reproducible FROM stats_builds_per_day AS e WHERE s.datum=e.datum AND suite='experimental' $WHERE_EXTRA),0) AS reproducible_experimental, - (SELECT e.unreproducible FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='testing' $WHERE_EXTRA) AS unreproducible_testing, + (SELECT e.unreproducible FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='stretch' $WHERE_EXTRA) AS unreproducible_stretch, (SELECT e.unreproducible FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='unstable' $WHERE_EXTRA) AS unreproducible_unstable, (SELECT e.unreproducible FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental' $WHERE_EXTRA) AS unreproducible_experimental, - (SELECT e.FTBFS FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='testing' $WHERE_EXTRA) AS FTBFS_testing, + (SELECT e.FTBFS FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='stretch' $WHERE_EXTRA) AS FTBFS_stretch, (SELECT e.FTBFS FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='unstable' $WHERE_EXTRA) AS FTBFS_unstable, (SELECT e.FTBFS FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental' $WHERE_EXTRA) AS FTBFS_experimental, - (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='testing' $WHERE_EXTRA) AS other_testing, + (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='stretch' $WHERE_EXTRA) AS other_stretch, (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='unstable' $WHERE_EXTRA) AS other_unstable, (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental' $WHERE_EXTRA) AS other_experimental FROM stats_builds_per_day AS s $WHERE2_EXTRA GROUP BY s.datum) as stats @@ -741,7 +741,7 @@ create_png_from_table() { COLORS=${COLOR[$1]} if [ $1 -eq 2 ] ; then case "$SUITE" in - testing) COLORS=40 ;; + stretch) COLORS=40 ;; unstable) COLORS=41 ;; experimental) COLORS=42 ;; esac diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py index ca227504..929da615 100755 --- a/bin/reproducible_html_breakages.py +++ b/bin/reproducible_html_breakages.py @@ -109,12 +109,12 @@ def lack_buildinfo(): def pbuilder_dep_fail(): log.info('running pbuilder_dep_fail check...') bad_pkgs = [] - # we only care about these failures in the testing suite as they happen + # we only care about these failures in the stretch suite as they happen # all the time in other suites, as packages are buggy # and specific versions also come and go query = '''SELECT s.name, r.version, s.suite, s.architecture FROM sources AS s JOIN results AS r ON r.package_id=s.id - WHERE r.status = 'FTBFS' AND s.suite = 'testing' + WHERE r.status = 'FTBFS' AND s.suite = 'stretch' ORDER BY s.name ASC, s.suite DESC, s.architecture ASC''' results = query_db(query) for pkg, version, suite, arch in results: diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index 3855a8c7..4864fab4 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -329,12 +329,12 @@ write_build_performance_stats() { for ARCH in ${ARCHS} ; do write_page " <th>$ARCH</th>" done - write_page "</tr><tr><td class=\"left\">oldest build result in testing / unstable / experimental</td>" + write_page "</tr><tr><td class=\"left\">oldest build result in stretch / unstable / experimental</td>" for ARCH in ${ARCHS} ; do AGE_UNSTABLE=$(query_db "SELECT CAST(greatest(max(oldest_reproducible), max(oldest_unreproducible), max(oldest_FTBFS)) AS INTEGER) FROM ${TABLE[2]} WHERE suite='unstable' AND architecture='$ARCH' AND datum='$DATE'") AGE_EXPERIMENTAL=$(query_db "SELECT CAST(greatest(max(oldest_reproducible), max(oldest_unreproducible), max(oldest_FTBFS)) AS INTEGER) FROM ${TABLE[2]} WHERE suite='experimental' AND architecture='$ARCH' AND datum='$DATE'") - AGE_TESTING=$(query_db "SELECT CAST(greatest(max(oldest_reproducible), max(oldest_unreproducible), max(oldest_FTBFS)) AS INTEGER) FROM ${TABLE[2]} WHERE suite='testing' AND architecture='$ARCH' AND datum='$DATE'") - write_page "<td>$AGE_TESTING / $AGE_UNSTABLE / $AGE_EXPERIMENTAL days</td>" + AGE_STRETCH=$(query_db "SELECT CAST(greatest(max(oldest_reproducible), max(oldest_unreproducible), max(oldest_FTBFS)) AS INTEGER) FROM ${TABLE[2]} WHERE suite='stretch' AND architecture='$ARCH' AND datum='$DATE'") + write_page "<td>$AGE_STRETCH / $AGE_UNSTABLE / $AGE_EXPERIMENTAL days</td>" done write_page "</tr><tr><td class=\"left\">Build jobs configured</td>" for ARCH in ${ARCHS} ; do @@ -553,10 +553,10 @@ create_dashboard_page() { local TD_PKG_SID_FTBR="<tr><td class=\"left\"> - unreproducible ones</a></td><td></td>" local TD_PKG_SID_FTBFS="<tr><td class=\"left\"> - failing to build</a></td><td></td>" local TD_PKG_SID_ISSUES="<tr><td class=\"left\">packages in unstable which need to be fixed</td><td></td>" - local TD_PKG_TESTING_NOISSUES="<tr><td class=\"left\">packages in testing with issues but without identified ones</td><td></td>" - local TD_PKG_TESTING_FTBR="<tr><td class=\"left\"> - unreproducible ones</a></td><td></td>" - local TD_PKG_TESTING_FTBFS="<tr><td class=\"left\"> - failing to build</a></td><td></td>" - local TD_PKG_TESTING_ISSUES="<tr><td class=\"left\">packages in testing which need to be fixed</td><td></td>" + local TD_PKG_STRETCH_NOISSUES="<tr><td class=\"left\">packages in stretch with issues but without identified ones</td><td></td>" + local TD_PKG_STRETCH_FTBR="<tr><td class=\"left\"> - unreproducible ones</a></td><td></td>" + local TD_PKG_STRETCH_FTBFS="<tr><td class=\"left\"> - failing to build</a></td><td></td>" + local TD_PKG_STRETCH_ISSUES="<tr><td class=\"left\">packages in stretch which need to be fixed</td><td></td>" for ARCH in ${ARCHS} ; do SUITE="unstable" gather_suite_arch_stats @@ -569,24 +569,24 @@ create_dashboard_page() { RESULT=$(query_db "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status='FTBFS' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH') tmp") TD_PKG_SID_FTBFS="$TD_PKG_SID_FTBFS<td>$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" - SUITE="testing" + SUITE="stretch" gather_suite_arch_stats - TD_PKG_TESTING_ISSUES="$TD_PKG_TESTING_ISSUES<td>$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%</td>" + TD_PKG_STRETCH_ISSUES="$TD_PKG_STRETCH_ISSUES<td>$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%</td>" RESULT=$(query_db "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status IN ('unreproducible', 'FTBFS', 'blacklisted') AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH') tmp") - TD_PKG_TESTING_NOISSUES="$TD_PKG_TESTING_NOISSUES<td><a href=\"/debian/$SUITE/$ARCH/index_no_notes.html\">$RESULT</a> / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" + TD_PKG_STRETCH_NOISSUES="$TD_PKG_STRETCH_NOISSUES<td><a href=\"/debian/$SUITE/$ARCH/index_no_notes.html\">$RESULT</a> / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" RESULT=$(query_db "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status='unreproducible' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH') tmp") - TD_PKG_TESTING_FTBR="$TD_PKG_TESTING_FTBR<td>$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" + TD_PKG_STRETCH_FTBR="$TD_PKG_STRETCH_FTBR<td>$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" RESULT=$(query_db "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status='FTBFS' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH') tmp") - TD_PKG_TESTING_FTBFS="$TD_PKG_TESTING_FTBFS<td>$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" + TD_PKG_STRETCH_FTBFS="$TD_PKG_STRETCH_FTBFS<td>$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%</td>" done write_page "$TD_PKG_SID_NOISSUES</tr>" write_page "$TD_PKG_SID_FTBR</tr>" write_page "$TD_PKG_SID_FTBFS</tr>" write_page "$TD_PKG_SID_ISSUES</tr>" - write_page "$TD_PKG_TESTING_NOISSUES</tr>" - write_page "$TD_PKG_TESTING_FTBR</tr>" - write_page "$TD_PKG_TESTING_FTBFS</tr>" - write_page "$TD_PKG_TESTING_ISSUES</tr>" + write_page "$TD_PKG_STRETCH_NOISSUES</tr>" + write_page "$TD_PKG_STRETCH_FTBR</tr>" + write_page "$TD_PKG_STRETCH_FTBFS</tr>" + write_page "$TD_PKG_STRETCH_ISSUES</tr>" ARCH="amd64" SUITE="unstable" diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index 1ecc71e8..0c3e6b27 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015-2016 Holger Levsen <holger@layer-acht.org> +# Copyright 2015-2017 Holger Levsen <holger@layer-acht.org> # released under the GPLv=2 DEBUG=false @@ -58,7 +58,7 @@ for PKG in $SOURCEPKGS ; do CRUFT="" BET="" OBSOLETE_IN_SID=false - OBSOLETE_IN_TESTING=false + OBSOLETE_IN_STRETCH=false OBSOLETE_IN_EXP=false # # gather versions of a package @@ -77,23 +77,23 @@ for PKG in $SOURCEPKGS ; do CRUFT="$CRUFT ${VERSION}" fi done - TESTING=$(rmadison -s testing $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) + STRETCH=$(rmadison -s stretch $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) EXPERIMENTAL=$(rmadison -s experimental $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) # # format output # CSID="" - CTEST="" + CSTRETCH="" CEXP="" - if [ ! -z "$TESTING" ] ; then - for i in $TESTING ; do + if [ ! -z "$STRETCH" ] ; then + for i in $STRETCH ; do if dpkg --compare-versions "$i" gt "$BET" ; then - CTEST="$CTEST<span class=\"green\">$i</span><br />" - OBSOLETE_IN_TESTING=true + CSTRETCH="$CSTRETCH<span class=\"green\">$i</span><br />" + OBSOLETE_IN_STRETCH=true OBSOLETE_IN_SID=true OBSOLETE_IN_EXP=true else - CTEST="$CTEST$i<br />" + CSTRETCH="$CSTRETCH$i<br />" fi done fi @@ -179,8 +179,8 @@ for PKG in $SOURCEPKGS ; do else write_row "<a href=\"$URL\">$GIT</a>" MERGEINFO="" - if $OBSOLETE_IN_TESTING ; then - MERGEINFO=" and available in testing and unstable" + if $OBSOLETE_IN_STRETCH ; then + MERGEINFO=" and available in stretch and unstable" elif $OBSOLETE_IN_SID ; then MERGEINFO=" and available in unstable" elif $OBSOLETE_IN_EXP ; then @@ -191,14 +191,14 @@ for PKG in $SOURCEPKGS ; do else write_row "<a href=\"$URL\">$GIT</a>" if [ "$PKG" != "strip-nondeterminism" ] && [ "$PKG" != "diffoscope" ] && [ "$PKG" != "debbindiff" ] && [ "$PKG" != "disorderfs" ] ; then - if $OBSOLETE_IN_TESTING && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then + if $OBSOLETE_IN_STRETCH && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then write_row "<br />(unused?" write_row "<br /><span class=\"purple\">Then the branch should probably renamed.</span>)" elif $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then - write_row "<br />(only used in testing, fixed in sid," + write_row "<br />(only used in stretch, fixed in sid," write_row "<br /><span class=\"purple\">branch probably either should be renamed to <em>merged/reproducible_builds</em> or a new upload to our repo is needed?</span>)" elif $OBSOLETE_IN_EXP ; then - write_row "<br />(only used in testing and unstable, fixed in experimental)" + write_row "<br />(only used in stretch and unstable, fixed in experimental)" fi elif [ "$PKG" = "disorderfs" ] ; then write_row "<br />(only used to modify the build environment in the 2nd build)" @@ -221,7 +221,7 @@ for PKG in $SOURCEPKGS ; do write_row " <td><a href=\"$URL\">bugs</a></td>" write_row " <td>$CRUFT</td>" write_row " <td>$BET $CBINARIES</td>" - write_row " <td>$CTEST</td>" + write_row " <td>$CSTRETCH</td>" write_row " <td>$CSID</td>" write_row " <td>$CEXP</td>" write_row "</tr>" @@ -229,14 +229,14 @@ for PKG in $SOURCEPKGS ; do echo done if [ -s $TABLE_TODO ] ; then - write_page "<p><table><tr><th class=\"center\">package</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old versions in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>" + write_page "<p><table><tr><th class=\"center\">package</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old versions in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'stretch'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>" cat $TABLE_TODO >> $PAGE write_page "</table></p>" else write_page "<p>Congratulations! There are no modified packages in our repository compared to unstable. (Yes, that means our repository is obsolete now.)" fi if [ -s $TABLE_DONE ] ; then - write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>" + write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'stretch'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>" cat $TABLE_DONE >> $PAGE write_page "</table></p>" fi diff --git a/bin/reproducible_json.py b/bin/reproducible_json.py index 4c759c17..33e218b6 100755 --- a/bin/reproducible_json.py +++ b/bin/reproducible_json.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright © 2015 Mattia Rizzolo <mattia@mapreri.org> -# Copyright © 2015 Holger Levsen <holger@layer-acht.org> +# Copyright © 2015-2017 Holger Levsen <holger@layer-acht.org> # Based on reproducible_json.sh © 2014 Holger Levsen <holger@layer-acht.org> # Licensed under GPL-2 # @@ -48,8 +48,8 @@ for row in result: log.debug(pkg) output.append(pkg) - # tracker.d.o should only care about results in testing - if pkg['suite'] == 'testing': + # tracker.d.o should only care about results in stretch + if pkg['suite'] == 'stretch': package = pkg['package'] if package in crossarch: diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 66cee4ab..ffc5c804 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -419,7 +419,7 @@ fi # find + chmod files with bad permissions echo "$(date -u) - Checking for files with bad permissions." -BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,rbuild,artifacts,unstable,experimental,testing,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true) +BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,rbuild,artifacts,unstable,experimental,stretch,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true) if [ ! -z "$BADPERMS" ] ; then DIRTY=true echo diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py index 9b449425..ceeeff53 100755 --- a/bin/reproducible_notes.py +++ b/bin/reproducible_notes.py @@ -27,7 +27,7 @@ def load_notes(): { 'package_name': [ {'suite': 'unstable', 'version': '0.0', 'comments': None, 'bugs': [1234, 5678], 'issues': ['blalba','auauau']}, - {'suite': 'testing', 'version': None, 'comments': 'strstr', + {'suite': 'stretch', 'version': None, 'comments': 'strstr', 'bugs': [], 'issues': []}], 'package_name':<etc> } """ diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 39ed8071..9138e174 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -71,110 +71,110 @@ MAXIMA = {'amd64': 1600, 'i386': 1500, 'arm64': 1500, 'armhf': 1000} LIMITS = { 'untested': { 'amd64': { - 'testing': {'*': 100}, + 'stretch': {'*': 100}, 'unstable': {'*': 100}, 'experimental': {'*': 100}, }, 'i386': { - 'testing': {'*': 100}, + 'stretch': {'*': 100}, 'unstable': {'*': 100}, 'experimental': {'*': 100}, }, 'arm64': { - 'testing': {'*': 100}, + 'stretch': {'*': 100}, 'unstable': {'*': 100}, 'experimental': {'*': 100}, }, 'armhf': { - 'testing': {'*': 100}, + 'stretch': {'*': 100}, 'unstable': {'*': 100}, 'experimental': {'*': 100}, }, }, 'new': { 'amd64': { - 'testing': {1: (100, 250), 2: (200, 200), '*': 100}, + 'stretch': {1: (100, 250), 2: (200, 200), '*': 100}, 'unstable': {1: (100, 250), 2: (200, 200), '*': 150}, 'experimental': {1: (100, 250), 2: (200, 200), '*': 50}, }, 'i386': { - 'testing': {1: (100, 250), 2: (200, 200), '*': 100}, + 'stretch': {1: (100, 250), 2: (200, 200), '*': 100}, 'unstable': {1: (100, 250), 2: (200, 200), '*': 150}, 'experimental': {1: (100, 250), 2: (200, 200), '*': 50}, }, 'arm64': { - 'testing': {1: (100, 250), 2: (200, 200), '*': 50}, + 'stretch': {1: (100, 250), 2: (200, 200), '*': 50}, 'unstable': {1: (100, 250), 2: (200, 200), '*': 75}, 'experimental': {1: (100, 200), 2: (200, 200), '*': 25}, }, 'armhf': { - 'testing': {1: (100, 200), 2: (200, 200), '*': 50}, + 'stretch': {1: (100, 200), 2: (200, 200), '*': 50}, 'unstable': {1: (100, 200), 2: (200, 200), '*': 75}, 'experimental': {1: (100, 200), 2: (200, 200), '*': 25}, }, }, 'ftbfs': { 'amd64': { - 'testing': {1: (700, 40), 2: (500, 20), '*': 5}, + 'stretch': {1: (700, 40), 2: (500, 20), '*': 5}, 'unstable': {1: (700, 40), 2: (500, 20), '*': 5}, 'experimental': {1: (700, 40), 2: (500, 20), '*': 2}, }, 'i386': { - 'testing': {1: (700, 40), 2: (500, 20), '*': 5}, + 'stretch': {1: (700, 40), 2: (500, 20), '*': 5}, 'unstable': {1: (700, 40), 2: (500, 20), '*': 5}, 'experimental': {1: (700, 40), 2: (500, 20), '*': 2}, }, 'arm64': { - 'testing': {1: (700, 40), 2: (500, 20), '*': 5}, + 'stretch': {1: (700, 40), 2: (500, 20), '*': 5}, 'unstable': {1: (700, 40), 2: (500, 20), '*': 5}, 'experimental': {1: (700, 40), 2: (500, 20), '*': 2}, }, 'armhf': { - 'testing': {1: (575, 20), 2: (450, 10), '*': 5}, + 'stretch': {1: (575, 20), 2: (450, 10), '*': 5}, 'unstable': {1: (575, 20), 2: (450, 10), '*': 5}, 'experimental': {1: (575, 20), 2: (450, 10), '*': 2}, } }, 'depwait': { 'amd64': { - 'testing': {1: (700, 400), 2: (500, 200), '*': 50}, + 'stretch': {1: (700, 400), 2: (500, 200), '*': 50}, 'unstable': {1: (700, 400), 2: (500, 200), '*': 50}, 'experimental': {1: (700, 400), 2: (500, 200), '*': 20}, }, 'i386': { - 'testing': {1: (700, 400), 2: (500, 200), '*': 50}, + 'stretch': {1: (700, 400), 2: (500, 200), '*': 50}, 'unstable': {1: (700, 400), 2: (500, 200), '*': 50}, 'experimental': {1: (700, 400), 2: (500, 200), '*': 20}, }, 'arm64': { - 'testing': {1: (700, 400), 2: (500, 200), '*': 50}, + 'stretch': {1: (700, 400), 2: (500, 200), '*': 50}, 'unstable': {1: (700, 400), 2: (500, 200), '*': 50}, 'experimental': {1: (700, 400), 2: (500, 200), '*': 20}, }, 'armhf': { - 'testing': {1: (575, 200), 2: (450, 100), '*': 50}, + 'stretch': {1: (575, 200), 2: (450, 100), '*': 50}, 'unstable': {1: (575, 200), 2: (450, 100), '*': 50}, 'experimental': {1: (575, 200), 2: (450, 100), '*': 20}, } }, 'old': { 'amd64': { - 'testing': {1: (700, 1000), 2: (1100, 850), '*': 0}, + 'stretch': {1: (700, 1000), 2: (1100, 850), '*': 0}, 'unstable': {1: (700, 1200), 2: (1100, 1050), '*': 0}, 'experimental': {1: (700, 70), 2: (1100, 50), '*': 0}, }, 'i386': { - 'testing': {1: (700, 1000), 2: (1100, 850), '*': 0}, + 'stretch': {1: (700, 1000), 2: (1100, 850), '*': 0}, 'unstable': {1: (700, 1200), 2: (1100, 1050), '*': 0}, 'experimental': {1: (700, 70), 2: (1100, 50), '*': 0}, }, 'arm64': { - 'testing': {1: (700, 1000), 2: (1100, 850), '*': 0}, + 'stretch': {1: (700, 1000), 2: (1100, 850), '*': 0}, 'unstable': {1: (700, 1200), 2: (1100, 1050), '*': 0}, 'experimental': {1: (700, 70), 2: (1100, 50), '*': 0}, }, 'armhf': { - 'testing': {1: (600, 800), 2: (850, 500), '*': 0}, + 'stretch': {1: (600, 800), 2: (850, 500), '*': 0}, 'unstable': {1: (600, 1000), 2: (850, 700), '*': 0}, 'experimental': {1: (600, 70), 2: (850, 50), '*': 0}, } @@ -449,7 +449,7 @@ def query_new_versions(suite, arch, limit): LIMIT {limit}""".format(suite=suite, arch=arch, limit=limit) pkgs = query_db(query) # the next line avoids constant rescheduling of packages: - # packages in our repository != sid or testing, + # packages in our repository != sid or stretch, # so they will always be selected by the query above # so we only accept them if there version is greater than the already tested one packages = [(x[0], x[1]) for x in pkgs if version_compare(x[2], x[3]) > 0] diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index d7dc90fa..c64e2fa9 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014-2016 Holger Levsen <holger@layer-acht.org> +# Copyright 2014-2017 Holger Levsen <holger@layer-acht.org> # released under the GPLv=2 DEBUG=false @@ -127,8 +127,8 @@ setup_pbuilder() { sudo pbuilder --execute $pbuilder_http_proxy --save-after-exec --basetgz /var/cache/pbuilder/${NAME}-new.tgz -- ${TMPFILE} | tee ${LOG} rm ${TMPFILE} - # add repo only for experimental and sid - keep testing "real" (and sid progressive!) - if [ "$SUITE" != "testing" ] ; then + # add repo only for experimental and sid - keep stretch "real" (and sid progressive!) + if [ "$SUITE" != "stretch" ] ; then # apply further customisations, eg. install $PACKAGES from our repo create_setup_our_repo_tmpfile ${TMPFILE} "${PACKAGES}" if [ "$DEBUG" = "true" ] ; then diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index dcf11e74..94a2fbb6 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2012-2016 Holger Levsen <holger@layer-acht.org> +# Copyright 2012-2017 Holger Levsen <holger@layer-acht.org> # Copyright 2013 Antonio Terceiro <terceiro@debian.org> # Copyright 2014 Joachim Breitner <nomeata@debian.org> # Copyright 2015 MAttia Rizzolo <mattia@mapreri.org> @@ -183,13 +183,13 @@ bootstrap() { robust_chroot_apt install -y --no-install-recommends sudo robust_chroot_apt install -y --no-install-recommends $@ # try to use diffoscope from experimental - if ([ "$SUITE" = "unstable" ] || [ "$SUITE" = "testing" ] ) && [ "$1" = "diffoscope" ] ; then + if ([ "$SUITE" = "unstable" ] || [ "$SUITE" = "stretch" ] ) && [ "$1" = "diffoscope" ] ; then echo "deb $MIRROR experimental main" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null robust_chroot_apt update # install diffoscope from experimental without re-adding all recommends... sudo chroot $SCHROOT_TARGET apt-get install -y -t experimental --no-install-recommends diffoscope || echo "Warning: diffoscope from experimental is uninstallable at the moment." - elif [ "$SUITE" = "testing" ] && [ "$1" = "diffoscope" ] ; then - # always try to use diffoscope from unstable on testing + elif [ "$SUITE" = "stretch" ] && [ "$1" = "diffoscope" ] ; then + # always try to use diffoscope from unstable on stretch echo "deb $MIRROR unstable main" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null robust_chroot_apt update # install diffoscope from unstable without re-adding all recommends... |