修复AI游戏创作壳跨平台启动
Project CI / Frontend tests (pull_request) Successful in 2m28s
Project CI / Repository checks (pull_request) Successful in 3m17s
Project CI / Backend tests (pull_request) Successful in 10m26s
Project CI / Native shell tests (pull_request) Failing after 6m19s

修复 macOS 下 Unix 文件身份比较和临时目录测试兼容
隔离 AI 游戏创作本地数据库与发布身份并阻止旧 schema 降级启动
完善 Tauri 开发栈错误传播和 POSIX 子进程树清理
跳过 macOS 不支持的进程指标回调以消除周期告警
补充开发调度测试、技术方案和团队排障记忆
This commit is contained in:
2026-07-22 15:21:33 +08:00
parent 017e956724
commit 034a7f6651
10 changed files with 150 additions and 22 deletions
@@ -8,6 +8,12 @@ use tracing::warn;
// 进程指标只描述 api-server 自身,不携带请求、用户或作品维度,避免 OTLP 指标高基数膨胀。
pub(crate) fn register_process_metrics() {
// 当前采集实现依赖 Windows API 或 Linux /proc。macOS 等平台不注册
// observable callbacks,避免每次 OTLP reader 采集时为每个指标重复告警。
if !cfg!(any(windows, target_os = "linux")) {
return;
}
static REGISTERED: OnceLock<()> = OnceLock::new();
REGISTERED.get_or_init(register_process_metrics_once);
}