Skip to content

docs: document the fsck --verified-at flag and chart changes [backport #1004] - #1005

Merged
kalbasit merged 1 commit into
release-0.9from
backport-1004-to-release-0.9
Mar 1, 2026
Merged

kalbasit merged 1 commit into
release-0.9from
backport-1004-to-release-0.9

Conversation

@kalbasit

@kalbasit kalbasit commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Bot-based backport to release-0.9, triggered by a label in #1004.

The flag --verified-at was not documented nor was the Helm Chart
changes. Document both.

The flag --verified-at was not documented nor was the Helm Chart
changes. Document both.

(cherry picked from commit 4979cd7)
@kalbasit
kalbasit enabled auto-merge (squash) March 1, 2026 08:05
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation helm labels Mar 1, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 primarily focuses on enhancing the documentation for the ncps project, specifically regarding its fsck integrity check functionality and Helm Chart deployment. The changes aim to provide clearer guidance on utilizing the --verified-since flag for efficient re-verification and to fully document the fsck CronJob configuration within the Helm Chart, making it easier for users to set up and manage periodic integrity checks. Additionally, minor consistency improvements were made across various documentation files.

Highlights

  • Documentation for fsck --verified-since flag: The fsck --verified-since flag, which allows skipping re-verification of recently checked NARs for efficiency, has been thoroughly documented in the user guide.
  • Helm Chart fsck settings documentation: Comprehensive documentation has been added for configuring the fsck integrity check CronJob within the Helm Chart, including parameters for enabling, scheduling, and resource allocation.
  • Helm Chart documentation improvements: Code blocks in Helm Chart installation guides now include sh syntax highlighting, and 'Helm' references have been consistently updated to 'Helm Chart' for clarity.
  • Updated values.yaml example: The fsck.verifiedSince example in charts/ncps/values.yaml has been updated to use more common duration formats like '24h' and '1h'.
Changelog
  • charts/ncps/values.yaml
    • Updated the example duration for fsck.verifiedSince from "7d", "30d" to "24h", "1h".
  • docs/docs/User Guide/Installation/Helm Chart.md
    • Added sh syntax highlighting to all code blocks.
    • Introduced a new section "FSCK (Integrity Check) Settings" with a yaml example.
  • docs/docs/User Guide/Installation/Helm Chart/Chart Reference.md
    • Added sh syntax highlighting to all code blocks.
    • Introduced a new section "FSCK (Integrity Check) Settings" detailing all related parameters in a table.
  • docs/docs/User Guide/Installation/Kubernetes.md
    • Updated all instances of "Helm" to "Helm Chart" for consistency.
  • docs/docs/User Guide/Operations/Integrity Check (fsck).md
    • Added a new subsection "Efficient Re-verification" explaining the --verified-since flag with a code example.
    • Included --verified-since in the command-line flags table.
    • Added a new section "Helm Chart CronJob" detailing its configuration in values.yaml.
  • pkg/ncps/fsck.go
    • Updated the usage string for the verified-since CLI flag to provide more specific examples like "(e.g. 1h, 30m)".
  • pkg/ncps/fsck_test.go
    • Corrected a test case, changing the --verified-since duration from "1ns" to "1s" for accuracy.
Activity
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 commented Mar 1, 2026

Copy link
Copy Markdown

Related Documentation

1 document(s) may need updating based on files changed in this PR:

kalbasit's Space

Cache and Storage Configuration Flags
View Suggested Changes
@@ -273,7 +273,7 @@
 **Duration Format:** The flag supports both standard Go duration units and extended units for convenience:
 - Standard Go duration units: `h` (hours), `m` (minutes), `s` (seconds), `ms` (milliseconds), etc.
 - Extended units: `d` (days, calculated as 24 hours), `m` (months, calculated as 30 days)
-- Examples: `1h`, `7d`, `30d`, `1m` (1 month = 30 days = 720 hours)
+- Examples: `1h`, `30m`, `24h`, `7d`, `30d`, `168h`, `1m` (1 month = 30 days = 720 hours)
 
 The parser uses a custom duration parser that extends Go's standard `time.ParseDuration` function. Days are calculated as 24 hours, and months are calculated as 30 days for simplicity. The parser falls back to standard Go duration parsing for other formats.
 
@@ -287,7 +287,18 @@
 # First run: verify all NARs
 ncps fsck --cache-database-url postgres://... --cache-storage-local /var/lib/ncps
 
-# Subsequent runs: skip NARs verified within the last 7 days (using extended 'd' suffix)
+# Subsequent runs with shorter durations
+# Skip NARs verified within the last hour
+ncps fsck --cache-database-url postgres://... --cache-storage-local /var/lib/ncps --verified-since 1h
+
+# Skip NARs verified within the last 24 hours
+ncps fsck --cache-database-url postgres://... --cache-storage-local /var/lib/ncps --verified-since 24h
+
+# Skip NARs verified within the last 30 minutes
+ncps fsck --cache-database-url postgres://... --cache-storage-local /var/lib/ncps --verified-since 30m
+
+# Subsequent runs with longer durations
+# Skip NARs verified within the last 7 days (using extended 'd' suffix)
 ncps fsck --cache-database-url postgres://... --cache-storage-local /var/lib/ncps --verified-since 7d
 
 # Alternative: using standard Go duration format (168 hours = 7 days)

[Accept] [Decline]

Note: You must be authenticated to accept/decline updates.

How did I do? Any feedback?  Join Discord

@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 primarily introduces documentation for the fsck command's --verified-since flag and the corresponding Helm chart settings. The changes are well-implemented, improving clarity and usability by adding syntax highlighting to code blocks and providing clear examples. However, I've noted a potential issue regarding the memory resource limits in the documentation examples for the fsck cronjob, which appear to be significantly higher than other examples in the codebase. My review includes suggestions to address this inconsistency.

verifiedSince: "168h" # 7 days
resources:
limits:
memory: 6Gi

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.

medium

The example resource limit of 6Gi for memory seems quite high for a cronjob, especially when compared to the example resources for the main application (2Gi) and the commented-out defaults in values.yaml (256Mi). Is this value correct, or could it be a typo (e.g., for 600Mi)? If it is correct, it might be helpful to add a note explaining why fsck can be so memory-intensive.

# Optional: Resource limits for the CronJob
resources:
limits:
memory: 6Gi

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.

medium

The example resource limit of 6Gi for memory seems quite high. The values.yaml file suggests much lower values (e.g., 256Mi). If 6Gi is a realistic requirement for large caches, it would be beneficial to add a brief explanation for users to understand the high memory consumption. Otherwise, if it's a typo, it should be corrected to a more typical value.

@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Mar 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.04%. Comparing base (85ec7ef) to head (93c6f5b).
⚠️ Report is 1 commits behind head on release-0.9.

Additional details and impacted files
@@             Coverage Diff             @@
##           release-0.9   #1005   +/-   ##
===========================================
  Coverage         5.04%   5.04%           
===========================================
  Files                6       6           
  Lines              436     436           
===========================================
  Hits                22      22           
  Misses             410     410           
  Partials             4       4           

☔ 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 merged commit 2b6cce2 into release-0.9 Mar 1, 2026
13 checks passed
@kalbasit
kalbasit deleted the backport-1004-to-release-0.9 branch March 1, 2026 08:16
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