[codex] Run all tests on pull requests#44
Conversation
|
总体结论:这个 PR 的方向正确,能让 PR CI 覆盖现有 Rust 测试;未发现会改变运行时行为的阻塞问题,但有一个格式细节建议在合并前修掉。 关键发现:
优先级建议:
后续建议:
|
|
CodeXWeb 本轮自动巡检已认领,正在处理本 PR 的 review 修改意见。 本轮只会处理这一项:#44。处理范围限定为 review comment 4670502302 提到的 |
|
CodeXWeb follow-up for this scheduled patrol round:
Validation completed:
Rust/Tauri validation note: I installed the Linux dependencies and stable Rust 1.96.0 in the remote sandbox. Full local No auto-merge performed. |
ZeroPointSix
left a comment
There was a problem hiding this comment.
总体结论:本轮巡检已覆盖 PR #44 最新提交 3da6b10 的 CI 与 package.json 改动;当前未发现阻塞问题,新增测试入口与 CI 执行路径整体一致。
关键发现:
- 完整性:
prompt-launcher/package.json新增test作为聚合入口,并串行执行test:unit与test:rust;.github/workflows/ci.yml的check-and-testjob 已从npm run test:unit改为npm run test,能把现有 Rust 测试纳入 PR CI,符合 PR 描述目标。 - 环境匹配:CI 在运行
npm run test前安装 Rust stable、Rust cache 和 Ubuntu/Tauri 依赖,避免cargo test --manifest-path src-tauri/Cargo.toml因缺少 Rust 或常见系统包直接失败。工作目录仍限定在./prompt-launcher,与 package scripts 和 manifest 相匹配。 - 旧评论已处理:此前普通评论中指出的
prompt-launcher/package.json文件末尾换行问题,在最新文件内容中已经恢复,不再构成待处理项。 - 验证状态:查询到最新提交
3da6b1061883ab2222d3baf338964e82ea84ee58对应的 PR workflow runCI #58已完成且结论为 success。
优先级建议:
- 阻塞:无。
- 高:无。
- 中:无。
- 低:如果后续 CI 耗时明显上升,可以再考虑把 Rust 测试拆成独立 job 或进一步缓存,但不建议在本 PR 中削弱测试覆盖。
后续建议:
- 合并前保留 GitHub Actions 作为权威验证来源;如果这个
npm run test语义会被贡献者本地使用,建议后续在贡献说明或 README 中记录它现在代表 Node + Rust 的完整测试集合。
Summary
Make the PR CI path run all test suites that currently exist in the repository, not only the frontend Node tests.
Changes
npm run testas the canonical full test command.npm run test:rustto execute Rust tests throughcargo test --manifest-path src-tauri/Cargo.toml.check-and-testjob to install Rust and required Tauri Linux dependencies before running tests.npm run test:unittonpm run test, so PRs run both Node unit tests and Rust tests.Why
The repository already has Rust
#[test]coverage in backend modules, but the PR CI path only rannode --test. This PR aligns CI with the intended policy: every PR should run the full available test suite before build jobs continue.Validation
pull_requesttomain/master.npm run check,npm run test(Node + Rust), frontend build, then Tauri build matrix.