-
Notifications
You must be signed in to change notification settings - Fork 31
Pin runner dependencies to working versions #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Root cause: Recent package auto-upgrades broke SDK initialization. Fixes applied: 1. npm @anthropic-ai/claude-code: 2.0.46 → 2.0.41 (CRITICAL FIX!) - Version 2.0.46 (released Nov 19) breaks SDK subprocess initialization - Reverts to last working version from Nov 14 upstream build 2. anthropic[vertex]: >=0.68.0 → ==0.73.0 - Pin to tested version for stability - 0.74.0+ untested with Vertex AI 3. claude-agent-sdk: >=0.1.4 → ==0.1.6 - Pin to tested version for stability - 0.1.7+ untested Evidence: - Working upstream image (quay.io/ambient_code/vteam_claude_runner:latest) had npm CLI 2.0.41, anthropic 0.73.0, claude-agent-sdk 0.1.6 - Recent builds auto-installed 2.0.46 → broke initialization - Python packages were already correct (red herring during investigation) The npm pin is the critical fix. Python pins add build stability. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Claude Code ReviewSummaryThis PR addresses a critical production issue by pinning runner dependencies to known-working versions after recent package auto-upgrades broke SDK initialization. The changes are minimal, focused, and well-justified with clear evidence in the PR description. The fix is appropriate and should be merged promptly to restore functionality. Issues by SeverityCritical Issues1. Missing Regression Test Strategy
2. Dependency Pinning Strategy Not Documented
Major Issues3. No Automated Dependency Update Process
4. Version Selection Rationale Missing
5. uv.lock Diff Too Large for Manual Review
Minor Issues6. Inline Comments Use Different Style
7. No Rollback Plan Documented
8. BOT_TOKEN Handling Could Be More Secure
Positive HighlightsExcellent Root Cause Analysis: PR description provides clear evidence trail Minimal Blast Radius: Changes are scoped to exactly what is needed - 3 version pins across 3 files Follows CLAUDE.md Standards: Uses uv as preferred package manager, Dockerfile follows established patterns, commit message has co-author attribution Clear Commenting: Inline comments explain why versions are pinned, not just what is pinned No Security Vulnerabilities Introduced: All pinned versions are recent and actively maintained CI Validation in Progress: Build and E2E tests running RecommendationsImmediate (Before Merge)
Short-term (Next Sprint)
Long-term (Next Quarter)
Final VerdictAPPROVE with follow-up tasks This PR correctly addresses an urgent production issue with appropriate evidence and minimal risk. The identified issues are primarily about preventing future occurrences rather than problems with the current fix. Blocking concerns: None Estimated merge safety: High - restores known-good configuration with clear rollback path |
Root cause: Recent package auto-upgrades broke SDK initialization.
Fixes applied:
npm @anthropic-ai/claude-code: 2.0.46 → 2.0.41 (CRITICAL FIX!)
anthropic[vertex]: >=0.68.0 → ==0.73.0
claude-agent-sdk: >=0.1.4 → ==0.1.6
Evidence:
The npm pin is the critical fix. Python pins add build stability.