Commit Graph

30 Commits

Author SHA1 Message Date
Qubasa
ec98cdf097 clan-cli: Increase test coverage for clan flash list 2025-09-20 02:15:33 +02:00
DavHau
37a49a14f4 vars: fix re-generate behavior for dependencies of shared vars (#5001)
fixes https://git.clan.lol/clan/clan-core/issues/3791

This fixes multiple issues we had when re-generating shared vars.

Problem 1: shared vars are re-generated for each individual machine instead of just once (see #3791)

Problem 2: When a shared var was re-generated for one machine, dependent vars on other machines did not get re-generated, leading to broken state

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5001
2025-09-02 14:54:24 +00:00
Jörg Thalheim
306f83e357 flash: skip test on aarch64-linux 2025-08-25 14:46:12 +02:00
Jörg Thalheim
be048d8307 morph/flash: use patched clan-core-for-checks
the other one doesn't override flake.lock
2025-08-13 11:41:09 +00:00
Jörg Thalheim
38e2d00bbc flash test: enable useNixStoreImage
we had some weird corruption, this hopefully helps. Unclear if it's
slower..
2025-08-11 18:23:28 +02:00
Jörg Thalheim
567570e89c make clan-core-for-checks a dev flake input 2025-08-11 15:36:40 +02:00
Michael Hoang
a71a5880c1 treewide: reformat 2025-08-08 15:28:37 +10:00
Jörg Thalheim
124badc7ed checks/nixos-test-flash: increase ram to workaround gc bug in nix 2025-07-08 14:25:44 +02:00
lassulus
a055b4d1eb refactor: remove deployment.json and use direct selectors
- Remove deployment.json file generation from outputs.nix
- Add throw for deprecated deployment.file usage with upgrade instructions
- Remove vars data from deployment.data
- Update Machine class to use direct select() calls instead of deployment property
- Update all deployment property accesses to use direct selectors
- Add precaching for frequently accessed values in update.py:
  - Module paths for facts and vars
  - Deployment settings (requireExplicitUpdate, nixosMobileWorkaround)
  - Services and generators data
  - Secret upload locations
- This removes unnecessary JSON serialization and makes the code more composable
2025-07-02 20:56:23 +02:00
Johannes Kirschbauer
b1f71fe4fb clan.deployment: unify deprecated option 2025-07-02 18:37:29 +02:00
DavHau
a43eee2860 checks: prefix all nixos tests with nixos-test- 2025-06-30 19:14:24 +07:00
Jörg Thalheim
a6914a0598 use a clan-core snapshots for ci tests
We currently have to re-run our integration tests a lot because they are
depending on the whole repository. This pull request changes locks the
clan-core used for vm tests. This has the caveat that we might not run
the latest NixOS machine of our profiles. On the upside we can test
behaviour against an older clan-core version and capture breakages and
make it backwards compatible. If we actually want to test the latest
version, the PR that changes the exposed flake api, could also bump the
clan-core snapshot.
2025-05-12 13:21:25 +02:00
Johannes Kirschbauer
abd9519412 Refactor: move checks/lib into lib/ to avoid duplicate lib
Lets avoid the mistake of nixpkgs having multiple
libs
2025-04-23 16:19:16 +02:00
Jörg Thalheim
2c83211c1d checks/installation: restore the install without system aspect 2025-04-09 11:32:28 +00:00
Jörg Thalheim
a4781e218c flash: test existing mount with spaces 2025-04-08 20:16:23 +02:00
Michael Hoang
b15d3f783a checks/flash: support aarch64-linux 2025-03-24 19:13:20 +09:00
Michael Hoang
199bac0201 checks: disable all failing aarch64-linux checks 2025-03-24 12:50:57 +09:00
Michael Hoang
f0a07bbfae flash: don't allow partitioning time secrets 2025-01-21 11:13:51 +00:00
lassulus
b12abb208f checks.flash: add missing grub-install deps 2025-01-17 11:37:03 +00:00
Qubasa
02e148d2ea clan-flash: --keymap option also sets xserver keymap now. renamed 'clan flash apply' to clan 'flash write' 2024-10-11 20:51:59 +02:00
Qubasa
3e210f3338 checks: Fix flash test 2024-09-15 16:41:34 +02:00
Qubasa
2efa096d29 revert machine_id pull request 2024-09-06 21:38:50 +02:00
Qubasa
4171d5ea4e clanCore: init machine_id.nix with clan.core.machine.{id,diskId} 2024-09-06 18:05:40 +02:00
Jörg Thalheim
d365699991 use compliant machine name in installation test 2024-08-24 12:07:22 +02:00
Jörg Thalheim
fbea80b976 fix offline build of flash command 2024-05-29 12:45:50 +02:00
Jörg Thalheim
d002419ae7 drop global argparse flags
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
Qubasa
85fffb6047 nix flake update & disable checks.flash-installer 2024-05-15 22:54:38 +02:00
Qubasa
b1dd5c2832 Add --ssh-pubkey FILE argument 2024-05-14 15:41:15 +02:00
Jörg Thalheim
ede4d3f6e5 re-format with nixfmt 2024-03-17 19:48:49 +01:00
Jörg Thalheim
800bfd4653 add flash command 2024-03-07 14:13:11 +01:00