Always use etag for gcp cdCommands, remove useless code#1772
Conversation
📝 WalkthroughWalkthroughThis PR refactors the GCP BYOC CD flow to track deployments using etag-based identifiers instead of CD execution names. The Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
💤 Files with no reviewable changes (9)
🧰 Additional context used🧠 Learnings (8)📓 Common learnings📚 Learning: 2026-01-07T03:07:56.002ZApplied to files:
📚 Learning: 2026-01-09T20:31:15.468ZApplied to files:
📚 Learning: 2026-01-07T00:34:13.131ZApplied to files:
📚 Learning: 2025-12-31T13:47:12.225ZApplied to files:
📚 Learning: 2026-01-09T20:12:21.986ZApplied to files:
📚 Learning: 2026-01-09T20:19:04.424ZApplied to files:
📚 Learning: 2026-01-07T17:31:23.220ZApplied to files:
🧬 Code graph analysis (1)src/pkg/cli/client/byoc/gcp/byoc.go (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (8)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)level=warning msg="[linters_context] running gomodguard failed: unable to read module file go.mod: current working directory must have a go.mod file: if you are not using go modules it is suggested to disable this linter" 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 |
Description
GetCDExecutionContextas it is not actually useful, when to stop querying cd logs is controlled byWaitForCdTaskExitby callingprovider.GetDeploymentStatus()Checklist
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.