Commit Graph

430 Commits

Author SHA1 Message Date
clan-bot
78a96470b3 Update pinned clan-core for checks 2025-05-13 11:55:59 +00:00
clan-bot
60238b11f0 Update pinned clan-core for checks 2025-05-13 10:05:02 +00:00
clan-bot
d968b647ae Update pinned clan-core for checks 2025-05-13 09:10:09 +00:00
pinpox
df953aef7f Fix warning 2025-05-12 15:54:50 +02:00
pinpox
3c35efa317 disable PAM for SSH check 2025-05-12 15:54:50 +02:00
pinpox
70a991f4f2 migrate admin module 2025-05-12 15:54:49 +02:00
Jörg Thalheim
4a64ce2481 checks/mumble: disable on x86_64-linux for now 2025-05-12 15:32:52 +02:00
Jörg Thalheim
ffeaf2ee1f checks/mumble: make delays between keyboard clicks more robust 2025-05-12 15:10:29 +02:00
Jörg Thalheim
51fb28c04c morph: don't depend on clan-core 2025-05-12 13:56:10 +02:00
Jörg Thalheim
028f3ee8df checks/backup: depend on pinned clan core 2025-05-12 13:52:21 +02: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
Mic92
5cd8c3729a Merge pull request 'Data-mesher: don't set owner for public vars' (#3571) from misc-fixes-2 into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3571
2025-05-12 10:27:05 +00:00
Jörg Thalheim
5d1b49fbb6 move single dont-depend-on-repo-root check into checks
Doesn't seem to be a pattern yet with a single check.
2025-05-12 12:06:05 +02:00
Johannes Kirschbauer
b71e5378d6 Refactor(inventory/modules): add support for local clan.modules and migrate all checks 2025-05-08 17:17:46 +02:00
hsjobeki
f6b0b5ada5 Merge pull request 'API(cli): add method to Flake class to allow calling nix functions' (#3502) from hsjobeki/clan-core:improvements-2 into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3502
2025-05-05 20:16:28 +00:00
Johannes Kirschbauer
dfa5a228e8 feat(clanLib): init evalServiceSchema 2025-05-05 21:55:29 +02:00
Johannes Kirschbauer
2d5e337f81 tests: add error prefix for json schema in checks 2025-05-05 21:46:16 +02:00
Jörg Thalheim
4ef664a496 test vars permissions in dummy-test 2025-05-04 14:59:22 +02:00
Jörg Thalheim
aa50a3e985 morph: speed up test by enabling useNixStoreImage 2025-05-04 07:29:31 +02:00
DavHau
e2d1ca0439 ci-performance: remove self reference from installation test 2025-04-30 15:53:18 +07:00
DavHau
1e8864b9ec ci performance: add check to ensure nothing depends on the whole repo
Since this project is an ever growing monorepo, having derivations depending on the whole repo leads to bad CI performance, as the cache is busted on every commit.

-> We never want any derivations depend on the whole repo

...except: the test that tests that nothing depends on the whole repo, which is added by this commit.

For now only add this check to packages to allow contributors to build it locally.
We might want to add it to the CI later once all occurrences are fixed.
2025-04-30 13:17:33 +07:00
Johannes Kirschbauer
662787f96e Checks: add json-compat check wrapper to ensure all clan.modules stay json-compatible 2025-04-29 15:31:02 +02:00
DavHau
c97303cfab clan-app: add basic smoke test using OCR + nixos tests 2025-04-24 18:17:09 +07: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
DavHau
8b00edad4a inventory tests: use containers by default 2025-04-23 19:49:02 +07:00
a-kenji
6531de6c07 clanModules/syncthing: Improve vars 2025-04-23 10:50:45 +00:00
kenji
2d8847337c Merge pull request 'syncthing: Migrate from facts to vars' (#3388) from kenji/clan-core:syncthing into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3388
2025-04-23 06:25:12 +00:00
a-kenji
356b26e690 chore: treefmt 2025-04-23 08:00:16 +02:00
a-kenji
08590281f2 checks/syncthing: Use default settings 2025-04-23 07:39:55 +02:00
a-kenji
f591a3ffe5 checks/syncthing: Remove nixos tests 2025-04-23 07:38:36 +02:00
DavHau
1ca79610e0 container-tests: add multi-container network 2025-04-22 13:26:37 +02:00
Jörg Thalheim
3a1b49eaf8 syncthing: migrate to new inventory system 2025-04-22 09:45:37 +02:00
Jörg Thalheim
1049cc6edd mumble: fix certificate generator
no idea how this ever worked before.
2025-04-16 18:49:24 +02:00
Jörg Thalheim
16752e3e11 mumble: migrate to inventory 2025-04-16 18:49:24 +02:00
Jörg Thalheim
ec738fac30 impure-checks: limit number of workers to number of tests 2025-04-16 15:05:59 +02:00
Johannes Kirschbauer
75932b7b7a fixup: update commen in inventory example test 2025-04-16 10:02:20 +02:00
Johannes Kirschbauer
75c8541a8d tests(clan): move test-inventory.nix to clanLib. And name it 'makeTestClan'
Exposing the function via clanLib makes it more accessible to clan modules
This allows each module to define its own test without needing to depend on any fileSystem path assumptions in the clan-core repo
2025-04-15 18:17:40 +02:00
Michael Hoang
11ed2f86d3 checks: test-backups -> backups 2025-04-14 15:39:25 +02:00
Michael Hoang
fe523e928d treewide: switch back to pkgs.nix 2025-04-12 13:15:53 +02:00
Johannes Kirschbauer
65e1cf5b54 fixup(checks/inventory): remove 'self' from clan settings; doesn't work in the nixos tests yet.
We need to reasearch why that is the case.
Removing the option for now to prevent weird bugs
2025-04-12 12:41:11 +02:00
Johannes Kirschbauer
9253a7502b chore(checks): rename data-mesher test attributes 2025-04-11 13:53:04 +02:00
Johannes Kirschbauer
1aa543da67 chore(checks/inventory): doogfood 'clan' flake-parts module into the test, instead of custom inventory logic 2025-04-11 13:52:23 +02:00
RTUnreal
3e6518b0fc checks: fix shellcheck errors 2025-04-09 19:44:00 +02:00
Johannes Kirschbauer
61d1cf32ab chore(clan/pytest): discover all test files in the tree 2025-04-09 18:54:57 +02:00
Johannes Kirschbauer
b0fb0752e9 fix(checks/data-mesher): format, dont pass a duplicate data-mesher module 2025-04-09 18:03:04 +02:00
Johannes Kirschbauer
24137336f1 chore(checks/inventory): regenerate test vars 2025-04-09 17:32:29 +02:00
Johannes Kirschbauer
c67481c474 fix(checks/inventory): use buildClan instead of buildInventory 2025-04-09 17:31:35 +02:00
Mic92
5705200406 Merge pull request 'speedup morph test' (#3266) from morph-test into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3266
2025-04-09 15:28:20 +00:00
hsjobeki
963248ccff Merge pull request 'treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'' (#3263) from hsjobeki/clan-core:lib-cleanup into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3263
2025-04-09 15:10:42 +00:00
Jörg Thalheim
92ac257999 speedup morph test 2025-04-09 17:06:34 +02:00