Skip to contentSkip to conversation

maintainers.inc: add missing entries for gst-validate, gst-examples and meson

PATCH New Alexander Kanavin 1 participant 2 messages Jan 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 maintainers.inc: add missing entries for gst-validate, gst-examples and meson

---
 meta/conf/distro/include/maintainers.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/conf/distro/include/maintainers.inc +3 -1
index 4fb7cd32813..bc9c7b0d8d1 100644
@@ -237,7 +237,8 @@ RECIPE_MAINTAINER_pn-groff = "Hongxu Jia <[email protected]>"
 RECIPE_MAINTAINER_pn-grub = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER_pn-grub-efi = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER_pn-gsettings-desktop-schemas = "Jussi Kukkonen <[email protected]>"
-RECIPE_MAINTAINER_pn-gst-player = "Jussi Kukkonen <[email protected]>"
+RECIPE_MAINTAINER_pn-gst-examples = "Maxin B. John <[email protected]>"
+RECIPE_MAINTAINER_pn-gst-validate = "Maxin B. John <[email protected]>"
 RECIPE_MAINTAINER_pn-gstreamer1.0 = "Maxin B. John <[email protected]>"
 RECIPE_MAINTAINER_pn-gstreamer1.0-libav = "Maxin B. John <[email protected]>"
 RECIPE_MAINTAINER_pn-gstreamer1.0-omx = "Maxin B. John <[email protected]>"
@@ -498,6 +499,7 @@ RECIPE_MAINTAINER_pn-menu-cache = "Jussi Kukkonen <[email protected]>"
 RECIPE_MAINTAINER_pn-mesa = "Otavio Salvador <[email protected]>"
 RECIPE_MAINTAINER_pn-mesa-demos = "Otavio Salvador <[email protected]>"
 RECIPE_MAINTAINER_pn-mesa-gl = "Otavio Salvador <[email protected]>"
+RECIPE_MAINTAINER_pn-meson = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER_pn-meta-environment = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER_pn-meta-environment-extsdk = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER_pn-meta-extsdk-toolchain = "Richard Purdie <[email protected]>"
Signature · 1 line
2.15.1
#1 lore raw

PATCH 2/2 oe-selftest: add a test for recipes without maintainers

'bitbake -c checkpkg world' is moved to class initializer to avoid it being run twice in a row.

---
 meta/lib/oeqa/selftest/cases/distrodata.py | 32 +++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)
meta/lib/oeqa/selftest/cases/distrodata.py +27 -5
index 12540adc7d8..cf8b4a21763 100644
@@ -9,6 +9,12 @@ class Distrodata(OESelftestTestCase):
     @classmethod
     def setUpClass(cls):
         super(Distrodata, cls).setUpClass()
+        feature = 'INHERIT += "distrodata"\n'
+        feature += 'LICENSE_FLAGS_WHITELIST += " commercial"\n'
+
+        cls.write_config(cls, feature)
+        bitbake('-c checkpkg world')
+
 
     @OETestID(1902)
     def test_checkpkg(self):
@@ -18,11 +24,6 @@ class Distrodata(OESelftestTestCase):
         Product:     oe-core
         Author:      Alexander Kanavin <[email protected]>
         """
-        feature = 'INHERIT += "distrodata"\n'
-        feature += 'LICENSE_FLAGS_WHITELIST += " commercial"\n'
-
-        self.write_config(feature)
-        bitbake('-c checkpkg world')
         checkpkg_result = open(os.path.join(get_bb_var("LOG_DIR"), "checkpkg.csv")).readlines()[1:]
         regressed_failures = [pkg_data[0] for pkg_data in [pkg_line.split('\t') for pkg_line in checkpkg_result] if pkg_data[11] == 'UNKNOWN_BROKEN']
         regressed_successes = [pkg_data[0] for pkg_data in [pkg_line.split('\t') for pkg_line in checkpkg_result] if pkg_data[11] == 'KNOWN_BROKEN']
@@ -40,3 +41,24 @@ The following packages have been checked successfully for upstream versions,
 but their recipes claim otherwise by setting UPSTREAM_VERSION_UNKNOWN. Please remove that line from the recipes.
 """ + "\n".join(regressed_successes)
         self.assertTrue(len(regressed_failures) == 0 and len(regressed_successes) == 0, msg)
+
+    def test_maintainers(self):
+        """
+        Summary:     Test that recipes have a maintainer
+        Expected:    All recipes (except a few special static/testing ones) should have a maintainer listed in maintainers.inc file.
+        Product:     oe-core
+        Author:      Alexander Kanavin <[email protected]>
+        """
+        def is_exception(pkg):
+            exceptions = ["packagegroup-", "initramfs-", "systemd-machine-units", "container-image-testpkg", "postinst", "devtool-test-", "selftest-ed"]
+            for i in exceptions:
+                 if i in pkg:
+                     return True
+            return False
+
+        checkpkg_result = open(os.path.join(get_bb_var("LOG_DIR"), "checkpkg.csv")).readlines()[1:]
+        no_maintainer_list = [pkg_data[0] for pkg_data in [pkg_line.split('\t') for pkg_line in checkpkg_result] if pkg_data[14] == '' and not is_exception(pkg_data[0])]
+        msg = """
+The following packages do not have a maintainer assigned to them. Please add an entry to meta/conf/distro/include/maintainers.inc file.
+""" + "\n".join(no_maintainer_list)
+        self.assertTrue(len(no_maintainer_list) == 0, msg)
Signature · 1 line
2.15.1