Johannes Kirschbauer
1a3346274e
Tests/fix: forbid dynamic invalidation
...
We cannot support dynamic hashInvalidation.
This means the invalidation can change *after* or *before* a 'vars generate'
But not during the generation itself. This causes heavy performance overhead.
Additionally this introduces a fixed-point-iteration (compare: fixed-point-iteration vs. fixed-point-function)
This iteration takes ~ 1min for two bare-bones machine with 1 generator (see: checks/data-mesher)
2025-04-22 20:19:15 +02:00
Johannes Kirschbauer
21e286b619
pkgs/generate-test-vars: speed up vars generation by precaching
2025-04-22 16:47:39 +02:00
Johannes Kirschbauer
dc284e1c40
vars: move overeager cache invalidation after one generator closure is regenrated.
...
Invalidation doesn't need to be done after each generator is executed.
We cannot interpolate values from other generators into another
generator. The generators are executed in order. The finalScript of each
generator stays constant.
After the complete closure is generated the caller of generate may
decide to invalidate the flake cache
2025-04-22 16:42:21 +02:00
Mic92
fe0d39bf11
Merge pull request 'Container-tests: add multi-container network' ( #3381 ) from netns into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3381
2025-04-22 12:11:27 +00:00
DavHau
1ca79610e0
container-tests: add multi-container network
2025-04-22 13:26:37 +02:00
Michael Hoang
121c72b288
Merge pull request 'Chore: restore ui lockfile from a27a2d5c12b8d6978c20fb9eb47c30d59153a76b' ( #3380 ) from hsjobeki/clan-core:ui-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3380
2025-04-22 10:41:20 +00:00
Johannes Kirschbauer
36872f4043
Fix: typescript problem with inventory indexing
2025-04-22 12:10:25 +02:00
renovate[bot]
7478bb47ad
chore(deps): update sops-nix digest to 5e3e92b
2025-04-22 08:50:11 +00:00
Johannes Kirschbauer
44358405e2
Chore: restore ui lockfile from a27a2d5c12
2025-04-22 09:48:46 +02:00
hsjobeki
4715c64425
Merge pull request 'Chore: disable renovate for the ui' ( #3375 ) from hsjobeki/clan-core:renovate-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3375
2025-04-21 18:52:16 +00:00
renovate[bot]
9d242e7058
chore(deps): update typescript-eslint monorepo to v8.31.0
2025-04-21 18:00:18 +00:00
renovate[bot]
c82070468b
chore(deps): update dependency eslint to v9.25.1
2025-04-21 17:20:16 +00:00
renovate[bot]
b445ad4b1c
chore(deps): update dependency @eslint/js to v9.25.1
2025-04-21 17:00:16 +00:00
Johannes Kirschbauer
3fbe60908f
Chore: disable renovate for the ui
...
We disable renovate until we have automated ui tests
Renovate broke our UI because we dont have test that would fail
2025-04-21 18:54:24 +02:00
Michael Hoang
417d5bd4c2
Merge pull request 'vars: improve messaging' ( #3372 ) from push-tktvqwxutpnx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3372
2025-04-21 16:11:41 +00:00
Michael Hoang
2c9b25624a
vars: improve messaging
2025-04-22 02:03:24 +10:00
Mic92
ce58aab21f
Merge pull request 'state-version: fix default of config.system.stateVersion' ( #3371 ) from test-vars-generate into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3371
2025-04-21 15:45:21 +00:00
Jörg Thalheim
a1a515e6d9
state-version: fix default of config.system.stateVersion
...
fixes https://git.clan.lol/clan/clan-core/issues/3360
2025-04-21 15:37:22 +00:00
hsjobeki
e1f9bc3c3e
Merge pull request 'Inventory/tags: init {nixos,darwin} tags' ( #3370 ) from hsjobeki/clan-core:tags-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3370
2025-04-21 15:27:13 +00:00
Johannes Kirschbauer
1bad82b5c0
Fix: manually define empty tags for testing
2025-04-21 17:17:56 +02:00
Johannes Kirschbauer
fc27c87e2b
Inventory/tags: init {nixos,darwin} tags
2025-04-21 16:43:15 +02:00
hsjobeki
a9c8f372f8
Merge pull request 'refactor(clanServices): add example of eval test' ( #3337 ) from hsjobeki/clan-core:clan-services-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3337
2025-04-21 14:19:26 +00:00
Johannes Kirschbauer
d7ce08d957
refactor: init hello-world module with unit tests (eval)
2025-04-21 16:10:05 +02:00
Johannes Kirschbauer
4cef5afde8
clanLib: init flakeModules for better testing
2025-04-21 16:10:05 +02:00
Johannes Kirschbauer
e21326054e
refactor(clanServices): add example of eval test
2025-04-21 16:10:05 +02:00
Mic92
29c735ffe2
Merge pull request 'test-vars-generate: override machines class yet' ( #3369 ) from test-vars-generate into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3369
2025-04-21 13:28:11 +00:00
Jörg Thalheim
8a47cc4e78
generate-test-vars: use shutil.rmtree instead of rm
...
More portable.
2025-04-21 15:18:14 +02:00
Jörg Thalheim
177dea9dff
generate-test-vars: improve caching and reduce number of overrides in base class
2025-04-21 15:18:14 +02:00
Jörg Thalheim
f69bfa7ea9
Machines: remove unused method argument from self.nix()
2025-04-21 15:18:14 +02:00
Jörg Thalheim
d12f7de9b4
generate-test-vars: use absolute paths in flake urls
...
flakes don't work with releative paths
2025-04-21 15:18:14 +02:00
Jörg Thalheim
180ee83e1d
rename vars-generate to generate-test-vars
2025-04-21 15:18:14 +02:00
Jörg Thalheim
59125a8f42
devshell/clan-cli: fix CLAN_PROVIDED_PACKAGES having too many packages
2025-04-21 15:18:14 +02:00
Jörg Thalheim
723d72255c
Reapply "remove nix_shell_legacy"
...
This reverts commit c5001f19fc .
2025-04-21 13:23:50 +02:00
hsjobeki
7c57b853e6
Merge pull request 'pkgs(vars-generator): init new package to generate vars' ( #3357 ) from hsjobeki/clan-core:patch-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3357
2025-04-21 11:13:49 +00:00
renovate[bot]
2371977c52
chore(deps): update dependency vitest to v3.1.2
2025-04-21 09:00:33 +00:00
renovate[bot]
ade9f3449c
chore(deps): update disko digest to 1770bf1
2025-04-21 08:50:11 +00:00
renovate[bot]
bb8e183a06
chore(deps): update data-mesher digest to 817a74e
2025-04-21 00:20:13 +00:00
hsjobeki
fcff27b835
Merge pull request 'chore(select/cache): rename 'prefetch' to 'invalidate_cache'' ( #3364 ) from hsjobeki/clan-core:vars-fixing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3364
2025-04-20 15:00:35 +00:00
Johannes Kirschbauer
1edeccc393
pkgs(vars-generator): init new package to generate vars
2025-04-20 14:08:52 +02:00
Johannes Kirschbauer
8efdfc6da1
chore(select/cache): rename 'prefetch' to 'invalidate_cache'
2025-04-20 13:34:52 +02:00
hsjobeki
7517a37167
Merge pull request 'machine/vars: expose result direclty via vars submodule; keep deployment.data alias for now' ( #3363 ) from hsjobeki/clan-core:vars-fixing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3363
2025-04-20 11:32:03 +00:00
Johannes Kirschbauer
9c3474f55f
machine/vars: expose result direclty via vars submodule; keep deployment.data alias for now
2025-04-20 13:23:01 +02:00
renovate[bot]
61b27af98d
chore(deps): update dependency eslint to v9.25.0
2025-04-18 18:40:14 +00:00
renovate[bot]
690de9972b
chore(deps): update dependency @eslint/js to v9.25.0
2025-04-18 18:20:14 +00:00
Michael Hoang
b494860275
Merge pull request 'vars: make wording nicer when multiple vars are found' ( #3351 ) from push-zrtnwqoxyzmz into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3351
2025-04-18 17:28:01 +00:00
Michael Hoang
f574eee5a3
vars: make wording nicer when multiple vars are found
2025-04-18 19:18:42 +02:00
hsjobeki
9846bf7cbe
Merge pull request 'Revert "remove nix_shell_legacy"' ( #3356 ) from hsjobeki/clan-core:patch-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3356
2025-04-18 12:58:57 +00:00
Johannes Kirschbauer
c5001f19fc
Revert "remove nix_shell_legacy"
...
This reverts commit f3512b853a .
2025-04-18 14:49:54 +02:00
pinpox
02720a503d
Merge pull request 'Fix conftest typo' ( #3355 ) from fix-conftest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3355
2025-04-18 12:35:31 +00:00
pinpox
0ac5fa4b8b
Fix conftest typo
2025-04-18 14:25:22 +02:00