Repository navigation
Drop redundant per-service targetRevision on ec deploy - #269
Conversation
When the requested revision equals the line a service already follows, remove the service's own targetRevision instead of writing a pin. The line is versions[<group>] when the service has a group (any name), else source.targetRevision - the same resolution as the argocd-apps chart. A group with no versions entry is an error. Repos without versions or group keep their behaviour. YamlFile.remove_key now raises YamlFileError consistently. Closes #268 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UrUi8y7pYzejT8HqdzMVaj
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughDeployment now compares a requested service revision with its shared group or global revision. It removes a redundant service-level pin or writes a differing pin, then clears the service’s Argo CD ChangesDeployment revision handling
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change reconciles service pins with shared revisions while preserving enablement and override cleanup. No actionable merge-blocking issue remains; merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Successful deployments preserve unrelated service metadata and clear service-level revision overrides. However, removing a pin based only on committed values can make an explicit deployment or rollback follow a different live shared revision. Chart compatibility and production permissions remain unconfirmed; no new privilege escalation was established. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 19.23% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 6 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Closes #268
ec deploy <service> <revision>no longer writes a per-servicetargetRevisionwhen that revision equals the line the service already follows. It removes the service's own pin instead, so the service keeps following its line when the line moves.The line is resolved exactly as the argocd-apps chart does (epics-containers/ec-helm-charts#136):
versions[<group>]if the service has agroup. Any group name works, including ad-hoc lines as well asdaq/techui.source.targetRevision.A service whose
grouphas noversionsentry is reported as an error; the chart would fail to render it anyway. Deployment repos withoutversions/groupkeep their behaviour.Changes
git.py: newresolve_target_revision().set_values()takesdeploy_target_revision=(service, revision)and resolves it against the same clone it commits from, then writes or removes the key.cmds/argo_commands.py:deploy()goes through that path.push_values()still always clears any stale livetargetRevisionparameter override.utils.py:YamlFile.remove_keyraisesYamlFileErrorconsistently, rather than a bareKeyError. A service entry left empty serialises as{}.ec ps/ec monitor: unchanged, since they read the effective revision live from Argo CD.Testing
versionskey, and a repo without the new keys. The full suite passes (103), andruffis clean.set_valueswith real clone, commit and push removed redundant pins for both a grouped and an ungrouped service.Part of the rollout plan in epics-containers/epics-containers.github.io#269. ec is intended to be released before the deployment-template-argocd change.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UrUi8y7pYzejT8HqdzMVaj
Summary by CodeRabbit
New Features
Bug Fixes