fix(auto-update): detect script drift when VERSION matches to prevent stale pulse (GH#4727)#4749
Conversation
… stale pulse When a script fix is merged without a version bump, the deployed copy in ~/.aidevops/ stays stale until setup.sh is run manually. The auto-update stale check only compared VERSION files, missing intra-version script changes. Add a sentinel-based script drift check: compare SHA-256 of gh-failure-miner-helper.sh between repo and deployed. If they differ, re-deploy all agents via setup.sh --non-interactive. Root cause of GH#4727: PR #4704 fixed gh-failure-miner-helper.sh (merged 07:43) but the pulse ran at 08:40 using the old deployed version, which still treated Codacy ACTION_REQUIRED as a CI failure and produced a false systemic cluster, causing the pulse LLM to create a duplicate issue. Closes #4727
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe PR adds drift-detection logic to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sat Mar 14 09:15:50 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
auto-update-helper.shthat detects when deployed scripts differ from the repo even when VERSION matchesRoot Cause (GH#4727)
The Codacy
not_collectedfalse-positive issue recurred despite being fixed in PR #4704 because:gh-failure-miner-helper.sh(merged 07:43 today)setup.shwas not run after the merge — no auto-deploy on merge~/.aidevops/ACTION_REQUIREDas a CI failureThe existing stale check only compared
VERSIONfiles. Since the fix in PR #4704 was a script change without a version bump, the stale check did not trigger.Fix
Added an
elsebranch to the existing VERSION stale check that:gh-failure-miner-helper.shbetween repo and deployedsetup.sh --non-interactiveto re-deploysha256sum(Linux) withshasum -a 256(macOS) fallbackImmediate Mitigation
The fixed
gh-failure-miner-helper.shwas manually deployed to~/.aidevops/in this session. The pulse will now correctly report 0 failed events for Codacy.Verification
gh-failure-miner-helper.sh prefetch --pulse-repos --since-hours 24: reportsfailed events: 0, systemic clusters: 0sha256sumcomparison works on Linux;shasum -a 256fallback for macOSCloses #4727
Summary by CodeRabbit