fix(ci): daily-check shell从sh改为bash,修复PIPESTATUS Bad substitution #1023
Reference in New Issue
Block a user
Delete Branch "fix/ci-daily-check-shell-bash"
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?
问题
daily-check.yml中4个step使用
shell: sh但代码中用了${PIPESTATUS[0]}(bash专属特性),导致Bad substitution错误,3个业务测试job全部失败。修复
将4个使用PIPESTATUS的step的shell从sh改为bash:
验证
daily-check的5个job中,Performance Baseline Check和Daily Check Report已成功,说明CI基础设施正常。
Issue: #980
📊 审查概览
❌ 需修改的问题(严重)
无
💡 改进建议(一般)
无
✅ 良好实践
shell: sh修改为shell: bash是一个良好的实践,特别是当脚本逻辑依赖 Bash 特有的语法(如数组、特定的字符串操作或[[ ]]测试)时。这能确保在不同 CI 环境下(特别是sh可能指向dash或其他最小 shell 的环境)脚本行为的一致性和稳定性。🤖 由 AI 代码审查机器人自动生成 | 2026-07-27 03:34:00 | 模型:
🗑️ 预览环境已清理
PR #1023 已关闭或合并,对应的预览环境已被清理。