30
31
Passing only suite, request retry on all failed states:
32
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NFDC",
34
... stdout=subprocess.PIPE,
35
... stderr=subprocess.PIPE,)
36
>>> stdout, stderr = process.communicate()
37
>>> process.returncode
40
INFO Creating lockfile: ...
41
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release/RELEASE'
42
INFO Processing builds in 'Failed to build'
43
INFO Processing builds in 'Dependency wait'
44
INFO Retrying i386 build of libstdc++ b8p in ubuntu hoary RELEASE (12)
45
INFO Processing builds in 'Chroot problem'
48
DEBUG Removing lock file: ...
33
>>> process = subprocess.Popen(
34
... [sys.executable, script, "-v", "-NFDC", "-s", "hoary"],
35
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
36
>>> stdout, stderr = process.communicate()
37
>>> process.returncode
40
INFO Creating lockfile: ...
41
INFO Initializing Build Mass-Retry for
42
'The Hoary Hedgehog Release/RELEASE'
43
INFO Processing builds in 'Failed to build'
44
INFO Processing builds in 'Dependency wait'
45
INFO Retrying i386 build of libstdc++ b8p in ubuntu hoary RELEASE (12)
46
INFO Processing builds in 'Chroot problem'
49
DEBUG Removing lock file: ...
51
52
Superseded builds won't be retried; buildd-manager will just skip the build
52
53
and set it to SUPERSEDED.
54
>>> from zope.security.proxy import removeSecurityProxy
55
>>> from lp.soyuz.interfaces.binarypackagebuild import (
56
... IBinaryPackageBuildSet)
57
>>> from lp.soyuz.enums import PackagePublishingStatus
58
>>> build = getUtility(IBinaryPackageBuildSet).getByID(12)
59
>>> pub = removeSecurityProxy(build.current_source_publication)
55
>>> from zope.security.proxy import removeSecurityProxy
56
>>> from lp.soyuz.interfaces.binarypackagebuild import (
57
... IBinaryPackageBuildSet)
58
>>> from lp.soyuz.enums import PackagePublishingStatus
59
>>> build = getUtility(IBinaryPackageBuildSet).getByID(12)
60
>>> pub = removeSecurityProxy(build.current_source_publication)
61
62
Let's mark the build from the previous run superseded.
63
>>> pub.status = PackagePublishingStatus.SUPERSEDED
64
>>> print build.current_source_publication
66
>>> transaction.commit()
64
>>> pub.status = PackagePublishingStatus.SUPERSEDED
65
>>> print build.current_source_publication
67
>>> transaction.commit()
68
69
A new run doesn't pick it up.
70
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NFDC",
72
... stdout=subprocess.PIPE,
73
... stderr=subprocess.PIPE,)
74
>>> stdout, stderr = process.communicate()
75
>>> process.returncode
78
INFO Creating lockfile: ...
79
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release/RELEASE'
80
INFO Processing builds in 'Failed to build'
81
INFO Processing builds in 'Dependency wait'
82
DEBUG Skipping superseded i386 build of libstdc++ b8p in ubuntu hoary RELEASE (12)
83
INFO Processing builds in 'Chroot problem'
86
DEBUG Removing lock file: ...
71
>>> process = subprocess.Popen(
72
... [sys.executable, script, "-v", "-NFDC", "-s", "hoary"],
73
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
74
>>> stdout, stderr = process.communicate()
75
>>> process.returncode
78
INFO Creating lockfile: ...
79
INFO Initializing Build Mass-Retry for
80
'The Hoary Hedgehog Release/RELEASE'
81
INFO Processing builds in 'Failed to build'
82
INFO Processing builds in 'Dependency wait'
83
DEBUG Skipping superseded i386 build of libstdc++ b8p in
84
ubuntu hoary RELEASE (12)
85
INFO Processing builds in 'Chroot problem'
88
DEBUG Removing lock file: ...
89
>>> pub.status = PackagePublishingStatus.PUBLISHED
90
>>> transaction.commit()
91
>>> pub.status = PackagePublishingStatus.PUBLISHED
92
>>> transaction.commit()
92
94
Passing an architecture, which contains no failed build records,
95
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NFDC",
96
... "-s", "hoary", "-a", "hppa"],
97
... stdout=subprocess.PIPE,
98
... stderr=subprocess.PIPE,)
99
>>> stdout, stderr = process.communicate()
100
>>> process.returncode
103
INFO Creating lockfile: ...
104
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release for hppa (hppa)/RELEASE'
105
INFO Processing builds in 'Failed to build'
106
INFO Processing builds in 'Dependency wait'
107
INFO Processing builds in 'Chroot problem'
110
DEBUG Removing lock file: ...
97
>>> process = subprocess.Popen(
99
... sys.executable, script,
100
... "-v", "-NFDC", "-s", "hoary", "-a", "hppa",
102
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
103
>>> stdout, stderr = process.communicate()
104
>>> process.returncode
107
INFO Creating lockfile: ...
108
INFO Initializing Build Mass-Retry for
109
'The Hoary Hedgehog Release for hppa (hppa)/RELEASE'
110
INFO Processing builds in 'Failed to build'
111
INFO Processing builds in 'Dependency wait'
112
INFO Processing builds in 'Chroot problem'
115
DEBUG Removing lock file: ...
114
119
Selecting only a specific failed state:
116
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NF",
118
... stdout=subprocess.PIPE,
119
... stderr=subprocess.PIPE,)
120
>>> stdout, stderr = process.communicate()
121
>>> process.returncode
124
INFO Creating lockfile: ...
125
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release/RELEASE'
126
INFO Processing builds in 'Failed to build'
129
DEBUG Removing lock file: ...
121
>>> process = subprocess.Popen(
122
... [sys.executable, script, "-v", "-NF", "-s", "hoary"],
123
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
124
>>> stdout, stderr = process.communicate()
125
>>> process.returncode
128
INFO Creating lockfile: ...
129
INFO Initializing Build Mass-Retry for
130
'The Hoary Hedgehog Release/RELEASE'
131
INFO Processing builds in 'Failed to build'
134
DEBUG Removing lock file: ...