31
30
Passing only suite, request retry on all failed states:
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: ...
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
DEBUG Intitialising connection.
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'
52
50
Superseded builds won't be retried; buildd-manager will just skip the build
53
51
and set it to SUPERSEDED.
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)
53
>>> from zope.security.proxy import removeSecurityProxy
54
>>> from lp.soyuz.interfaces.binarypackagebuild import (
55
... IBinaryPackageBuildSet)
56
>>> from lp.soyuz.enums import PackagePublishingStatus
57
>>> build = getUtility(IBinaryPackageBuildSet).getByID(12)
58
>>> pub = removeSecurityProxy(build.current_source_publication)
62
60
Let's mark the build from the previous run superseded.
64
>>> pub.status = PackagePublishingStatus.SUPERSEDED
65
>>> print build.current_source_publication
67
>>> transaction.commit()
62
>>> pub.status = PackagePublishingStatus.SUPERSEDED
63
>>> print build.current_source_publication
65
>>> transaction.commit()
69
67
A new run doesn't pick it up.
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: ...
69
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NFDC",
71
... stdout=subprocess.PIPE,
72
... stderr=subprocess.PIPE,)
73
>>> stdout, stderr = process.communicate()
74
>>> process.returncode
77
DEBUG Intitialising connection.
78
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release/RELEASE'
79
INFO Processing builds in 'Failed to build'
80
INFO Processing builds in 'Dependency wait'
81
DEBUG Skipping superseded i386 build of libstdc++ b8p in ubuntu hoary RELEASE (12)
82
INFO Processing builds in 'Chroot problem'
91
>>> pub.status = PackagePublishingStatus.PUBLISHED
92
>>> transaction.commit()
87
>>> pub.status = PackagePublishingStatus.PUBLISHED
88
>>> transaction.commit()
94
90
Passing an architecture, which contains no failed build records,
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: ...
93
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NFDC",
94
... "-s", "hoary", "-a", "hppa"],
95
... stdout=subprocess.PIPE,
96
... stderr=subprocess.PIPE,)
97
>>> stdout, stderr = process.communicate()
98
>>> process.returncode
101
DEBUG Intitialising connection.
102
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release for hppa (hppa)/RELEASE'
103
INFO Processing builds in 'Failed to build'
104
INFO Processing builds in 'Dependency wait'
105
INFO Processing builds in 'Chroot problem'
119
111
Selecting only a specific failed state:
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: ...
113
>>> process = subprocess.Popen([sys.executable, script, "-v", "-NF",
115
... stdout=subprocess.PIPE,
116
... stderr=subprocess.PIPE,)
117
>>> stdout, stderr = process.communicate()
118
>>> process.returncode
121
DEBUG Intitialising connection.
122
INFO Initializing Build Mass-Retry for 'The Hoary Hedgehog Release/RELEASE'
123
INFO Processing builds in 'Failed to build'