Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1095,8 +1095,8 @@ let
))
];

# Flake checks for the laptop-backups shell suites (#1841): the seven
# suites in nixos/home drive the real backup and watchdog scripts with
# Flake checks for the laptop-backups shell suites (#1841): the suites
# in nixos/home drive the real backup and watchdog scripts with
# stubbed systemctl/bws/journalctl/rclone, so each is a runCommandLocal
# that copies nixos/home somewhere writable and runs one suite. Until
# this wiring they ran only by hand on the laptop, so a regression in
Expand All @@ -1108,11 +1108,17 @@ let
let
pkgs = import inputs.nixpkgs-unstable { inherit system; };
suites = [
"laptop-autocommit-in-progress"
"laptop-autocommit-merge-abort"
Comment on lines +1111 to +1112

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare Git and SQLite inputs for the newly enabled suites

In a clean Nix build environment, the newly registered checks fail because the shared nativeBuildInputs supplies neither Git nor SQLite. The four Git-related suites invoke real git to initialize their fixture repositories, while pm-dashboard-backup-pmp-links.test.sh explicitly exits at lines 41–44 when sqlite3 is unavailable and subsequently uses it for fixture creation and restore verification. Add pkgs.git and pkgs.sqlite to the check environment so these additions do not break nix flake check independently of the scripts being tested.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 6d05398 (pushed before this review round landed): pkgs.git and pkgs.sqlite are now in the shared nativeBuildInputs for make-laptop-backups-checks. Verified on the laptop: all six newly wired checks build and pass — laptop-backups-laptop-autocommit-in-progress, -laptop-autocommit-merge-abort, -laptop-repo-keeper, -laptop-untracked-review, -openclaw-backup, -pm-dashboard-backup-pmp-links. Thanks — exactly the right catch.

"laptop-backups-watchdog"
"laptop-repo-keeper"
"laptop-untracked-review"
"openclaw-backup"
"pm-dashboard-backup"
"pm-dashboard-backup-copy"
"pm-dashboard-backup-date"
"pm-dashboard-backup-manifest"
"pm-dashboard-backup-pmp-links"
"pm-dashboard-backup-prune"
"pm-dashboard-backup-record"
];
Expand All @@ -1131,10 +1137,12 @@ let
pkgs.findutils
pkgs.gnugrep
pkgs.gnused
pkgs.git
pkgs.gnutar
pkgs.gzip
pkgs.jq
pkgs.python3
pkgs.sqlite
pkgs.util-linux
pkgs.zstd
];
Expand Down