Merge autopkgtest-cloud:i386-as-amd64-cross into autopkgtest-cloud:master
- Git
- lp:autopkgtest-cloud
- i386-as-amd64-cross
- Merge into master
Status: | Merged |
---|---|
Merged at revision: | f47801100f79e9bec12e080c5e8cccf8f56bb77f |
Proposed branch: | autopkgtest-cloud:i386-as-amd64-cross |
Merge into: | autopkgtest-cloud:master |
Diff against target: |
152 lines (+30/-10) 11 files modified
worker-config-production/setup-canonical.sh (+7/-0) worker-config-production/worker-bos01-arm64.conf (+1/-1) worker-config-production/worker-bos01-ppc64el.conf (+1/-1) worker-config-production/worker-bos01-s390x.conf (+1/-1) worker-config-production/worker-bos01.conf (+1/-1) worker-config-production/worker-bos02-arm64.conf (+1/-1) worker-config-production/worker-bos02-ppc64el.conf (+1/-1) worker-config-production/worker-bos02-s390x.conf (+1/-1) worker-config-production/worker-canonistack.conf (+1/-1) worker-config-production/worker.conf (+1/-1) worker/worker (+14/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Iain Lane | Needs Fixing | ||
Review via email: mp+376587@code.launchpad.net |
Commit message
Description of the change
Iain Lane (laney) wrote : | # |
Steve, can I nudge you to address these review comments please? It's clear now that we should make this apply to all releases >= focal. At the start of the hirsute cycle, because this is currently cowboyed on the production infrastructure and requires manual editing, I made a mistake and all i386 tests ran as amd64 for a few days. Now this is fixed but we have regressions reported that need to be manually hinted away.
We should not be in this position again - both because there's no cowboy and because it doesn't require adjustment at each opening.
Here's a "release_ge" script I wrote for something else, which you can use like "if release_ge ${RELEASE} focal; then ... fi" in create-
https:/
Balint Reczey (rbalint) wrote : | # |
I've added handling of later releases in:
https:/
Preview Diff
1 | diff --git a/worker-config-production/setup-canonical.sh b/worker-config-production/setup-canonical.sh | |||
2 | index af76f24..f61f1c0 100644 | |||
3 | --- a/worker-config-production/setup-canonical.sh | |||
4 | +++ b/worker-config-production/setup-canonical.sh | |||
5 | @@ -39,3 +39,10 @@ if [ -d /run/systemd/system ] && systemd-detect-virt --quiet --vm; then | |||
6 | 39 | ExecStart=/usr/bin/perl -E 'open \$\$f, "/bin/bash" or die; open \$\$rnd, ">/dev/random" or die; for (\$\$i = 0; \$\$i < 10; ++\$\$i) {read \$\$f, \$\$d, 64; ioctl \$\$rnd, 0x40085203, pack("ii", 64*8, 64) . \$\$d}' | 39 | ExecStart=/usr/bin/perl -E 'open \$\$f, "/bin/bash" or die; open \$\$rnd, ">/dev/random" or die; for (\$\$i = 0; \$\$i < 10; ++\$\$i) {read \$\$f, \$\$d, 64; ioctl \$\$rnd, 0x40085203, pack("ii", 64*8, 64) . \$\$d}' |
7 | 40 | EOF | 40 | EOF |
8 | 41 | fi | 41 | fi |
9 | 42 | |||
10 | 43 | # Make our amd64 runners capable of testing i386 | ||
11 | 44 | if grep -q focal /etc/os-release && [ "$(dpkg --print-architecture)" = amd64 ] | ||
12 | 45 | then | ||
13 | 46 | dpkg --add-architecture i386 | ||
14 | 47 | apt-get update | ||
15 | 48 | fi | ||
16 | diff --git a/worker-config-production/worker-bos01-arm64.conf b/worker-config-production/worker-bos01-arm64.conf | |||
17 | index 5a84577..38c3975 100644 | |||
18 | --- a/worker-config-production/worker-bos01-arm64.conf | |||
19 | +++ b/worker-config-production/worker-bos01-arm64.conf | |||
20 | @@ -24,4 +24,4 @@ blacklist = bionic/arm64/stress-ng bionic/arm64/upstart bionic/arm64/libnih bion | |||
21 | 24 | # flavors | 24 | # flavors |
22 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
23 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
25 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
26 | diff --git a/worker-config-production/worker-bos01-ppc64el.conf b/worker-config-production/worker-bos01-ppc64el.conf | |||
27 | index e8a6d38..cc80e9b 100644 | |||
28 | --- a/worker-config-production/worker-bos01-ppc64el.conf | |||
29 | +++ b/worker-config-production/worker-bos01-ppc64el.conf | |||
30 | @@ -24,4 +24,4 @@ blacklist = bionic/ppc64el/stress-ng bionic/ppc64el/upstart bionic/ppc64el/libni | |||
31 | 24 | # flavors | 24 | # flavors |
32 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
33 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
35 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
36 | diff --git a/worker-config-production/worker-bos01-s390x.conf b/worker-config-production/worker-bos01-s390x.conf | |||
37 | index 9fc3d7e..43a1e77 100644 | |||
38 | --- a/worker-config-production/worker-bos01-s390x.conf | |||
39 | +++ b/worker-config-production/worker-bos01-s390x.conf | |||
40 | @@ -24,4 +24,4 @@ blacklist = bionic/s390x/stress-ng bionic/s390x/upstart bionic/s390x/libnih bion | |||
41 | 24 | # flavors | 24 | # flavors |
42 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
43 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
45 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
46 | diff --git a/worker-config-production/worker-bos01.conf b/worker-config-production/worker-bos01.conf | |||
47 | index f7a8f57..d034ec0 100644 | |||
48 | --- a/worker-config-production/worker-bos01.conf | |||
49 | +++ b/worker-config-production/worker-bos01.conf | |||
50 | @@ -24,4 +24,4 @@ blacklist = bionic/ppc64el/stress-ng bionic/ppc64el/upstart bionic/ppc64el/libni | |||
51 | 24 | # flavors | 24 | # flavors |
52 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
53 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
55 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
56 | diff --git a/worker-config-production/worker-bos02-arm64.conf b/worker-config-production/worker-bos02-arm64.conf | |||
57 | index 5a84577..38c3975 100644 | |||
58 | --- a/worker-config-production/worker-bos02-arm64.conf | |||
59 | +++ b/worker-config-production/worker-bos02-arm64.conf | |||
60 | @@ -24,4 +24,4 @@ blacklist = bionic/arm64/stress-ng bionic/arm64/upstart bionic/arm64/libnih bion | |||
61 | 24 | # flavors | 24 | # flavors |
62 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
63 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
65 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
66 | diff --git a/worker-config-production/worker-bos02-ppc64el.conf b/worker-config-production/worker-bos02-ppc64el.conf | |||
67 | index 1f74340..fbffa47 100644 | |||
68 | --- a/worker-config-production/worker-bos02-ppc64el.conf | |||
69 | +++ b/worker-config-production/worker-bos02-ppc64el.conf | |||
70 | @@ -24,4 +24,4 @@ blacklist = bionic/ppc64el/stress-ng bionic/ppc64el/upstart bionic/ppc64el/libni | |||
71 | 24 | # flavors | 24 | # flavors |
72 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
73 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
75 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
76 | diff --git a/worker-config-production/worker-bos02-s390x.conf b/worker-config-production/worker-bos02-s390x.conf | |||
77 | index 9fc3d7e..43a1e77 100644 | |||
78 | --- a/worker-config-production/worker-bos02-s390x.conf | |||
79 | +++ b/worker-config-production/worker-bos02-s390x.conf | |||
80 | @@ -24,4 +24,4 @@ blacklist = bionic/s390x/stress-ng bionic/s390x/upstart bionic/s390x/libnih bion | |||
81 | 24 | # flavors | 24 | # flavors |
82 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
83 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
85 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --nova-reboot --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server-.* --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,changelogs.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
86 | diff --git a/worker-config-production/worker-canonistack.conf b/worker-config-production/worker-canonistack.conf | |||
87 | index a91e685..32a6c19 100644 | |||
88 | --- a/worker-config-production/worker-canonistack.conf | |||
89 | +++ b/worker-config-production/worker-canonistack.conf | |||
90 | @@ -24,4 +24,4 @@ long_tests = gutenprint gmp-ecm open-iscsi diffoscope | |||
91 | 24 | # flavors | 24 | # flavors |
92 | 25 | package_size_default = m1.small | 25 | package_size_default = m1.small |
93 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
95 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server --keyname #KEYNAME# -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server --keyname #KEYNAME# -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,ppa.launchpad.net' |
96 | diff --git a/worker-config-production/worker.conf b/worker-config-production/worker.conf | |||
97 | index d16e926..f184909 100644 | |||
98 | --- a/worker-config-production/worker.conf | |||
99 | +++ b/worker-config-production/worker.conf | |||
100 | @@ -24,4 +24,4 @@ blacklist = bionic/i386/upstart bionic/amd64/upstart bionic/i386/libnih bionic/a | |||
101 | 24 | # flavors | 24 | # flavors |
102 | 25 | package_size_default = autopkgtest | 25 | package_size_default = autopkgtest |
103 | 26 | package_size_big = m1.large | 26 | package_size_big = m1.large |
105 | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$ARCHITECTURE-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu | 27 | args = ssh -s $CHECKOUTDIR/ssh-setup/nova -- --flavor $PACKAGESIZE --security-groups $SECGROUP --name adt-$RELEASE-$ARCHITECTURE-$PACKAGENAME-$TIMESTAMP --image adt/ubuntu-$RELEASE-$HOSTARCH-server --keyname #KEYNAME# --net-id=net_ues_proposed_migration -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,novalocal,internal,archive.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,ppa.launchpad.net' --mirror=http://ftpmaster.internal/ubuntu |
106 | diff --git a/worker/worker b/worker/worker | |||
107 | index 6a769a6..aaec435 100755 | |||
108 | --- a/worker/worker | |||
109 | +++ b/worker/worker | |||
110 | @@ -176,11 +176,16 @@ def series_to_version(series): | |||
111 | 176 | 176 | ||
112 | 177 | 177 | ||
113 | 178 | def subst(s, autopkgtest_checkout, big_package, release, architecture, pkgname): | 178 | def subst(s, autopkgtest_checkout, big_package, release, architecture, pkgname): |
114 | 179 | if release == 'focal' and architecture == 'i386': | ||
115 | 180 | host_arch = 'amd64' | ||
116 | 181 | else: | ||
117 | 182 | host_arch = architecture | ||
118 | 179 | subst = { | 183 | subst = { |
119 | 180 | 'CHECKOUTDIR': autopkgtest_checkout, | 184 | 'CHECKOUTDIR': autopkgtest_checkout, |
120 | 181 | 'AUTOPKGTEST_CLOUD_DIR': root_path, | 185 | 'AUTOPKGTEST_CLOUD_DIR': root_path, |
121 | 182 | 'RELEASE': release, | 186 | 'RELEASE': release, |
122 | 183 | 'ARCHITECTURE': architecture, | 187 | 'ARCHITECTURE': architecture, |
123 | 188 | 'HOSTARCH': host_arch, | ||
124 | 184 | 'PACKAGENAME': pkgname, | 189 | 'PACKAGENAME': pkgname, |
125 | 185 | 'PACKAGESIZE': cfg.get('virt', | 190 | 'PACKAGESIZE': cfg.get('virt', |
126 | 186 | big_package and 'package_size_big' or 'package_size_default'), | 191 | big_package and 'package_size_big' or 'package_size_default'), |
127 | @@ -359,6 +364,9 @@ def request(msg): | |||
128 | 359 | argv = ['autopkgtest'] | 364 | argv = ['autopkgtest'] |
129 | 360 | argv += ['--output-dir', out_dir, '--timeout-copy=6000'] | 365 | argv += ['--output-dir', out_dir, '--timeout-copy=6000'] |
130 | 361 | 366 | ||
131 | 367 | if release in ('focal',) and architecture == 'i386': | ||
132 | 368 | argv += ['-a', 'i386'] | ||
133 | 369 | |||
134 | 362 | c = cfg.get('autopkgtest', 'extra_args') | 370 | c = cfg.get('autopkgtest', 'extra_args') |
135 | 363 | if c: | 371 | if c: |
136 | 364 | argv += c.strip().split() | 372 | argv += c.strip().split() |
137 | @@ -479,9 +487,14 @@ def request(msg): | |||
138 | 479 | if 'testname' in params: | 487 | if 'testname' in params: |
139 | 480 | argv.append('--testname=%s' % params['testname']) | 488 | argv.append('--testname=%s' % params['testname']) |
140 | 481 | 489 | ||
141 | 490 | if release in ('focal',) and architecture == 'i386': | ||
142 | 491 | img_arch = 'amd64' | ||
143 | 492 | else: | ||
144 | 493 | img_arch = architecture | ||
145 | 494 | |||
146 | 482 | argv.append('--') | 495 | argv.append('--') |
147 | 483 | argv += subst(cfg.get('virt', 'args'), autopkgtest_checkout, big_pkg, | 496 | argv += subst(cfg.get('virt', 'args'), autopkgtest_checkout, big_pkg, |
149 | 484 | release, architecture, pkgname).split() | 497 | release, img_architecture, pkgname).split() |
150 | 485 | 498 | ||
151 | 486 | # run autopkgtest; retry up to three times on tmpfail issues | 499 | # run autopkgtest; retry up to three times on tmpfail issues |
152 | 487 | if not blacklisted: | 500 | if not blacklisted: |
Thanks for this, some specific comments inline. Nothing too major.
One general question: I'm concerned about the hardcoding of "== focal" here. Can you elaborate on whether there is a plan to drop i386 completely after focal which will make this be okay?
I think it is probably better in any event to avoid hardcoding that policy / plan in autopkgtest-cloud, and move to checking for ">= focal" instead, so that we don't have to think about revisiting that if the plan is to drop i386 and yet it doesn't come off for some reason - or doesn't happen immediately in the GG cycle. The requester (the Ubuntu archive and/or proposed-migration) would then have the policy about which tests it wants to see results for. Using something like the following class which lets you compare releases:
https:/ /gist.github. com/iainlane/ eaee9f2b1e681d4 9fb6ed51343dee2 15