Skip to content

ncps: 0.9.4 -> 0.10.0 and adapt nixos/ncps to the new ncps - #529765

Merged
kalbasit merged 2 commits into
NixOS:masterfrom
kalbasit:ncps-0.10
Oct 12, 2026
Merged

kalbasit merged 2 commits into
NixOS:masterfrom
kalbasit:ncps-0.10

Conversation

@kalbasit

@kalbasit kalbasit commented Jun 9, 2026 •

Copy link
Copy Markdown
Member

Updates ncps to 0.10 and adapts the nixos/ncps module to it.

Changelog: https://github.com/kalbasit/ncps/blob/v0.10.0/CHANGELOG.md

  • Package: v0.10.0. The dev tooling under cmd/ is excluded from the build.
  • Module: ncps 0.10 replaces dbmate with a built-in ncps migrate up, which preStart now runs. The module also exposes the new options: CDC tuning, in-flight NAR staging, cache.storage.statTimeout, cache.getTokenFile, cache.requireTrustedSignature and cache.trustedUploadKeys.
  • Tests: ncps-ha-pg-redis now uses Garage instead of MinIO, which minio: drop, minio-client: mark with knownVulnerabilities #572974 drops. It also checks the shared S3 storage end to end: ncps0 caches a path, the upstream is stopped, and ncps1 still serves the path.

Things done

@kalbasit kalbasit added the backport release-26.05 Backport PR automatically label Jun 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jun 9, 2026
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Jun 11, 2026
Flake lock file updates:

• Added input 'nixpkgs-patch-ncps-0-10-0':
    'NixOS/nixpkgs#529765'
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Jul 4, 2026
This changes nixos-raspberrypi's branch from main to nixos-unstable
to avoid the buildDTBs eval error.

Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb' (2026-05-13)
  → 'github:hercules-ci/flake-parts/17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e' (2026-07-01)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=564ffc714a5519fbe196f78185d6aeb999b6604b' (2026-06-13)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=6fb26343823cf0865201fcb27983e75b8f5488da' (2026-07-03)
• Added input 'gep-dotfiles/nixpkgs-patch-stylelint-lsp-fix-build':
    'NixOS/nixpkgs#536260'
• Updated input 'gep-dotfiles/nvim-gep':
    'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=36611e8c35563967ee311f5480e786eb1a9631b9' (2026-06-13)
  → 'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=133bc0b630df398c78d0d24fa8633e879f2a4105' (2026-07-01)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly':
    'github:nix-community/neovim-nightly-overlay/62f5f65a671a990fa809031d64379374e89ef225' (2026-06-13)
  → 'github:nix-community/neovim-nightly-overlay/2b5cf92633caaf2604e7b78d8d16ad92dbb502c6' (2026-06-29)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly/neovim-src':
    'github:neovim/neovim/400f2473972898ecfd89ac3c55222ace0cc248dd' (2026-06-12)
  → 'github:neovim/neovim/84cd87908e81da33c8daa5646668939d7ea6afa7' (2026-06-28)
• Added input 'gep-dotfiles/nvim-gep/nixpkgs-patch-stylelint-lsp-fix-build':
    'NixOS/nixpkgs#536260'
• Updated input 'gep-dotfiles/nvim-gep/nixvim':
    'github:nix-community/nixvim/56f95d165580d4c814955798fa408c66d6843069' (2026-06-13)
  → 'github:nix-community/nixvim/78acb50d9aa9cbb5d8e0ac1518d0842a29d70553' (2026-07-01)
• Updated input 'home-manager':
    'github:nix-community/home-manager/5b6f5733726a1b2ccafb5dec6ac4ca7299fad66c' (2026-06-13)
  → 'github:nix-community/home-manager/b885baad531fa3d3beae2ba9a0712d22974d8016' (2026-07-04)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/1a2ea89c917781e88508d9fd2b507f2d2a0e173c' (2026-06-07)
  → 'github:nix-community/nix-index-database/f8ed6cdcb1fd28a6ab7b61f4467a4f67fe2d9074' (2026-07-02)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/6358ff76821101c178e3ab4919a62799bfe3652e' (2026-06-11)
  → 'github:NixOS/nixos-hardware/a9cf7546a938c737b079e738de73934a13de9784' (2026-06-27)
• Updated input 'nixos-raspberrypi':
    'github:nvmd/nixos-raspberrypi/06c6e3513e1ee64b651913193fc6ac38aa4963f5' (2026-05-17)
  → 'github:nvmd/nixos-raspberrypi/19f53ada5ede32d171956f06a842e72016010931' (2026-06-29)
• Updated input 'nixos-raspberrypi/nixpkgs':
    'github:NixOS/nixpkgs/d7a713c0b7e47c908258e71cba7a2d77cc8d71d5' (2026-05-14)
  → 'github:NixOS/nixpkgs/e73de5be04e0eff4190a1432b946d469c794e7b4' (2026-06-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9ae611a455b90cf061d8f332b977e387bda8e1ca' (2026-06-10)
  → 'github:NixOS/nixpkgs/65179426c83bb3f6bc14898b42ea1c6f01d374b0' (2026-07-02)
• Updated input 'nixpkgs-patch-ncps-0-10-0':
    'NixOS/nixpkgs#529765'
  → 'NixOS/nixpkgs#529765'
• Updated input 'nixpkgs-patch-nixos-nginx-add-build-time-syntax-validation':
    'NixOS/nixpkgs#474858'
  → 'NixOS/nixpkgs#474858'
• Added input 'nixpkgs-patch-stylelint-lsp-fix-build':
    'NixOS/nixpkgs#536260'
• Added input 'nixpkgs-patch-vue-language-server-fix-build':
    'NixOS/nixpkgs#537169'
• Updated input 'nixpkgs-patcher':
    'github:gepbird/nixpkgs-patcher/5e3b493622367a11ead8d53134d2dd2be88bd168' (2026-06-13)
  → 'github:gepbird/nixpkgs-patcher/d2abed2b94b7955e05b4e2e8a9b8ac45597ecf94' (2026-06-18)
• Updated input 'nur':
    'github:nix-community/NUR/058bd96c478835e243de857c4c0d585364eb2c2d' (2026-06-13)
  → 'github:nix-community/NUR/b1c0055fdc7a24866d9e6a1b65df207c7a373095' (2026-07-04)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/9ed65852b6257fbeae4355bc24ecfea307ca759a' (2026-06-04)
  → 'github:Mic92/sops-nix/f1406619a3884cd5c47992a70b8b35c9c0fcb4c9' (2026-07-04)
@kalbasit kalbasit removed the backport release-26.05 Backport PR automatically label Oct 12, 2026
kalbasit and others added 2 commits October 12, 2026 16:08
ncps 0.10 replaces dbmate with a built-in `ncps migrate up` command and
embeds the SQL migrations in the binary. Run that from preStart via the
CACHE_DATABASE_URL environment variable instead of the removed
dbmate-ncps wrapper.

Also expose the new configuration surface: CDC tuning (chunk-wait-timeout,
lazy chunking, background workers, recovery/cleanup schedules), in-flight
NAR staging, the storage presence-probe timeout (cache.storage.statTimeout),
the GET/HEAD bearer token (cache.getTokenFile), and trusted PUT upload
signatures (cache.requireTrustedSignature and cache.trustedUploadKeys).

Swap the MinIO node in the HA test for Garage, as MinIO is being dropped
from nixpkgs, and make the test actually exercise the shared S3 storage:
substitute a path through ncps0, stop the upstream, then substitute it
again through ncps1. This needs nix enabled on the harmonia and client
nodes, which the test previously lacked (harmonia was failing to start).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kalbasit
kalbasit marked this pull request as ready for review October 12, 2026 23:08
@nixpkgs-ci
nixpkgs-ci Bot requested a review from aciceri October 12, 2026 23:14
@kalbasit
kalbasit added this pull request to the merge queue Oct 12, 2026
Merged via the queue into NixOS:master with commit 56ea6f1 Oct 12, 2026
28 checks passed
@kalbasit
kalbasit deleted the ncps-0.10 branch October 12, 2026 23:45
@gepbird gepbird mentioned this pull request Oct 15, 2026
4 tasks done
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Oct 15, 2026
Flake lock file updates:

• Updated input 'nixpkgs-patch-ncps-0-10-0':
    'NixOS/nixpkgs#529765'
  → 'NixOS/nixpkgs#529765'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant