Repository navigation
docs: populate CHANGELOG for v0.10.0 - #1309
Conversation
Adds Added, Fixed, and Changed sections covering all user-facing changes since v0.9.4: Added: build-trace-v2 endpoint, CDC drain mode, ncps migrate-chunks-to-nar command, --cache-cdc-chunk-wait-timeout flag, and the Helm migrate-nar-to-chunks Job. Fixed: Helm migration Job volume mounts for non-SQLite, ArgoCD sync-hook removal, cache reliability cluster for NFS/multi-replica deployments (false-purge cascade, NAR cache-miss recovery, HTTP 500 on lock contention, client-cancel hang, spurious narinfo purge), CDC lazy-chunking compression mismatch, PostgreSQL fsck IN-clause cap, identity sequence sync on existing databases, and concurrent 25P02 narinfo/chunk insert errors. Changed: CDC lazy chunking default flipped to false (was true in v0.9), plus the existing security-context and database-tooling entries. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
This change is part of the following stack: Change managed by git-spice. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe ChangesChangelog Updates
🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly Related PRs
Suggested Labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the CHANGELOG.md to document several new features, bug fixes, and configuration changes, such as the build-trace-v2 endpoint, CDC drain mode, and PostgreSQL optimizations. The review feedback consists of minor spelling and formatting corrections in the changelog text to maintain consistency with American English spelling conventions and standard technical number formatting.
|
Documentation Updates 1 document(s) were updated by changes in this PR: Cache and Storage Configuration FlagsView Changes@@ -309,9 +309,39 @@
lazy-recovery-schedule: "@every 10m"
lazy-recovery-batch-size: 50
lazy-cleanup-schedule: "@every 30m"
+ chunk-wait-timeout: 30s
```
**Note:** The existing `migrate-nar-to-chunks` CLI command can still be used for manual chunking of stored NAR files.
+
+### Chunk Wait Timeout
+
+The `--cache-cdc-chunk-wait-timeout` flag controls how long progressive CDC streaming waits for each chunk before giving up. This timeout should be aligned with reverse-proxy timeout settings to avoid spurious 504 errors on high-latency storage.
+
+**Flag:** `--cache-cdc-chunk-wait-timeout`
+
+**Environment variable:** `CACHE_CDC_CHUNK_WAIT_TIMEOUT`
+
+**YAML key:** `cache.cdc.chunk-wait-timeout`
+
+**Helm value:** `cache.cdc.chunkWaitTimeout`
+
+**Default:** `30s`
+
+**CLI Example:**
+```bash
+ncps serve \
+ --cache-cdc-enabled \
+ --cache-cdc-chunk-wait-timeout 45s
+```
+
+**YAML Example:**
+```yaml
+cache:
+ cdc:
+ enabled: true
+ chunk-wait-timeout: 45s
+```
### Immutable CDC Settings
@@ -473,6 +503,7 @@
| CDC lazy recovery schedule | `--cache-cdc-lazy-recovery-schedule` | `cache.cdc.lazy-recovery-schedule` | `config.cdc.lazyRecoverySchedule` | No (default: `@every 5m`) |
| CDC lazy recovery batch size | `--cache-cdc-lazy-recovery-batch-size` | `cache.cdc.lazy-recovery-batch-size` | `config.cdc.lazyRecoveryBatchSize` | No (default: `100`) |
| CDC lazy cleanup schedule | `--cache-cdc-lazy-cleanup-schedule` | `cache.cdc.lazy-cleanup-schedule` | `config.cdc.lazyCleanupSchedule` | No (default: `@every 1h`) |
+| CDC chunk wait timeout | `--cache-cdc-chunk-wait-timeout` | `cache.cdc.chunk-wait-timeout` | `cache.cdc.chunkWaitTimeout` | No (default: `30s`) |
* Either local or S3 storage must be configured, not both.
** Required for S3 storage. |
Switch initialises→initializes, serialised→serialized, behaviour→behavior, and 65 535→65,535 to match the codebase convention (American English). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
## 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)
Summary
Fills in the
[Unreleased]section ofCHANGELOG.mdahead of the v0.10.0release, covering all user-facing changes since v0.9.4.
Added
build-trace-v2endpoint — fixesnix copywith CA derivationsncps migrate-chunks-to-narcommand — reverse CDC migration with--dry-run/--force-reclaim--cache-cdc-chunk-wait-timeoutflag — replaces the hard-coded 30 s per-chunk waitmigrate-nar-to-chunksJob — the forward migration Job now has a chart representationFixed
hardening, HTTP 500 on lock contention, client-cancel hang, spurious narinfo purge
Changed
false(wastruein v0.9) — opt-in now requiredcontainerDefaults.securityContextadded (breaking)Test plan
nix fmt— exit 0 (formatter touched one blank-line in the list)