feat(deploy): support optional integrations#252
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
More reviews will be available in 1 minute and 20 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d1d7a6655
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const mode: DeployMode = opts.mode ?? pickMode(opts); | ||
| warnings.push(...preflight.warnings); | ||
| for (const w of preflight.warnings) io.warn(w); | ||
| const activePreflight = selectActiveOptionalIntegrations(preflight, opts.inputs ?? {}); |
There was a problem hiding this comment.
Resolve picker-backed inputs before pruning integrations
When enabledByInput is itself a picker backed by the optional provider, such as a Slack channel input with picker.provider: "slack", this filters Slack out before connectAndCollectIntegrations and before the later collectPickerInputs phase. Since collectPickerInputs only prompts for providers present in connectedProviders, the provider is never connected and the picker is skipped, so interactive deploy cannot enable this optional integration unless the user already knows and passes --input manually.
Useful? React with 👍 / 👎.
| const envName = spec?.env ?? inputName; | ||
| const envValue = env[envName]; | ||
| if (typeof envValue === 'string') return envValue.trim().length > 0; |
There was a problem hiding this comment.
Forward env-resolved activation values to remote modes
When an optional integration is enabled only by a local environment variable, including a custom spec.env, this check activates the provider but the resolved launch inputs are still initialized from opts.inputs only, and sandbox/cloud deployments do not inherit the deployer's process.env as persona input values. That leaves remote deployments with provider triggers registered but without the input value that caused activation, so required input resolution can fail or handlers can run without the expected configuration.
Useful? React with 👍 / 👎.
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Review: PR #252 — feat(deploy): support optional integrationsSummaryThis PR adds opt-in integrations to the deploy flow. An integration can declare I made no file edits — there is no mechanical fix to apply, and the one logic/test concern is not safe for me to auto-edit. Verification (ran the way CI does)Reproduced the canonical CI pipeline (
Important note on a sandbox-only false failureWhen I first ran the deploy tests, Addressed comments
FindingsNo blocking issues. The new logic is fail-closed where it matters:
Advisory Notes
ConclusionOn the canonical CI environment this PR builds, typechecks, lints, and tests green; the working tree is clean. The single observed failure is a sandbox-environment artifact, not a CI failure. The remaining advisory (test env hermeticity) needs human judgment. I cannot confirm GitHub's mergeable/checks state from here (no |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. No files were edited — the PR is mechanically and semantically clean, and the full CI pipeline passes locally. Here is my review. Review: PR #252 —
|
Summary
Testing