Jörg Thalheim
e25cd73e99
installation: use clan-cli-full so that nix doesn't try to evaluate deps
2025-04-09 09:52:56 +00:00
Jörg Thalheim
4e9c214c68
checks/installation: move updating hardware configuration to it's own test
...
for some reason those are very slow. Moving them to their own test
breaks down the critical path.
2025-04-09 09:52:56 +00:00
Jörg Thalheim
164b1a6c68
installation: speed up by installing to localhost
...
we test other types of installation already in nixos-anywhere so we can
speed up this test quite a bit by not having a seperate machine to
install to.
2025-04-09 09:36:46 +00:00
Johannes Kirschbauer
e37f16f47a
treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'
2025-04-09 11:32:46 +02:00
hsjobeki
1eb5423b6b
Merge pull request 'pkgs/cli: Move the test folder inside the python module' ( #2973 ) from kenji/clan-core:split-testing-up into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2973
2025-04-08 20:06:59 +00:00
Jörg Thalheim
1ba872f75f
installation: use ip addresses to decrease flakiness
2025-04-08 21:19:47 +02:00
Jörg Thalheim
d45deff922
replace original installation test with installation-without-system
2025-04-08 20:41:31 +02:00
Jörg Thalheim
a4781e218c
flash: test existing mount with spaces
2025-04-08 20:16:23 +02:00
Johannes Kirschbauer
69c717ae1f
Tests: reconfigure pytest test folder after moving it into clan_cli
2025-04-08 20:13:13 +02:00
DavHau
ba69a8a860
inventory tests: generate vars for dummy test
2025-04-08 21:06:23 +07:00
DavHau
7abaee1398
data-mesher: generate vars for test vis update-vars.py
2025-04-08 20:54:11 +07:00
DavHau
607a7fedd4
data-mesher: use inventory test framework for vars
2025-04-08 20:54:11 +07:00
DavHau
26e97c066c
inventory tests: add vars support
...
- Add support for leading vars
- Extend test to test for vars support
- Improve update-vars.py to take test name as argument
2025-04-08 20:54:11 +07:00
Jörg Thalheim
681d28430b
inventory: don't loose string context of directory
2025-04-08 13:50:27 +02:00
Jörg Thalheim
99bcd3f797
installation: use networkd everywhere
2025-04-08 10:33:48 +02:00
DavHau
a8e73f0260
inventory tests: generalize update-vars.py
...
... and move to pkgs/scripts/
2025-04-08 07:45:30 +00:00
DavHau
99f8bcc13c
data-mesher: use new test framework
2025-04-07 20:43:19 +07:00
DavHau
11cd91e882
inventory tests: improve framework to set better defaults
2025-04-07 19:58:53 +07:00
DavHau
89bfe4c95f
inventory tests: set machine.name automatically
2025-04-03 17:29:07 +07:00
DavHau
c411e8bddc
remove definitions of clan.core.settings.machine.name on tests
2025-04-03 17:29:07 +07:00
DavHau
e540b82dc6
remove default for clan.core.settings.machine.name and make readOnly
...
There is not reason that there needs to be a default. Machines are usually defined as an attrset, so there is no reason to have a default.
Also make this readOnly as we never want to override it.
2025-04-03 17:29:07 +07:00
DavHau
8479e6c5c3
inventory test framework: init
...
Add nixos test module checks/lib/test-inventory-nix
accepts new option `inventory` and creates machines accordingly with correct imports
2025-03-31 13:39:23 +07:00
Johannes Kirschbauer
a3b636aab3
fix(tests): include 'lib' always as a whole
2025-03-30 15:29:05 +02:00
brianmcgee
ed69e04bd9
Merge pull request 'data-mesher-module' ( #3086 ) from data-mesher-module into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3086
2025-03-29 14:07:42 +00:00
Pablo Ovelleiro Corral
8ed186ce55
data-mesher: init module
...
Co-authored-by: Brian McGee <brian@bmcgee.ie >
2025-03-29 13:49:41 +00:00
Qubasa
0afbf9dd45
checks/installation-without-system: modify to install through normal user instead of root
2025-03-26 18:37:31 +01:00
Michael Hoang
b15d3f783a
checks/flash: support aarch64-linux
2025-03-24 19:13:20 +09:00
Michael Hoang
711ccc4d8a
checks/installation-without-system: add aarch64-linux facter.json
...
This doesn't fix the test on `aarch64-linux` but brings it inline with
where `test-installation` fails.
2025-03-24 18:37:46 +09:00
Michael Hoang
82509e9d17
checks: don't build test machines as they may be system-less now
2025-03-24 17:27:36 +09:00
Michael Hoang
bd9078e14e
checks/backups: don't hardcode system
2025-03-24 17:26:48 +09:00
Michael Hoang
199bac0201
checks: disable all failing aarch64-linux checks
2025-03-24 12:50:57 +09:00
Jörg Thalheim
a4ded2fd70
tests/installer/client: increase RAM
2025-03-22 17:07:52 +01:00
Michael Hoang
62d9a325a2
checks: use pkgs.nixVersions.latest until pkgs.nix is 2.26+
2025-03-20 15:52:13 +09:00
Michael Hoang
75aecf66db
checks: ensure updating hardware config doesn't require system
2025-03-19 15:28:52 +09:00
Jörg Thalheim
88a516855a
work around in installation test by using newer nix version
2025-03-18 13:29:28 +01:00
Jörg Thalheim
fbac7439bd
tests: fix warning about invalid nix registry
2025-03-18 13:29:28 +01:00
Jörg Thalheim
59cca52f55
actually hide test-fixture from user
...
if we actually want to avoid the dependency on this facter json, we
cannot expose this as a flake input because nix flake archive will have
to download this on each deployment step.
2025-03-11 12:23:59 +00:00
Jörg Thalheim
fc0429ab0c
checks/morph: after flake update, increase memory size to 2048
2025-03-11 09:46:54 +00:00
Michael Hoang
685effd22b
checks: use facter.json from external test-fixtures repo
2025-03-10 12:30:03 +09:00
Michael Hoang
7608bab20a
checks: don't expose systems that can't be evaluated
2025-03-10 11:58:32 +09:00
Michael Hoang
2388654325
checks: test installation on system-less systems
2025-03-10 11:58:32 +09:00
Michael Hoang
0ec2797441
checks/installation: use test-flake instead of self
2025-03-10 11:58:32 +09:00
Johannes Kirschbauer
fb883e54a6
Inventory: rename internal inventory toplevel attribute to 'inventoryClass'
2025-03-07 12:30:29 +00:00
DavHau
74b30cca9f
switch to nixpkgs hosteded by cache.nixos.org
...
take 2 on https://git.clan.lol/clan/clan-core/pulls/2921
2025-03-07 07:20:07 +00:00
Michael Hoang
35455afeb8
nixos/clan: rename setDefaults to enableRecommendedDefaults
2025-03-05 03:37:41 +00:00
Johannes Kirschbauer
8a04ee6d20
Tests: migrate backup tests to use inventory
2025-03-03 02:28:03 +00:00
lassulus
300aaa48e7
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
Michael Hoang
4e2ae0f9f6
cli: add morph command
2025-02-16 21:31:28 +07:00
Jörg Thalheim
e27605d3a0
fix system.stateVersion
2025-02-14 12:22:26 +07:00
Johannes Kirschbauer
6f41118be4
Add missing test dependency
2025-02-08 10:48:57 +07:00