From 5ccf0edadd2059820ea5562cae48ab7e8f4d3730 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:22:08 +0100 Subject: [PATCH] chore: point the shipped-build guard at knulli EmuELEC v4.8 ships no RigelEngine: rigelengine is a dependency of emuelec-ports, which no package, options file or Makefile of an image pulls in. The guard now reads advanced_drastic, which KNULLI alone ships, and still refuses a bump until the profile says why its pin moves. --- tests/test_profile_sync.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/test_profile_sync.py b/tests/test_profile_sync.py index 10e150c21..a8f937122 100644 --- a/tests/test_profile_sync.py +++ b/tests/test_profile_sync.py @@ -3304,30 +3304,32 @@ class TestBumpCommit(unittest.TestCase): self.assertNotIn("uphead", text) def test_a_profile_one_platform_ships_waits_for_its_build(self): - """EmuELEC alone ships RigelEngine and builds its package.mk - PKG_VERSION. A bulk advance moved fheroes2 and supertux past that - build, and rigelengine is a commit ahead of it already.""" + """KNULLI alone ships advanced_drastic and builds its + advanced_drastic.mk version. A bulk advance moved fheroes2 and + supertux past the build EmuELEC then pinned, and a pin ahead of the + one build a platform ships describes nothing anyone runs.""" root = Path(__file__).resolve().parents[1] - path = Path(self.tmp.name) / "rigelengine.yml" + path = Path(self.tmp.name) / "advanced_drastic.yml" path.write_text( - SAMPLE.replace("\nnotes:", "\ntype: standalone\ncores: [rigelengine, RigelEngine]\n\nnotes:", 1), + SAMPLE.replace( + "\nnotes:", "\ntype: standalone\ncores: [advanced_drastic]\n\nnotes:", 1), encoding="utf-8", ) report = ProfileReport( - name="rigelengine", repo="o/n", pin="pin", head="newhead", entries=[], + name="advanced_drastic", repo="o/n", pin="pin", head="newhead", entries=[], counts={}, skipped=profile_sync.NO_SOURCE_REF, ) platforms = str(root / "platforms") self.assertEqual( - profile_sync.shipping_platforms("rigelengine", self.tmp.name, platforms), - ["emuelec"], + profile_sync.shipping_platforms("advanced_drastic", self.tmp.name, platforms), + ["knulli"], ) with contextlib.redirect_stderr(io.StringIO()) as err: self.assertFalse(bump_commit(path, report, platforms_dir=platforms)) - self.assertIn("only emuelec ships it", err.getvalue()) + self.assertIn("only knulli ships it", err.getvalue()) path.write_text( path.read_text(encoding="utf-8") - + 'pin_follows: "EmuELEC builds the branch tip"\n', + + 'pin_follows: "KNULLI builds the branch tip"\n', encoding="utf-8", ) self.assertTrue(bump_commit(path, report, platforms_dir=platforms))