Skip to content

docs: populate CHANGELOG for v0.10.0 - #1309

Merged
kalbasit merged 2 commits into
mainfrom
user/wnasreddine/changelog
Jun 1, 2026
Merged

kalbasit merged 2 commits into
mainfrom
user/wnasreddine/changelog

Conversation

@kalbasit

@kalbasit kalbasit commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

Fills in the [Unreleased] section of CHANGELOG.md ahead of the v0.10.0
release, covering all user-facing changes since v0.9.4.

Added

  • build-trace-v2 endpoint — fixes nix copy with CA derivations
  • CDC drain mode — graceful transition when disabling CDC while chunks remain
  • ncps migrate-chunks-to-nar command — reverse CDC migration with --dry-run / --force-reclaim
  • --cache-cdc-chunk-wait-timeout flag — replaces the hard-coded 30 s per-chunk wait
  • Helm migrate-nar-to-chunks Job — the forward migration Job now has a chart representation

Fixed

  • Helm: migration Job incorrectly mounted storage/tmp volumes for PostgreSQL/MySQL
  • Helm: migration Jobs were ArgoCD sync hooks (OOMKill → blocked all syncs)
  • Cache reliability on NFS/multi-replica: false-purge cascade, cache-miss recovery
    hardening, HTTP 500 on lock contention, client-cancel hang, spurious narinfo purge
  • CDC lazy-chunking compression mismatch
  • PostgreSQL fsck IN-clause cap (65 535 params)
  • PostgreSQL identity sequence sync on existing databases
  • PostgreSQL concurrent 25P02 errors on narinfo/chunk inserts
  • Stub narinfo concurrent race

Changed

  • CDC lazy chunking default flipped to false (was true in v0.9) — opt-in now required
  • Helm security context defaults removed; containerDefaults.securityContext added (breaking)
  • Database tooling migrated from sqlc + dbmate to Ent + Atlas + Goose

Test plan

  • nix fmt — exit 0 (formatter touched one blank-line in the list)
  • No code changes — CHANGELOG only

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]>
@kalbasit

kalbasit commented Jun 1, 2026 •

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation labels Jun 1, 2026
@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5fbbac19-38af-486b-9218-ac17808a4294

📥 Commits

Reviewing files that changed from the base of the PR and between 4fd1d64 and 7690152.

📒 Files selected for processing (1)
  • CHANGELOG.md
✅ Files skipped from review due to trivial changes (1)
  • CHANGELOG.md

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Added build-trace-v2 endpoint support
    • Added a migrate-chunks-to-nar migration command and configurable CDC chunking timeout
    • CDC lazy chunking is now opt-in by default
    • CDC drain-mode handles presence of chunked NARs
  • Bug Fixes

    • Improved NAR cache reliability for NFS and high-latency storage
    • Fixed CDC lazy-chunking compression mismatches
    • Resolved cache stub narinfo concurrency race and narinfo insert concurrency issues
    • Helm/migration job updates (mounting and sync-hook behavior adjusted)

Walkthrough

The CHANGELOG.md Unreleased section is updated with new feature entries (build-trace-v2, migrate-chunks-to-nar, CDC drain behavior, cache timeout, Helm job/chart updates) and multiple fixes; CDC lazy chunking is now documented as opt-in by default.

Changes

Changelog Updates

Layer / File(s) Summary
Unreleased changelog entries
CHANGELOG.md
Added entries document new build-trace-v2 endpoint, CDC drain-mode behavior, ncps migrate-chunks-to-nar command, configurable chunk wait timeout, and Helm migration job updates. Fixed entries cover Helm job mounting, ArgoCD sync hook removal, NAR cache reliability improvements for NFS/high-latency storage, CDC chunking compression fixes, PostgreSQL query batching, identity sequence synchronization, and narinfo concurrency fixes. Changed section documents CDC lazy chunking now opt-in by default.

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly Related PRs

  • kalbasit/ncps#1300: Both PRs reference the CDC per-chunk wait-timeout configuration (--cache-cdc-chunk-wait-timeout / CACHE_CDC_CHUNK_WAIT_TIMEOUT)—this PR documents it in the changelog while the referenced PR implements the Helm ConfigMap wiring and tests.

Suggested Labels

documentation

Poem

🐰 A changelog grows with features bright,
Fixes flow and defaults take flight,
CDC lazy-chunks now opt-in true,
Release notes capture all that's new!
Hops forward we go, version by version. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: populate CHANGELOG for v0.10.0' is clear, concise, and directly summarizes the main change—updating the CHANGELOG for the v0.10.0 release.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, detailing all user-facing changes organized by Added/Fixed/Changed categories and confirming no code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@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 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.

Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
@dosubot

dosubot Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Documentation Updates

1 document(s) were updated by changes in this PR:

Cache and Storage Configuration Flags
View 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.

How did I do? Any feedback?  Join Discord

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]>
@kalbasit
kalbasit enabled auto-merge (squash) June 1, 2026 01:37
@kalbasit
kalbasit merged commit ff9e8bd into main Jun 1, 2026
34 checks passed
@kalbasit
kalbasit deleted the user/wnasreddine/changelog branch June 1, 2026 01:39
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

documentation Improvements or additions to documentation size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant