fix(ci): force reinstall node_modules when pnpm cache is corrupted#53283
fix(ci): force reinstall node_modules when pnpm cache is corrupted#53283w-sss wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR replaces the original no-op fallback for the Windows CI Key changes:
Confidence Score: 5/5
Reviews (2): Last reviewed commit: "fix(ci): force reinstall node_modules wh..." | Re-trigger Greptile |
- Add fallback to remove node_modules and reinstall if pnpm install fails - Resolves missing dependency issues (@anthropic-ai/vertex-sdk, etc.) - Fixes CI failures in check, channels, and extensions tests
733dd34 to
c015996
Compare
|
@greptile-apps Thanks for the suggestion! I've updated the fallback to include Removed all cached metadata files Updated command: pnpm install --prefer-offline ... || (pnpm store prune; rm -rf node_modules && pnpm install ...)The fix now handles:
|
📊 CI 状态说明当前 CI 显示:
原因分析:
验证:
建议:
|
🔄 CI 重跑请求@openclaw/maintainers CI 失败 似乎是偶发问题:
请求: 能否帮忙手动重跑失败的 CI job? 或者如果这是仓库已知的偶发问题,可以直接合并吗? 谢谢!🙏 |
|
Please don’t spam-ping multiple maintainers at once. Be patient, or join our community Discord for help: https://discord.gg/clawd |
|
ok,thanks |
🐛 问题
CI 测试失败是因为 pnpm 缓存过期导致依赖缺失:
🔧 修复
添加 fallback 机制:当 pnpm install 失败时,删除 node_modules 并重新安装。
✅ 影响
📝 测试
本地验证: