修复 AGC 测试编译并保留 CI 编译诊断 #577

Merged
lhk229 merged 1 commits from fix/ci-compile into master 2026-10-01 19:44:17 +08:00
Member

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」。补充真实编译失败的诊断回归测试,并同步开发运维与排障文档。

验证:

  • Linux / Rust 1.98.1: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 和成功摘要。
  • 修改脚本的 Prettier、仓库编码检查、git diff --check 通过;提交钩子的 ESLint、Rustfmt 与 Prettier 通过。
  • 未在本地运行全量 Rust 测试或完整 CI;已有编译 warning 保持不变。
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」。补充真实编译失败的诊断回归测试,并同步开发运维与排障文档。 验证: - Linux / Rust 1.98.1:`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 和成功摘要。 - 修改脚本的 Prettier、仓库编码检查、`git diff --check` 通过;提交钩子的 ESLint、Rustfmt 与 Prettier 通过。 - 未在本地运行全量 Rust 测试或完整 CI;已有编译 warning 保持不变。
lhk229 added 1 commit 2026-10-01 19:43:37 +08:00
修复 AGC 测试编译并保留 CI 编译诊断
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 1/2 (push) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (push) Has been cancelled
Project CI / AI game creator shell Rust smoke (push) Has been cancelled
Project CI / AI game creator shell Rust crates (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / AI game creator shell web tests (push) Has been cancelled
3193182665
删除 Claude 流式结果测试中已失效的回合参数
分片运行器使用 Cargo 渲染诊断并保留 JSON 产物发现
新增编译失败诊断回归测试并更新排障文档
lhk229 merged commit 3193182665 into master 2026-10-01 19:44:17 +08:00
lhk229 deleted branch fix/ci-compile 2026-10-01 19:44:17 +08:00
Sign in to join this conversation.