Merge ~vorlon/britney/+git/britney2-ubuntu:no-implicit-dependency-policy into ~ubuntu-release/britney/+git/britney2-ubuntu:master

Proposed by Steve Langasek
Status: Merged
Merged at revision: a3da577f8f35c52d0815ac31521e007c1b708ab4
Proposed branch: ~vorlon/britney/+git/britney2-ubuntu:no-implicit-dependency-policy
Merge into: ~ubuntu-release/britney/+git/britney2-ubuntu:master
Diff against target: 32 lines (+9/-1)
2 files modified
britney.conf (+2/-0)
britney.py (+7/-1)
Reviewer Review Type Date Requested Status
Ubuntu Release Team Pending
Review via email: mp+460522@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Simon Quigley (tsimonq2) wrote (last edit ):

I am not a member of the Release Team, but I did take the time to review this. It does seem rational; conceptually, this will allow us to move transitions forward faster. Pragmatically, this makes Britney run a little quicker. Either way, it seems beneficial to me.

Thank you for this!

Revision history for this message
Steve Langasek (vorlon) wrote :

> Pragmatically, this makes Britney run a little quicker.

This is not at all guaranteed to be true. When transitions are in flight, short-circuiting at the update_excuses phase is likely to be faster than getting to the bottom of them in update_output.

Revision history for this message
Steve Langasek (vorlon) wrote :

This is merged now, this broken policy is actively impeding the time_t transition.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/britney.conf b/britney.conf
2index 80003ed..145c189 100644
3--- a/britney.conf
4+++ b/britney.conf
5@@ -89,6 +89,8 @@ REMOVE_OBSOLETE = no
6
7 CHECK_BUILDD = no
8
9+IMPLICIT_DEPS = no
10+
11 ADT_ENABLE = yes
12 ADT_ARCHES = amd64 i386 armhf ppc64el arm64
13 ADT_AMQP = amqp://test_request:password@autopkgtest-amqp.internal
14diff --git a/britney.py b/britney.py
15index 3063dd2..8d8f427 100755
16--- a/britney.py
17+++ b/britney.py
18@@ -538,7 +538,13 @@ class Britney(object):
19 self._policy_engine.add_policy(BlockPolicy(self.options, self.suite_info))
20 # XXX re-enable once https://bugs.launchpad.net/launchpad/+bug/1868558 is fixed
21 # self._policy_engine.add_policy(BuiltUsingPolicy(self.options, self.suite_info))
22- self._policy_engine.add_policy(ImplicitDependencyPolicy(self.options, self.suite_info))
23+ # This policy is objectively terrible, it reduces britney runtime
24+ # at the cost of giving only partial information about blocking
25+ # packages during large transitions instead of giving full detail in
26+ # update_output that the team can work through in parallel, thus
27+ # dragging out complicated transitions. vorlon 20240214
28+ if getattr(self.options, 'implicit_deps', 'yes') == 'yes':
29+ self._policy_engine.add_policy(ImplicitDependencyPolicy(self.options, self.suite_info))
30 if getattr(self.options, 'check_buildd', 'no') == 'yes':
31 self._policy_engine.add_policy(BuiltOnBuilddPolicy(self.options, self.suite_info))
32 self._policy_engine.add_policy(LPBlockBugPolicy(self.options, self.suite_info))

Subscribers

People subscribed via source and target branches