feat(bat): 完善工作流调度与 dashboard RPC
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

补全资源拉取、解析、翻译、重打包和本地化发布命令,支持单次、限定次数与周期调度。移除 TUI 计划并通过 schedule.* RPC 暴露给 bat-api dashboard。

Closes #43
This commit is contained in:
2026-08-03 22:18:52 +08:00
parent 3b103be8a9
commit 0784d5b532
27 changed files with 2931 additions and 58 deletions
@@ -379,7 +379,10 @@ fn official_update_reuses_failed_staging_after_interrupted_download() {
}),
);
let config = harness.sync_config("failed-staging-output");
// 该 fixture 使用一个共享失败计数文件模拟单个资源的中断;
// 设为单 worker,避免其它并行资源消耗这个测试专用的失败次数。
let mut config = harness.sync_config("failed-staging-output");
config.download_concurrency = 1;
let first_error = OfficialUpdateService::new().run(&config).unwrap_err();
assert!(first_error.to_string().contains("quarantine"));
assert!(first_error.to_string().contains("simulated failure"));