diff --git a/src/quant_platform_kit/common/operational_notification_localization.py b/src/quant_platform_kit/common/operational_notification_localization.py index b0462cc..1f479a6 100644 --- a/src/quant_platform_kit/common/operational_notification_localization.py +++ b/src/quant_platform_kit/common/operational_notification_localization.py @@ -47,6 +47,7 @@ "activity_rebalance_recorded": "已记录调仓操作", "workflow_heartbeat_latest_failed": "最近一次运行未成功完成(结论:{conclusion})", "workflow_heartbeat_no_success": "GitHub Actions 查询未返回成功的运行记录", + "workflow_heartbeat_query_failed": "GitHub Actions 运行记录查询失败", "workflow_heartbeat_missing_dispatches": "已连续 {count} 个预期周期未发现运行(阈值:{threshold})", }, "en": { @@ -82,6 +83,7 @@ "activity_rebalance_recorded": "rebalance action recorded", "workflow_heartbeat_latest_failed": "The latest runtime run did not complete successfully (conclusion: {conclusion})", "workflow_heartbeat_no_success": "The GitHub Actions query returned no successful runtime run", + "workflow_heartbeat_query_failed": "The GitHub Actions runtime-run query failed", "workflow_heartbeat_missing_dispatches": "No runtime dispatch was found for {count} expected interval(s) (threshold: {threshold})", }, } diff --git a/tests/test_notification_localization.py b/tests/test_notification_localization.py index 0e7735c..8b56842 100644 --- a/tests/test_notification_localization.py +++ b/tests/test_notification_localization.py @@ -148,6 +148,10 @@ def test_operational_locale_and_normal_heartbeat_are_bilingual(self): operational_notification_text("zh", "heartbeat_no_enabled_target"), "没有与当前心跳匹配的可执行运行目标;未提交订单。", ) + self.assertEqual( + operational_notification_text("zh", "workflow_heartbeat_query_failed"), + "GitHub Actions 运行记录查询失败", + ) self.assertEqual( format_operational_heartbeat_status( locale="zh",