Skip to content

chore: retire cache gate and automated maintenance - #74

Merged
bioinformatist merged 1 commit into
mainfrom
chore/retire-maintenance-gate
Nov 11, 2026
Merged

bioinformatist merged 1 commit into
mainfrom
chore/retire-maintenance-gate

Conversation

@bioinformatist

@bioinformatist bioinformatist commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

变更

  • 删除 CI cache gate、downstream policy overlay 和 lib.maintenancePolicy;保留 maintenance gate 状态名称,改为实际 116 配置、三个用户 Home Manager activation 及 headless/cache 签名配置检查。
  • upstream 更新至 4cb59bbd80254e1cb884239d2c8e7c7917a2069d,继承无 cache gate 的 maint-switch:先完整构建,再激活同一 store path;kernel/NVIDIA 变化使用 boot-only activation。更新中文文档及旧 helper 首次迁移步骤,移除失效的 --no-pull 用法。
  • 按 upstream lib/nix-caches.nix 对齐优先级:USTC 10、官方 NixOS 40、Numtide 60;downstream Yazelix 60。运行配置与安装默认值保持一致,保留签名验证和公钥。
  • 与 upstream 一致,将 Renovate 配置设为 enabled: false,删除自动更新/合并规则。仓库 allow_auto_merge 已为 false;旧 Renovate PR chore(deps): update dotlink digest to c34ea5a #73 和 Dependency Dashboard Dependency Dashboard #10 已关闭。
  • AGENTS.md 增加主动讨论适合的第三方 Nix cache 以减少本地编译的规则,同时评估覆盖、来源、签名信任、兼容性、可用性和优先级。

影响边界

已逐项比较 lock,downstream 顶层 nixpkgs、home-manager、disko、impermanence、sops-nix、yazelix、dotlink 均未变化。upstream 的传递依赖有变化;桌面 inputs 仍在 upstream lock 图中,但 116 不因此启用桌面。

本次实际版本比较(116 当前运行版本 → 新配置求值版本):

  • Codex CLI:0.163.0 → 0.166.0。
  • Helix:25.07.1 → 25.07.1。
  • Yazi:26.5.6 → 26.1.22,属于降级。原因是 upstream 已将 Helix/Yazi 从独立工具包集合迁回消费者的 nixpkgs;本 PR 保持 downstream nixpkgs 不动。此影响应在 merge/rebuild 前审查。

验证与部署

本地通过:

  • git diff --check、安装脚本 nu-check、七项顶层 lock 不变性检查。
  • 临时加载新 helper 并查看 maint-switch --help。
  • nix flake check --no-build --impure --no-update-lock-file --option allow-import-from-derivation false,实际 116 toplevel 和 devShell 求值成功。
  • 最终提交的 nix build --impure --no-link --no-update-lock-file --max-jobs 1 --cores 2 -L .#checks.x86_64-linux.host-116,包括签名、公钥、cache 优先级、headless 和 Yazelix 用户边界断言。
  • 独立代码审查未发现阻塞问题。

CI 已对 d880bcc 通过:https://github.com/sctmes/dotfiles/actions/runs/42978861930/job/130384256182 。

用户接受 Yazi 版本变化后,已合并为 3d7ced63e15d85ead2c72097867f4d282121b45b。随后通过 116 connector 从干净的最新 main 尝试完整构建,但 未能完成构建,未激活或 reboot。

116 实际构建结果

aioboto3 15.5.0 的 7 个 DynamoDB 测试失败(45 passed、2 deselected、1 xfailed),错误为本地 mock endpoint http://localhost:5001/ 返回重复 Server header:HTTPClientError: 400, Duplicate 'Server' header found.

失败链:aioboto3 → py-key-value-aio → FastMCP/pydocket → mcp-nixos 2.3.1 → 三个 Home Manager paths。这不是 cache gate,也不是远端网络失败;没有跳过测试或关闭签名检查。确认依赖失败后停止仍在收尾的构建 job。

完整日志可在 116 读取:nix log /nix/store/hsmz4bydg4d10bia2wdi6g5nlnp210hk-python3.13-aioboto3-15.5.0.drv。

运行系统仍为原 generation;SSH、Docker、Nix daemon 和 dotlink 保持 active,无 failed systemd units。后续需先修复或选择兼容的工具依赖,再重新构建;当前 CI 是求值和针对性配置检查,不等同于完整 closure build。

@bioinformatist
bioinformatist marked this pull request as ready for review November 11, 2026 07:28
@bioinformatist
bioinformatist merged commit 3d7ced6 into main Nov 11, 2026
1 check passed
@bioinformatist
bioinformatist deleted the chore/retire-maintenance-gate branch November 11, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant