Skip to content

Conversation

@kalbasit
Copy link
Owner

@kalbasit kalbasit commented Jan 31, 2026

This commit exposes content-defined chunking (CDC) and S3 storage settings to users:

  • Added CLI flags for enabling CDC and configuring chunk size boundaries (min/avg/max).
  • Added CLI flags for S3 storage configuration (bucket, endpoint, region, etc.).
  • Updated the Helm chart with new values and ConfigMap templates for CDC and S3.
  • Provided a complete CDC configuration example in config.example.yaml.

Part of #322

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 31, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kalbasit, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the application's configurability by integrating Content-Defined Chunking (CDC) and S3 storage options. Users can now enable and fine-tune CDC for deduplication and specify S3 as a storage backend for chunks, all manageable through new CLI flags and updated Helm chart values. This change aims to provide greater flexibility in deployment and storage management, particularly for experimental deduplication features.

Highlights

  • Content-Defined Chunking (CDC) Configuration: Introduced CLI flags (--cache-cdc-enabled, --cache-cdc-min, --cache-cdc-avg, --cache-cdc-max) and Helm chart values for enabling and configuring CDC, allowing for experimental deduplication of NAR files.
  • S3 Storage Configuration for Chunks: Added CLI flags for S3 bucket, region, endpoint, access keys, and path style, enabling S3 as a backend for storing content-defined chunks.
  • Helm Chart Integration: Updated charts/ncps/values.yaml and charts/ncps/templates/configmap.yaml to expose CDC and S3 storage settings through Helm, facilitating Kubernetes deployments.
  • Configuration Example: Provided a complete CDC configuration example in config.example.yaml to guide users on how to utilize the new deduplication feature.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@dosubot dosubot bot added enhancement New feature or request go Pull requests that update go code helm labels Jan 31, 2026
Copy link
Contributor

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

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 introduces configuration for Content-Defined Chunking (CDC) and S3 storage through both CLI flags and Helm chart values. The changes are well-structured, exposing the new functionality consistently across different configuration methods. My review notes the added validation in pkg/ncps/serve.go for S3 configuration, which is a positive improvement. The observed code duplication is acceptable based on project guidelines. Overall, this is a good addition.

@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch from 2e22ada to d31e2e7 Compare January 31, 2026 02:53
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch 2 times, most recently from 24941e7 to aad1081 Compare January 31, 2026 03:02
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch 2 times, most recently from ffe4427 to 1306a80 Compare January 31, 2026 06:03
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch 2 times, most recently from e20990e to be66a95 Compare January 31, 2026 06:33
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch 2 times, most recently from d9b7e61 to 2a652d4 Compare January 31, 2026 06:46
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch 2 times, most recently from 508ea4b to 4ac6f9b Compare January 31, 2026 20:23
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch 2 times, most recently from 1628095 to 9254a8c Compare January 31, 2026 22:10
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch 2 times, most recently from 64f7254 to a4e6430 Compare January 31, 2026 23:33
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch from 9254a8c to 8870a06 Compare January 31, 2026 23:33
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch from a4e6430 to e3253d1 Compare January 31, 2026 23:39
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch 2 times, most recently from 0cdaa05 to 1359098 Compare January 31, 2026 23:52
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch from f56283d to a1cfc79 Compare February 1, 2026 04:47
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch 3 times, most recently from 33c24d3 to ae9f0bf Compare February 1, 2026 05:33
@kalbasit kalbasit force-pushed the 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc branch from b1ea8a4 to bd319b4 Compare February 1, 2026 05:33
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch from ae9f0bf to 4f09e4e Compare February 1, 2026 06:34
Base automatically changed from 01-30-feat_integrate_cdc_with_cache_and_implement_chunk_gc to main February 1, 2026 06:45
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 1, 2026
This commit exposes content-defined chunking (CDC) and S3 storage settings to users:
- Added CLI flags for enabling CDC and configuring chunk size boundaries (min/avg/max).
- Added CLI flags for S3 storage configuration (bucket, endpoint, region, etc.).
- Updated the Helm chart with new values and ConfigMap templates for CDC and S3.
- Provided a complete CDC configuration example in config.example.yaml.
@kalbasit kalbasit force-pushed the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch from 4f09e4e to f283f3d Compare February 1, 2026 06:51
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Feb 1, 2026
@kalbasit
Copy link
Owner Author

kalbasit commented Feb 1, 2026

/gemini review

Copy link
Contributor

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

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 introduces configuration for Content-Defined Chunking (CDC) and S3 storage via CLI flags and Helm chart values. The changes are well-structured, adding the necessary flags, updating the Helm chart templates and values, and providing an example in config.example.yaml.

My main feedback is regarding code duplication in pkg/ncps/serve.go. The new getChunkStorageBackend function repeats logic from existing storage configuration functions, which has resulted in missing validation for conflicting storage settings and incomplete S3 configuration. I've left a comment with a suggestion to fix this.

@kalbasit
Copy link
Owner Author

kalbasit commented Feb 1, 2026

/gemini review

Copy link
Contributor

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

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 introduces configuration for Content-Defined Chunking (CDC) and S3 storage through both CLI flags and Helm chart values. The changes are well-structured, particularly the refactoring in pkg/ncps/serve.go which centralizes storage configuration logic into a new getStorageConfig function. This improves code clarity and maintainability.

My review includes a couple of suggestions for improvement:

  • Removing redundant validation for S3 configuration.
  • Adding validation for CDC chunk size parameters to prevent potential issues with negative inputs.

kalbasit and others added 2 commits January 31, 2026 23:09
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@kalbasit kalbasit enabled auto-merge (squash) February 1, 2026 07:14
@kalbasit kalbasit disabled auto-merge February 1, 2026 07:15
@kalbasit kalbasit enabled auto-merge (squash) February 1, 2026 07:15
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.16%. Comparing base (7137646) to head (bac7d75).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #670   +/-   ##
=======================================
  Coverage   79.16%   79.16%           
=======================================
  Files           2        2           
  Lines         456      456           
=======================================
  Hits          361      361           
  Misses         83       83           
  Partials       12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kalbasit kalbasit disabled auto-merge February 1, 2026 07:24
@kalbasit kalbasit enabled auto-merge (squash) February 1, 2026 07:25
@kalbasit kalbasit merged commit a24af8e into main Feb 1, 2026
14 checks passed
@kalbasit kalbasit deleted the 01-30-feat_add_cli_and_helm_configuration_for_cdc_and_s3 branch February 1, 2026 07:25
@dosubot
Copy link

dosubot bot commented Feb 1, 2026

Related Documentation

No published documentation to review for changes on this repository.

Write your first living document

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code 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.

2 participants