Page MenuHomePhabricator

Dependencies from backports in wmf-debci
Closed, ResolvedPublic

Description

Following up from a conversation on IRC; the use case is building a package with wmf-debci that requires its build-deps from backports.

At the moment specifying a Build-Depends relationship with e.g. >= <backports version> won't work out of the box because backports come with a low APT pin by default

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Explicitly use echo -e to force backslash-interpretationrepos/sre/wmf-debci!3mvernonfix_apt_preferencesmain
If USEBACKPORTS set, tell apt to use the relevant -backports suiterepos/sre/wmf-debci!2mvernonT350658main
Customize query in GitLab

Event Timeline

Mmm.
AFAICT (I need to confirm properly with test case for a bug report against apt) there is no priority setting that achieves "use -backports packages where necessary to provide a versioned dependency, but not otherwise" - with priority <500 backports won't be used, and with >=500 backports packages will be used where their version is higher than the base release (which will be all of them).

The latter behaviour is what we had on build hosts with BACKPORTS=yes set (see puppet), so I think the right answer is to do something similar if a suitable CI variable is set.

(I thought USEBACKPORTS was better, but I'm not wedded to that)

mvernon merged https://gitlab.wikimedia.org/repos/sre/wmf-debci/-/merge_requests/2

If USEBACKPORTS set, tell apt to use the relevant -backports suite

Done, and the new CI variable is documented too :)