Repository navigation
feat(chart): HA via CDC or in-flight staging - #1358
Conversation
|
This change is part of the following stack:
Change managed by git-spice. |
|
Warning Review limit reached
More reviews will be available in 14 minutes and 21 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe PR replaces the HA CDC-only requirement with an OR condition: HA deployments must enable either CDC or the new in-flight NAR staging option. It removes the ChangesHA Validation and In-Flight Staging
🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces in-flight NAR staging as an alternative to Content-Defined Chunking (CDC) for High Availability (HA) deployments. It updates the Helm chart templates, values, and validation tests to enforce that HA mode (replicaCount > 1) requires either CDC or in-flight staging to be enabled, while removing the deprecated iLoveTimeouts bypass flag. The review feedback suggests adding defensive guards in the Helm templates to prevent rendering errors if config.inflightStaging is nil, and recommends using the more idiomatic int filter instead of float formatting for the partSize configuration.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
b7e105b to
d640de5
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
433889c to
a3466dc
Compare
d640de5 to
bab5ed2
Compare
a3466dc to
f9b4797
Compare
bab5ed2 to
c546455
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
f9b4797 to
c2f98b1
Compare
c546455 to
66282cc
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
c2f98b1 to
b5822ac
Compare
66282cc to
2c630bd
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
b5822ac to
83be552
Compare
2c630bd to
74d511a
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
83be552 to
e1a4ada
Compare
74d511a to
dbf22de
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
e1a4ada to
f46fc73
Compare
dbf22de to
3c211b3
Compare
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
f46fc73 to
9df284c
Compare
Helm chart HA validation for in-flight staging (group 10, BREAKING). The
replicaCount > 1 guard in _helpers.tpl now passes when EITHER config.cdc.enabled
OR config.inflightStaging.enabled is set, with no bypass. Because staging is
zero-overhead-until-contention, every HA operator can satisfy the guard safely,
so the accept-the-risk escape hatch protected no remaining use case.
BREAKING: config.cdc.iLoveTimeouts is removed. Migration: set
config.inflightStaging.enabled=true (or config.cdc.enabled=true). A validation
test asserts that supplying the now-unrecognized iLoveTimeouts no longer
bypasses the guard.
- values.yaml: add config.inflightStaging.{enabled,retention,partSize}; remove
config.cdc.iLoveTimeouts; update HA warnings.
- configmap.yaml: render config.inflightStaging.* into the ncps config
(cache.inflight-staging.*), formatting part-size as an integer.
- tests/validation_test.yaml: neither-fails, staging-passes, cdc-passes, and
iLoveTimeouts-no-longer-bypasses cases (helm unittest green, 157 tests).
- nix/k8s-tests/config.nix: the two HA permutations that ran with
cdc.iLoveTimeouts now exercise real in-flight staging instead.
Address review feedback on PR #1358: - HA validation guard and the configmap now defensively guard against a nil config.inflightStaging (and (and .X .X.enabled)), so a values file that omits the inflightStaging block — e.g. after upgrading from an older chart — does not error with a nil-pointer evaluation (PRRT_kwDONV6tZs6Hr3Jg, PRRT_kwDONV6tZs6Hr3Ji). - Render part-size with the int filter instead of printf "%.0f" (... | float64), which is cleaner and avoids any float/scientific-notation formatting mismatch (PRRT_kwDONV6tZs6Hr3Jj). Co-Authored-By: Claude Opus 4.8 <[email protected]>
9df284c to
638a4a3
Compare
Helm chart HA validation for in-flight staging (group 10, BREAKING). The
replicaCount > 1 guard in _helpers.tpl now passes when EITHER config.cdc.enabled
OR config.inflightStaging.enabled is set, with no bypass. Because staging is
zero-overhead-until-contention, every HA operator can satisfy the guard safely,
so the accept-the-risk escape hatch protected no remaining use case.
BREAKING: config.cdc.iLoveTimeouts is removed. Migration: set
config.inflightStaging.enabled=true (or config.cdc.enabled=true). A validation
test asserts that supplying the now-unrecognized iLoveTimeouts no longer
bypasses the guard.
config.cdc.iLoveTimeouts; update HA warnings.
(cache.inflight-staging.*), formatting part-size as an integer.
iLoveTimeouts-no-longer-bypasses cases (helm unittest green, 157 tests).
cdc.iLoveTimeouts now exercise real in-flight staging instead.