~laney/ubuntu-archive-scripts/auto-accept-i386-whitelist

« back to all changes in this revision

Viewing changes to archive-reports

  • Committer: Colin Watson
  • Date: 2020-02-06 10:40:47 UTC
  • Revision ID: cjwatson@canonical.com-20200206104047-zlo4nx1222c1pi5w
Stop running reports on ubuntu-rtm or the stable phone overlay.

These are for obsolete products, and neither has changed in years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
fi
23
23
 
24
24
MIRROR="$HOME/mirror/ubuntu"
25
 
MIRROR_RTM="$HOME/mirror/ubuntu-rtm"
26
 
MIRROR_PHONE_OVERLAY="$HOME/mirror/phone-overlay"
27
25
GERMINATE="$HOME/mirror/ubuntu-germinate"
28
26
OUT="$HOME/public_html"
29
27
DEVEL=focal
30
 
DEVEL_RTM=14.09
31
 
DEVEL_RTM_FACTORY=14.09-factory
32
28
PROPOSED_MIGRATION_SERIES="precise trusty xenial bionic disco eoan focal"
33
 
PROPOSED_MIGRATION_SERIES_RTM="14.09 14.09-factory"
34
29
 
35
30
mtimes="$(mktemp -d)"
36
31
 
37
32
collect_mtimes () {
38
33
        stat -c '%n %Y' \
39
34
                "$MIRROR"/dists/*/Release \
40
 
                "$MIRROR_RTM"/dists/*/Release \
41
 
                "$MIRROR_PHONE_OVERLAY"/dists/*/Release \
42
35
                "$GERMINATE/germinate.output" \
43
36
                "$HOME/extra-germinate/germinate.output" \
44
37
                >"$mtimes/$1" 2>/dev/null || true
52
45
        [ "$(mtime old "$1")" != "$(mtime new "$1")" ]
53
46
}
54
47
 
55
 
is_rtm () {
56
 
        [ -e "$MIRROR_RTM/dists/$1" ]
57
 
}
58
 
 
59
48
release_changed () {
60
 
        if is_rtm "$1"; then
61
 
                mtime_changed "$MIRROR_RTM/dists/$1/Release"
62
 
        else
63
 
                mtime_changed "$MIRROR/dists/$1/Release"
64
 
        fi
 
49
        mtime_changed "$MIRROR/dists/$1/Release"
65
50
}
66
51
 
67
52
germinate_changed () {
71
56
 
72
57
is_devel () {
73
58
        case $suite in
74
 
            $DEVEL-proposed|$DEVEL_RTM-proposed|$DEVEL_RTM_FACTORY-proposed)
 
59
            $DEVEL-proposed)
75
60
                return 0
76
61
                ;;
77
62
            *)
82
67
 
83
68
pm_pending_tests () {
84
69
        local excuses
85
 
        if is_rtm "$1"; then
86
 
                excuses="$HOME/public_html/proposed-migration/ubuntu-rtm/$1/update_excuses.html"
87
 
        else
88
 
                excuses="$HOME/public_html/proposed-migration/$1/update_excuses.html"
89
 
        fi
 
70
        excuses="$HOME/public_html/proposed-migration/$1/update_excuses.html"
90
71
        [ ! -f "$excuses" ] || grep -q "Test in progress" "$excuses"
91
72
}
92
73
 
124
105
        --prune-empty-dirs \
125
106
        ftpmaster.internal::ubuntu-dists/ "$MIRROR/dists/"
126
107
 
127
 
mkdir -p "$MIRROR_RTM"
128
 
rsync -aq \
129
 
        --include Packages\* --include Sources\* --include Release\* \
130
 
        --include udeb.list --include \*\*/installer-\*/current \
131
 
        --include "**/$DEVEL_RTM/Contents-*" \
132
 
        --include "**/$DEVEL_RTM_FACTORY/Contents-*" \
133
 
        --include \*/ --exclude \* --delete --delete-excluded \
134
 
        --prune-empty-dirs \
135
 
        bilimbi.canonical.com::ubuntu-rtm-dists/ "$MIRROR_RTM/dists/"
136
 
 
137
 
mkdir -p "$MIRROR_PHONE_OVERLAY"
138
 
http_proxy=http://squid.internal:3128/ wget -q --mirror \
139
 
        -nH --cut-dirs=3 -np -R '*index.html*' \
140
 
        -P "$MIRROR_PHONE_OVERLAY" \
141
 
        -X '/*/*/*/*/*/*/i18n' \
142
 
        http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/dists/
143
 
 
144
108
collect_mtimes new
145
109
 
146
110
# The $DEVEL-proposed chdist configuration is used by proposed-migration;
162
126
done
163
127
background_wait chdist_pids
164
128
 
165
 
if mtime_changed "$MIRROR/.*/Release" || \
166
 
   mtime_changed "$MIRROR_RTM/.*/Release" || \
167
 
   mtime_changed "$MIRROR_PHONE_OVERLAY/.*/Release"; then
 
129
if mtime_changed "$MIRROR/.*/Release"; then
168
130
        background pids run-apt-mirror-snapshot
169
131
fi
170
132
 
180
142
        fi
181
143
done
182
144
 
183
 
run_proposed_migration_rtm () {
184
 
        DISTRIBUTION=ubuntu-rtm SERIES="$1" \
185
 
                B2_CONFIG=/home/ubuntu-archive/proposed-migration/britney-rtm.conf \
186
 
                B2_CONFIG_NOBREAKALL=/home/ubuntu-archive/proposed-migration/britney_nobreakall-rtm.conf \
187
 
                run-proposed-migration
188
 
}
189
 
for series in $PROPOSED_MIGRATION_SERIES_RTM; do
190
 
        if release_changed "$series" || release_changed "$series-proposed" || \
191
 
           release_changed "$series-updates" || \
192
 
           pm_pending_tests "$series"; then
193
 
                background pids run_proposed_migration_rtm "$series"
194
 
        fi
195
 
done
196
 
 
197
145
# Both update-transitions and run-britney need this.
198
146
rsync -aq --delete --prune-empty-dirs \
199
147
        "$MIRROR/dists/" \
230
178
        background pids cron.NBS
231
179
fi
232
180
 
233
 
nbs_rtm () {
234
 
        DISTRIBUTION=ubuntu-rtm RELEASE="$1" \
235
 
                OUTDIR="$HOME/public_html/NBS-RTM" \
236
 
                OUTFILE="$HOME/public_html/nbs-rtm.html" \
237
 
                cron.NBS
238
 
}
239
 
if release_changed "$DEVEL_RTM"; then
240
 
        background pids nbs_rtm "$DEVEL_RTM"
241
 
fi
242
 
 
243
181
if release_changed "$DEVEL" || release_changed "$DEVEL-proposed"; then
244
182
        # Do an extra germinate run so that we can run component-mismatches
245
183
        # against -proposed.  (We can't do this as part of LP archive