mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-28 10:51:31 +00:00
Merge branch 'master' into autopkgtest
This commit is contained in:
commit
f2a121bf55
@ -1101,7 +1101,7 @@ class Britney(object):
|
|||||||
# if the package is blocked, skip it
|
# if the package is blocked, skip it
|
||||||
for hint in self.hints.search('block', package=pkg, removal=True):
|
for hint in self.hints.search('block', package=pkg, removal=True):
|
||||||
excuse.addhtml("Not touching package, as requested by %s "
|
excuse.addhtml("Not touching package, as requested by %s "
|
||||||
"(check https://release.debian.org/testing/freeze_policy.html if update is needed)" % hint.user)
|
"(contact debian-release if update is needed)" % hint.user)
|
||||||
excuse.addreason("block")
|
excuse.addreason("block")
|
||||||
self.excuses[excuse.name] = excuse
|
self.excuses[excuse.name] = excuse
|
||||||
return False
|
return False
|
||||||
@ -1159,7 +1159,7 @@ class Britney(object):
|
|||||||
pkg_name = pkg_id.package_name
|
pkg_name = pkg_id.package_name
|
||||||
|
|
||||||
# retrieve the testing (if present) and unstable corresponding binary packages
|
# retrieve the testing (if present) and unstable corresponding binary packages
|
||||||
binary_t = pkg_name in packages_t_a and packages_t_a[pkg_name] or None
|
binary_t = packages_t_a[pkg_name] if pkg_name in packages_t_a else None
|
||||||
binary_u = packages_s_a[pkg_name]
|
binary_u = packages_s_a[pkg_name]
|
||||||
|
|
||||||
# this is the source version for the new binary package
|
# this is the source version for the new binary package
|
||||||
@ -1369,7 +1369,7 @@ class Britney(object):
|
|||||||
excuse.addhtml("%s request by %s ignored due to version mismatch: %s" %
|
excuse.addhtml("%s request by %s ignored due to version mismatch: %s" %
|
||||||
(unblock_cmd.capitalize(), unblocks[0].user, unblocks[0].version))
|
(unblock_cmd.capitalize(), unblocks[0].user, unblocks[0].version))
|
||||||
if suite == 'unstable' or block_cmd == 'block-udeb':
|
if suite == 'unstable' or block_cmd == 'block-udeb':
|
||||||
tooltip = "check https://release.debian.org/testing/freeze_policy.html if update is needed"
|
tooltip = "please contact debian-release if update is needed"
|
||||||
# redirect people to d-i RM for udeb things:
|
# redirect people to d-i RM for udeb things:
|
||||||
if block_cmd == 'block-udeb':
|
if block_cmd == 'block-udeb':
|
||||||
tooltip = "please contact the d-i release manager if an update is needed"
|
tooltip = "please contact the d-i release manager if an update is needed"
|
||||||
|
20
doc/hints.md
20
doc/hints.md
@ -6,8 +6,8 @@
|
|||||||
This document describes the "britney hints". These are basically
|
This document describes the "britney hints". These are basically
|
||||||
small instructions to britney. The vast majority of them involve
|
small instructions to britney. The vast majority of them involve
|
||||||
overriding a quality gating policy in britney. However, there are a
|
overriding a quality gating policy in britney. However, there are a
|
||||||
few hints that assist britney into finding solutions that she cannot
|
few hints that assist britney into finding solutions that it cannot
|
||||||
compute herself.
|
compute itself.
|
||||||
|
|
||||||
|
|
||||||
## Related configuration
|
## Related configuration
|
||||||
@ -18,7 +18,7 @@ configurations that defines a "hint file" and the related hint
|
|||||||
permissions for it.
|
permissions for it.
|
||||||
|
|
||||||
For each `HINTS_<NAME>` configuration, britney will attempt to read
|
For each `HINTS_<NAME>` configuration, britney will attempt to read
|
||||||
`<HINTSDIR>/<name>`. Note that she lowercases `<NAME>` when looking
|
`<HINTSDIR>/<name>`. Note that it lowercases `<NAME>` when looking
|
||||||
for the file.
|
for the file.
|
||||||
|
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ Configuration example:
|
|||||||
HINTS_FREEZE = block block-all block-udeb
|
HINTS_FREEZE = block block-all block-udeb
|
||||||
HINTS_AUTO-REMOVALS = remove
|
HINTS_AUTO-REMOVALS = remove
|
||||||
|
|
||||||
There is no fixed rules for how to use hints files. Though usually,
|
There are no fixed rules for how to use hints files. Though usually,
|
||||||
each person with permissions to give hints to Britney will have their
|
each person with permissions to give hints to britney will have their
|
||||||
own hint file along with write permissions for that file. It can also
|
own hint file along with write permissions for that file. It can also
|
||||||
make sense to create hint files for "roles". Like in the above
|
make sense to create hint files for "roles". Like in the above
|
||||||
example there are two human hints (anna and john) plus two non-human
|
example there are two human hints (anna and john) plus two non-human
|
||||||
@ -77,7 +77,7 @@ There are the following type of hints:
|
|||||||
## Policy override hints
|
## Policy override hints
|
||||||
|
|
||||||
The policy override hints are used to disable or tweak various
|
The policy override hints are used to disable or tweak various
|
||||||
policies in Britney. Their effects are generally very precise ways of
|
policies in britney. Their effects are generally very precise ways of
|
||||||
accepting specific regressions or disabling various checks.
|
accepting specific regressions or disabling various checks.
|
||||||
|
|
||||||
Some of these items are built-in while others are related to specific
|
Some of these items are built-in while others are related to specific
|
||||||
@ -210,12 +210,12 @@ entire hint is rejected as invalid.
|
|||||||
### easy `<action list>`
|
### easy `<action list>`
|
||||||
|
|
||||||
Perform all the migrations and removals denoted by `<action list>` as if
|
Perform all the migrations and removals denoted by `<action list>` as if
|
||||||
it was a single migration group. If the end result is equal or better
|
it were a single migration group. If the end result is equal or better
|
||||||
compared to the original situation, the action is committed.
|
compared to the original situation, the action is committed.
|
||||||
|
|
||||||
This hint is primarily useful if britney fails to compute a valid
|
This hint is primarily useful if britney fails to compute a valid
|
||||||
solution for a concrete problem with a valid solution. Although, in
|
solution for a concrete problem with a valid solution. Although, in
|
||||||
many cases, Britney will generally figure out the solution on her own.
|
many cases, britney will generally figure out the solution on its own.
|
||||||
|
|
||||||
Note that for `easy` the `<action list>` must have at least two
|
Note that for `easy` the `<action list>` must have at least two
|
||||||
elements. There is no use-case where a single element for easy will
|
elements. There is no use-case where a single element for easy will
|
||||||
@ -224,7 +224,7 @@ make sense (as britney always tries those).
|
|||||||
### hint `<action list>`
|
### hint `<action list>`
|
||||||
|
|
||||||
Perform all the migrations and removals denoted by `<action list>` as if
|
Perform all the migrations and removals denoted by `<action list>` as if
|
||||||
it was a single migration group. After that, process all remaining
|
it were a single migration group. After that, process all remaining
|
||||||
(unmigrated) items and accept any that can now be processed. If the
|
(unmigrated) items and accept any that can now be processed. If the
|
||||||
end result is equal or better compared to the original situation, the
|
end result is equal or better compared to the original situation, the
|
||||||
result is committed. Otherwise, all actions triggered by the hint are
|
result is committed. Otherwise, all actions triggered by the hint are
|
||||||
@ -239,7 +239,7 @@ rather expensive and should be used sparingly.
|
|||||||
|
|
||||||
This hint is primarily useful if britney fails to compute a valid
|
This hint is primarily useful if britney fails to compute a valid
|
||||||
solution for a concrete problem with a valid solution. Although, in
|
solution for a concrete problem with a valid solution. Although, in
|
||||||
many cases, Britney will generally figure out the solution on her own.
|
many cases, britney will generally figure out the solution on its own.
|
||||||
|
|
||||||
*Caveat*: Due to "uninstallability trading", this hint may cause
|
*Caveat*: Due to "uninstallability trading", this hint may cause
|
||||||
undesireable changes to the target suite. In practise, this is rather
|
undesireable changes to the target suite. In practise, this is rather
|
||||||
|
Loading…
x
Reference in New Issue
Block a user