修复 AGC 测试编译并保留 CI 编译诊断 #577
Reference in New Issue
Block a user
Delete Branch "fix/ci-compile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AGC Rust CI 在编译测试二进制时因 E0061 失败:
parse_direct_stream_result已删除回合参数,但另一分支新增的preserves_direct_stream_terminal_error_detail仍传入"turn-1"。本次删除过期参数,使测试与现行函数签名一致。分片运行器同时改用
--message-format=json-render-diagnostics,继续通过 stdout JSON 定位测试产物,并将编译诊断直接输出到 stderr,避免 CI 只显示「due to 1 previous error」。补充真实编译失败的诊断回归测试,并同步开发运维与排障文档。验证:
cargo test --locked --offline --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml --bin genarrative-ai-game-creator-shell agent::claude_code_cli::tests:: -- --test-threads=1,测试二进制编译成功,5 项通过。node --test apps/ai-game-creator-shell/scripts/run-rust-shell-test-shards.test.mjs,3 项通过,覆盖编译失败诊断、测试 panic 和成功摘要。git diff --check通过;提交钩子的 ESLint、Rustfmt 与 Prettier 通过。