Skip to content

docs: document the fsck --verified-at flag and chart changes - #1004

Merged
kalbasit merged 1 commit into
mainfrom
02-28-feat_support_extended_duration_units_for_--verified-since_and_document_fsck_cronjob
Mar 1, 2026
Merged

kalbasit merged 1 commit into
mainfrom
02-28-feat_support_extended_duration_units_for_--verified-since_and_document_fsck_cronjob

Conversation

@kalbasit

@kalbasit kalbasit commented Mar 1, 2026 •

Copy link
Copy Markdown
Owner

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

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request go Pull requests that update go code helm labels Mar 1, 2026

kalbasit commented Mar 1, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@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 enhances the fsck command by introducing support for extended duration units ('d' for days, 'm' for months) in the --verified-since flag, simplifying the configuration of long-term integrity checks. It includes a new helper package for robust duration parsing and updates the Helm chart and documentation to reflect these new capabilities, ensuring a more user-friendly and powerful integrity checking mechanism.

Highlights

  • Extended Duration Units for --verified-since: The fsck command's --verified-since flag now supports 'd' (days) and 'm' (months) suffixes, in addition to standard Go duration units, enabling more flexible long-term verification windows like '30d' or '1m'.
  • Custom Duration Parser: A new pkg/helper package was introduced with a ParseDuration function that handles these custom units and gracefully falls back to time.ParseDuration for standard formats.
  • Helm Chart and Documentation Updates: The Helm chart's values.schema.json and unit tests were updated to support the new duration suffixes. Comprehensive documentation for the fsck CronJob, including its configuration and the new duration unit support, was added to the operations guide, chart reference, and main Helm chart guide.
Changelog
  • charts/ncps/tests/fsck_cronjob_test.yaml
    • Added a new test case to verify the fsck CronJob correctly sets the --verified-since flag with a '30d' duration.
  • charts/ncps/values.schema.json
    • Modified the regular expression for the fsck.verifiedSince parameter to include 'd' (days) as a valid duration unit.
  • docs/docs/User Guide/Installation/Helm Chart.md
    • Updated several code blocks to explicitly specify 'sh' as the language.
    • Added a new section documenting the FSCK (Integrity Check) settings for the Helm chart, including an example values.yaml configuration.
  • docs/docs/User Guide/Installation/Helm Chart/Chart Reference.md
    • Updated several code blocks to explicitly specify 'sh' as the language.
    • Added a new table detailing all configurable parameters for the FSCK (Integrity Check) settings in the Helm chart.
  • docs/docs/User Guide/Operations/Integrity Check (fsck).md
    • Updated several code blocks to explicitly specify 'text', 'sh', or 'ini' as the language.
    • Added a note clarifying that the fsck command exits with a non-zero status in dry-run mode when issues are found.
    • Introduced a new section on 'Efficient Re-verification' explaining the --verified-since flag and its supported duration formats.
    • Added --verified-since to the command-line flags table.
    • Added a new section documenting the Helm Chart CronJob for fsck, including configuration details and an example values.yaml.
  • pkg/helper/duration.go
    • Added a new ParseDuration function that extends time.ParseDuration to support 'd' (days, 24h) and 'm' (months, 30d) units.
  • pkg/helper/duration_test.go
    • Added comprehensive unit tests for the helper.ParseDuration function, covering standard and new custom duration units, empty strings, and invalid inputs.
  • pkg/ncps/fsck.go
    • Imported the new pkg/helper package.
    • Changed the verified-since CLI flag type from cli.DurationFlag to cli.StringFlag.
    • Integrated the helper.ParseDuration function to parse the verified-since string flag, allowing for custom duration units.
Activity
  • No specific activity (comments, reviews, progress updates) has been recorded for this pull request yet.
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

Checked 7 published document(s) in 1 knowledge base(s). No updates required.

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 adds support for extended duration units ('d' for days, 'm' for months) to the --verified-since flag in the fsck command, which is a useful feature for configuring longer verification windows. The implementation includes a new duration parsing helper and corresponding unit tests. Additionally, the documentation for the fsck CronJob in the Helm chart has been updated across several files. The changes are well-implemented, but I have one suggestion to improve the validation pattern in the Helm chart's values.schema.json to correctly reflect all supported units.

Comment thread charts/ncps/values.schema.json Resolved
@kalbasit kalbasit changed the title feat: support extended duration units for --verified-since and document fsck CronJob feat: optimize fsck by skipping recently verified NARs Mar 1, 2026
@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 (802523e) to head (f42b6ce).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1004   +/-   ##
=====================================
  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 changed the title feat: optimize fsck by skipping recently verified NARs docs: document the fsck --verified-at flag and chart changes Mar 1, 2026
@kalbasit
kalbasit force-pushed the 02-28-feat_support_extended_duration_units_for_--verified-since_and_document_fsck_cronjob branch from c225c52 to 9e06134 Compare March 1, 2026 07:43
@kalbasit

kalbasit commented Mar 1, 2026

Copy link
Copy Markdown
Owner Author

/gemini review

@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 focuses on documenting the --verified-at flag for the fsck command and the corresponding Helm chart changes. The changes include updating values.yaml examples, adding documentation for fsck settings in the Helm chart guide and reference, and documenting the new --verified-since flag in the integrity check operations guide. Additionally, code block language hints have been improved across several documentation files for better syntax highlighting. The changes are mostly good, and the minor issue with sentence placement in one of the documentation files, which was commented on, remains a valid suggestion.

--repair
```

When issues are found in dry-run mode, the command exits with a non-zero status so it can be used in scripts.

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

This sentence about dry-run mode's exit status is misplaced. It should be part of the ### Dry Run section for better logical grouping and clarity. I'd recommend moving it to after the dry-run code example (around line 103).

@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

The flag --verified-at was not documented nor was the Helm Chart
changes. Document both.
@kalbasit
kalbasit force-pushed the 02-28-feat_support_extended_duration_units_for_--verified-since_and_document_fsck_cronjob branch from 9e06134 to f42b6ce Compare March 1, 2026 07:53
@kalbasit
kalbasit enabled auto-merge (squash) March 1, 2026 07:53
@kalbasit kalbasit added the backport release-0.9 Backport PR automatically label Mar 1, 2026
@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

@kalbasit
kalbasit merged commit 4979cd7 into main Mar 1, 2026
17 checks passed
@kalbasit
kalbasit deleted the 02-28-feat_support_extended_duration_units_for_--verified-since_and_document_fsck_cronjob branch March 1, 2026 08:04
kalbasit added a commit that referenced this pull request Mar 1, 2026
The flag --verified-at was not documented nor was the Helm Chart
changes. Document both.

(cherry picked from commit 4979cd7)
@kalbasit

kalbasit commented Mar 1, 2026

Copy link
Copy Markdown
Owner Author

Successfully created backport PR for release-0.9:

kalbasit added a commit that referenced this pull request Mar 1, 2026
…#1004] (#1005)

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.
kalbasit added a commit that referenced this pull request Jun 8, 2026
## Summary

The `[Unreleased]` section was populated in #1309 but skewed toward the
recent CDC-drain, in-flight-staging, and Ent-migration work, omitting
several user-facing features and fixes that also landed since v0.9.4.
This backfills the missing notable changes, each cross-referenced by PR.

**Added**
- `ncps fsck` command + Helm fsck CronJob (#975, #996, #998, #999,
#1000, #1004, #1006, #1176)
- Closure pinning HTTP endpoints `POST`/`DELETE /pin/{hash}.narinfo`,
`GET /pins` (#1108)
- pprof server via `--pprof-addr` (#1063)
- CDC lazy chunking as a feature + `--cache-cdc-lazy-cleanup-schedule` +
recovery cron (#1082, #1083, #1089, #1096)
- Helm: auto `GOMEMLIMIT` (#1061), configurable temp volume /
`volumeClaimTemplate` (#1074, #1077), SQLite `Recreate` strategy (#1012)
- Startup storage reporting + deprecated-narinfo warning (#959, #961)
- `docker-dev` image (#1097)

**Fixed**
- `store/tmp` no longer wiped on startup (#1313)
- `nix-hash` NAR verification (#1101)
- Prometheus counters primed at startup (#1337, #1343)
- 404 on un-reassemblable chunked NARs (#1319), purged narinfo no longer
500 (#1318), fail-fast tmp validation (#1086)
- Further CDC/cache reliability fixes (#1317, #1346, #1341, #1342,
#1331, #1347)

**Changed**
- CDC config now persisted in the DB config table (#971)

Dependency bumps, CI/test-only changes, and the internal Ent-conversion
PRs are intentionally excluded; the existing Ent-migration entry already
covers that work.

## Test plan

- [x] `nix fmt` reports no changes (docs-only edit)
- [x] CHANGELOG section structure intact
(Added/Fixed/Changed/Removed/Migration/CI)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release-0.9 Backport PR automatically documentation Improvements or additions to documentation 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.

1 participant