Repository navigation
docs: document the fsck --verified-at flag and chart changes [backport #1004] - #1005
Conversation
The flag --verified-at was not documented nor was the Helm Chart changes. Document both. (cherry picked from commit 4979cd7)
Summary of ChangesHello, 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 Highlights
Changelog
Activity
Using Gemini Code AssistThe 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
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 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
|
|
Related Documentation 1 document(s) may need updating based on files changed in this PR: kalbasit's Space Cache and Storage Configuration FlagsView 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)Note: You must be authenticated to accept/decline updates. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.