Skip to content

feat(helm): expose cache.cdc.chunk-wait-timeout - #1300

Merged
kalbasit merged 1 commit into
mainfrom
user/wnasreddine/chunk-wait-timeout-helm-chart
May 30, 2026
Merged

kalbasit merged 1 commit into
mainfrom
user/wnasreddine/chunk-wait-timeout-helm-chart

Conversation

@kalbasit

@kalbasit kalbasit commented May 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

The cache.cdc.chunk-wait-timeout flag (CACHE_CDC_CHUNK_WAIT_TIMEOUT, default 30s) added in #1299 bounds the per-chunk wait during progressive CDC streaming so operators can align it with their reverse-proxy/gateway timeout on high-latency storage. The flag was registered in the binary but not reachable from the Helm chart.

  • Add config.cdc.chunkWaitTimeout (default null) to values.yaml and render chunk-wait-timeout conditionally in the ConfigMap, mirroring the existing optional cdc.* knobs (quoted duration, omitted when unset so the binary's 30s default applies).
  • Add helm unit tests: key rendered when set, omitted when null.
  • Document the knob in the Helm chart reference and example, and document the underlying --cache-cdc-chunk-wait-timeout flag in the CLI and CDC references (the flag shipped in fix(cache): recover from ambiguous storage errors & bound chunk-wait #1299 without these doc updates).

No Go, database, or migration changes — this only surfaces an existing flag through the chart.

Test plan

  • task fmt clean (0 changed)
  • helm unittest charts/ncps — 141/141 pass (RED→GREEN on the two new assertions)
  • CI nix flake check (helm unit tests)

The cache.cdc.chunk-wait-timeout flag (CACHE_CDC_CHUNK_WAIT_TIMEOUT,
default 30s) added in #1299 bounds the per-chunk wait during progressive
CDC streaming so it can be aligned with a deployment's gateway timeout.
It was registered in the binary but not reachable from the Helm chart.

- Add config.cdc.chunkWaitTimeout (default null) to values.yaml and
  render chunk-wait-timeout conditionally in the configmap, mirroring the
  existing optional cdc.* knobs (quoted duration, omitted when unset).
- Add helm unit tests: rendered when set, omitted when null.
- Document the knob in the Helm chart reference and example, and document
  the underlying --cache-cdc-chunk-wait-timeout flag in the CLI and CDC
  references (the flag shipped without these doc updates).
- Sync the new helm-cdc-chunk-wait-timeout capability spec and archive the
  OpenSpec change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@kalbasit

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation helm labels May 30, 2026
@coderabbitai

coderabbitai Bot commented May 30, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR exposes the application's existing cache.cdc.chunk-wait-timeout flag as a Helm chart configuration option config.cdc.chunkWaitTimeout. The change adds a nullable setting to values.yaml, conditionally renders it in the ConfigMap template, includes unit test validation, updates installation and reference documentation, and adds OpenSpec design artifacts documenting the requirements and implementation plan.

Changes

Helm CDC Chunk-Wait-Timeout Configuration

Layer / File(s) Summary
Helm values, template rendering, and unit tests
charts/ncps/values.yaml, charts/ncps/templates/configmap.yaml, charts/ncps/tests/configmap_test.yaml
config.cdc.chunkWaitTimeout is added to values.yaml as a nullable setting that defaults to null to preserve the binary's 30s default. The ConfigMap template conditionally includes chunk-wait-timeout (quoted) only when the value is set. Two unit test cases validate the presence (with a 60s example) and omission behavior when unset.
Documentation updates across installation and reference guides
docs/docs/User Guide/Configuration/Reference.md, docs/docs/User Guide/Features/CDC.md, docs/docs/User Guide/Installation/Helm Chart.md, docs/docs/User Guide/Installation/Helm Chart/Chart Reference.md
Installation guides, feature documentation, and reference tables are updated to describe config.cdc.chunkWaitTimeout in the Helm chart context and the corresponding CLI flag --cache-cdc-chunk-wait-timeout / CACHE_CDC_CHUNK_WAIT_TIMEOUT environment variable, including the 30s default and progressive CDC streaming use case.
OpenSpec design, proposal, and specification documentation
openspec/changes/archive/2026-05-30-expose-chunk-wait-timeout-helm/.openspec.yaml, openspec/changes/archive/2026-05-30-expose-chunk-wait-timeout-helm/proposal.md, openspec/changes/archive/2026-05-30-expose-chunk-wait-timeout-helm/design.md, openspec/changes/archive/2026-05-30-expose-chunk-wait-timeout-helm/tasks.md, openspec/changes/archive/2026-05-30-expose-chunk-wait-timeout-helm/specs/helm-cdc-chunk-wait-timeout/spec.md, openspec/specs/helm-cdc-chunk-wait-timeout/spec.md
OpenSpec metadata, proposal, design, tasks, and capability specifications document the requirements and implementation plan for exposing the CDC chunk-wait-timeout configuration through Helm, including ConfigMap rendering rules, null default behavior, CDC-disabled edge cases, and documentation coverage requirements.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

helm, documentation, size:XS

Poem

A rabbit hops through Helm charts neat,
Where chunk-wait-timeouts now compete,
Null defaults keep the binary's say,
While docs and specs light up the way! 🐰⏱️

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: exposing the existing cache.cdc.chunk-wait-timeout flag through the Helm chart via a new config.cdc.chunkWaitTimeout knob.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description accurately and specifically describes the changeset: it exposes an existing cache.cdc.chunk-wait-timeout binary flag through the Helm chart by adding values.yaml configuration, conditional ConfigMap rendering, unit tests, and documentation updates.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request exposes the Content-Defined Chunking (CDC) chunk-wait timeout configuration (config.cdc.chunkWaitTimeout) in the Helm chart, mapping it to the chunk-wait-timeout parameter. It defaults to null to preserve the binary's default behavior unless explicitly set. Unit tests have been added to verify correct rendering, and the documentation has been updated across CLI, feature, and Helm reference guides. There are no review comments to address, and the implementation looks clean and complete; therefore, I have no feedback to provide.

@kalbasit
kalbasit enabled auto-merge (squash) May 30, 2026 18:58
@kalbasit
kalbasit disabled auto-merge May 30, 2026 19:34
@kalbasit
kalbasit merged commit 4bdc6ae into main May 30, 2026
40 checks passed
@kalbasit
kalbasit deleted the user/wnasreddine/chunk-wait-timeout-helm-chart branch May 30, 2026 19:35
@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot mentioned this pull request Jun 1, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation helm size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant