Repository navigation
Conversation
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 enhances the Helm chart for the "fsck" cron job by adding a "concurrencyPolicy" option. This feature is crucial for preventing potential resource exhaustion or database lock contention that could arise if multiple "fsck" instances were to run concurrently, especially when a check exceeds its scheduled interval. The default setting of 'Forbid' ensures safer operation out-of-the-box, while still allowing users to customize this behavior if needed. 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
|
There was a problem hiding this comment.
Code Review
This pull request adds a configurable concurrencyPolicy to the fsck cronjob, which is a sensible feature to prevent job overlaps. The changes are well-implemented across the Helm chart templates, values, schema, and documentation. The addition of unit tests is also great. The suggestions to improve the maintainability of the chart by centralizing the default value for the new setting in values.schema.json are valid and have been retained, as they align with general best practices for Helm chart development.
This adds 'concurrencyPolicy' to the fsck job configuration in the Helm chart. It defaults to 'Forbid' to prevent multiple instances of fsck from running simultaneously, which could lead to resource exhaustion or database lock contention if a check takes longer than the scheduled interval. Changes: - Added 'fsck.job.concurrencyPolicy' to values.yaml. - Updated 'fsck-cronjob.yaml' template to apply the policy. - Added schema validation in 'values.schema.json'. - Updated documentation in 'Installation/Helm Chart.md' and 'Operations/Integrity Check (fsck).md'. - Added unit tests in 'tests/fsck_cronjob_test.yaml'.
e0607cd to
069b586
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1006 +/- ##
=====================================
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:
|
This adds 'concurrencyPolicy' to the fsck job configuration in the Helm chart. It defaults to 'Forbid' to prevent multiple instances of fsck from running simultaneously, which could lead to resource exhaustion or database lock contention if a check takes longer than the scheduled interval. Changes: - Added 'fsck.job.concurrencyPolicy' to values.yaml. - Updated 'fsck-cronjob.yaml' template to apply the policy. - Added schema validation in 'values.schema.json'. - Updated documentation in 'Installation/Helm Chart.md' and 'Operations/Integrity Check (fsck).md'. - Added unit tests in 'tests/fsck_cronjob_test.yaml'. (cherry picked from commit 1d1504e)
|
Successfully created backport PR for |
…1006] (#1008) Bot-based backport to `release-0.9`, triggered by a label in #1006. This adds 'concurrencyPolicy' to the fsck job configuration in the Helm chart. It defaults to 'Forbid' to prevent multiple instances of fsck from running simultaneously, which could lead to resource exhaustion or database lock contention if a check takes longer than the scheduled interval. Changes: - Added 'fsck.job.concurrencyPolicy' to values.yaml. - Updated 'fsck-cronjob.yaml' template to apply the policy. - Added schema validation in 'values.schema.json'. - Updated documentation in 'Installation/Helm Chart.md' and 'Operations/Integrity Check (fsck).md'. - Added unit tests in 'tests/fsck_cronjob_test.yaml'.
## 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)

This adds 'concurrencyPolicy' to the fsck job configuration in the Helm
chart. It defaults to 'Forbid' to prevent multiple instances of fsck
from running simultaneously, which could lead to resource exhaustion or
database lock contention if a check takes longer than the scheduled
interval.
Changes:
'Operations/Integrity Check (fsck).md'.