ci: fail the checks gate when store engine tests fail (#2844)

* ci: fail the checks gate when store engine tests fail

* test(ci): expect store-tests in the checks gate

---------

Co-authored-by: Tapuuk <177422350+Tapuuk@users.noreply.github.com>
This commit is contained in:
TapuukandTapuuk authored and GitHub committed 2026-11-18 12:43:31 -05:00
1 parent 19fa6fd8e2
commit fd2f1eec8a
2 files changed
+8 -9

No files matched your search

+5 -5
View File
@@ -115,15 +115,15 @@ class CiChecksTest(unittest.TestCase):
jobs = yaml.safe_load((ROOT / '.github/workflows/build.yml').read_text())['jobs']
gate = jobs['checks']
self.assertEqual(gate['name'], 'Compile and test APK')
self.assertEqual(set(gate['needs']), {'build', 'python-tests'})
self.assertEqual(set(gate['needs']), {'build', 'python-tests', 'store-tests'})
self.assertIn('!cancelled()', gate['if'])
for build, python in itertools.product(('success', 'failure', 'cancelled', 'skipped'), repeat=2):
with self.subTest(build=build, python=python):
for build, python, store in itertools.product(('success', 'failure', 'cancelled', 'skipped'), repeat=3):
with self.subTest(build=build, python=python, store=store):
result = subprocess.run(
['bash', '-c', gate['steps'][0]['run']],
env=dict(os.environ, BUILD_RESULT=build, PYTHON_RESULT=python),
env=dict(os.environ, BUILD_RESULT=build, PYTHON_RESULT=python, STORE_RESULT=store),
capture_output=True)
self.assertEqual(result.returncode == 0, build == python == 'success')
self.assertEqual(result.returncode == 0, build == python == store == 'success')
for publisher in ('sign', 'packs'):
self.assertIn('checks', jobs[publisher]['needs'])