fix: restore cross-platform quality gate
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 8m59s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped

This commit is contained in:
linmeng
2026-07-28 10:52:52 +08:00
parent 7a36169f5d
commit d94bc53e04
4 changed files with 40 additions and 13 deletions
+8 -1
View File
@@ -1567,7 +1567,14 @@ def test_capability_audit_scans_registry_and_local_sources() -> None:
assert audit['local_open_source']['source_count'] >= 3
assert any(source['name'] == 'dashaflow' for source in audit['local_open_source']['sources'])
assert all(gap.get('command') != 'varga-full' for gap in audit['priority_gaps'])
assert audit['surfaces']['app_routes'] == ['admin/codes', 'home', 'login']
assert audit['surfaces']['app_routes'] == [
'admin/codes',
'admin/packages',
'admin/payments',
'admin/users',
'home',
'login',
]
assert set(audit['surfaces']['app_visible_topics']) == {
'Birth Rectification',
'Case Validation',
+4 -2
View File
@@ -3,6 +3,7 @@
from __future__ import annotations
import json
from pathlib import Path
import sys, os, pytest
SCRIPTS = os.path.join(os.path.dirname(__file__), '..', 'scripts')
@@ -221,8 +222,9 @@ class TestDrikBala:
class TestShadbalaFull:
def test_shadbala_module_exposes_reference_constants_path(self):
assert SHADBALA_CONSTANTS_PATH.endswith('references/shat_bala_constants.json')
assert os.path.exists(SHADBALA_CONSTANTS_PATH)
constants_path = Path(SHADBALA_CONSTANTS_PATH).resolve()
assert constants_path.parts[-2:] == ('references', 'shat_bala_constants.json')
assert constants_path.exists()
def test_static_shadbala_constants_are_loaded_from_reference_json(self):
constants = _shadbala_constants()