Merge ~xnox/autopkgtest-cloud:any-arch-specific-release-matching into autopkgtest-cloud:master

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: ad8e88ef66d90875707a1fb18bd432888c2c1b34
Proposed branch: ~xnox/autopkgtest-cloud:any-arch-specific-release-matching
Merge into: autopkgtest-cloud:master
Diff against target: 11 lines (+1/-0)
1 file modified
charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker/worker (+1/-0)
Reviewer Review Type Date Requested Status
Paride Legovini Approve
Ubuntu Release Team Pending
Review via email: mp+433133@code.launchpad.net

Commit message

Add support for pkgconfig on all arches, for a specific release

Often hints are in the form of package/{lots of arches}/$release,
meaning one is trying to configure a given package to run in a certain
way on any & all arches, for a given release. For example, never_run
hints are often for all architectures. Add support match requests
against all arches, yet for a specific release.

As discussed on https://code.launchpad.net/~xnox/autopkgtest-cloud/+git/autopkgtest-package-configs/+merge/432970

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

LGTM, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker/worker b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker/worker
2index 8a05766..5576e6d 100755
3--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker/worker
4+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker/worker
5@@ -252,6 +252,7 @@ def read_per_package_configs(cfg):
6
7 def request_matches_per_package(package, arch, release, s):
8 return (any(fnmatch.fnmatchcase(f"{package}/{arch}/{release}", entry) for entry in s) or
9+ any(fnmatch.fnmatchcase(f"{package}/all/{release}", entry) for entry in s) or
10 any(fnmatch.fnmatchcase(f"{package}/{arch}/all", entry) for entry in s) or
11 any(fnmatch.fnmatchcase(f"{package}/all/all", entry) for entry in s))
12

Subscribers

People subscribed via source and target branches