Qubasa
efd201c7c5
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
a28f910e35
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
3f87ec851f
All tests passing babyyy !!
2023-10-27 19:26:03 +02:00
Qubasa
c1b4fa6d55
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
3581e0c9a8
Fixing a multitude of tests
2023-10-27 19:21:50 +02:00
Qubasa
d1c35301e3
Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test
2023-10-27 19:20:17 +02:00
Qubasa
59393bb35e
Working test_create_flake
2023-10-27 19:20:17 +02:00
Qubasa
26bfb793b1
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
Qubasa
a71584d9d2
Added clanName argument to clan-core.lib.builClan
2023-10-27 19:20:17 +02:00
Qubasa
d02acbe04b
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
9f464dd14e
Added ipdb as breakpoint console. Improved logging.
2023-10-27 19:19:45 +02:00
Qubasa
af3f04736b
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18:45 +02:00
Qubasa
8482bc79f6
Secrets tests passing. nix fmt doesn't complain
2023-10-27 19:18:45 +02:00
Qubasa
03cabda2d4
Improved test logging with frame inspection
2023-10-27 19:18:45 +02:00
Qubasa
8cc1c2c4bd
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Qubasa
2ca54afe7f
Added new type FlakeName
2023-10-27 19:18:45 +02:00
Qubasa
32e60f5adc
Added flake_name:str argument everywhere, nix fmt doesn't complain anymore
2023-10-27 19:15:40 +02:00
Qubasa
fdcd7ad1d9
Updated to main
2023-10-27 19:15:11 +02:00
Qubasa
711c70d1f0
Added state directory.
2023-10-27 19:11:27 +02:00
Qubasa
fa5f39f226
API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem
2023-10-27 19:11:27 +02:00
clan-bot
cc96fcf916
Merge pull request 'move breakpoint checks out of default build' ( #440 ) from Mic92-main into main
2023-10-27 15:42:28 +00:00
Jörg Thalheim
a7848de3a3
extending machines documentation
2023-10-27 17:40:20 +02:00
Jörg Thalheim
04836fa9e8
improve output of installer iso
...
Now it also includes local addresses.
2023-10-27 17:40:20 +02:00
Jörg Thalheim
79e707b044
fix updating multiple machines
2023-10-27 17:40:20 +02:00
Jörg Thalheim
b2c3b3840f
move breakpoint checks out of default build
...
this allows to debug builds with breakpoints
2023-10-27 17:40:20 +02:00
clan-bot
902a95d04d
Merge pull request 'docs: fix clan create command' ( #439 ) from Mic92-main into main
2023-10-27 12:30:32 +00:00
Jörg Thalheim
3e4ad8ae1b
cli/vms/create: fix trailing newlines in log output
2023-10-27 14:27:52 +02:00
Jörg Thalheim
ba50ce45f1
docs: fix clan create command
2023-10-27 13:28:34 +02:00
clan-bot
5d186d9fd4
Merge pull request 'api/machines: split off config validation into separate endpoint' ( #438 ) from DavHau-dave into main
2023-10-25 23:25:56 +00:00
DavHau
0e5c7d2d13
api/machines: split off config validation into separate endpoint
...
- This speeds up PUT /machines{name}/config as it doesn't do the expensive check anymore
- instead use PUT /machines/{name}/verify which allows a dry-run evaluation of a config which is passed without writing it to disk
2023-10-25 17:48:37 +01:00
clan-bot
ed87aefbad
Merge pull request '/api/clan_modules: init' ( #437 ) from DavHau-dave into main
2023-10-25 16:25:05 +00:00
DavHau
25708d1a1a
/api/clan_modules: init
...
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
clan-bot
a6f51d4dae
Merge pull request 'api/machines: allow importing extra modules' ( #436 ) from DavHau-dave into main
2023-10-25 15:39:00 +00:00
DavHau
bf176ad277
api/machines: allow importing extra modules
...
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config
Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
Mic92
1d45d493ef
Merge pull request 'add container test driver' ( #435 ) from container into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/435
2023-10-25 13:16:13 +00:00
Jörg Thalheim
5753f32930
add container test driver
2023-10-25 13:16:13 +00:00
clan-bot
f7031bdbdb
Merge pull request 'PUT /machines/{name}/config; ensure is idempotent' ( #434 ) from DavHau-dave into main
2023-10-24 17:50:51 +00:00
DavHau
9f6e01671f
PUT /machines/{name}/config; ensure is idempotent
2023-10-24 18:48:14 +01:00
clan-bot
362e36c0b9
Merge pull request 'PUT api/machines/{name}/config: ensure only valid config is ever written' ( #433 ) from DavHau-dave into main
2023-10-24 17:43:37 +00:00
DavHau
588bde069f
PUT api/machines/{name}/config: ensure only valid config is ever written
...
- add CLAN_MACHINE_SETTINGS_FILE variable to temporarily override the machine settings file
- do a dry-run evaluation first with the new config before persisting it.
2023-10-24 18:40:48 +01:00
clan-bot
c9ef7d6e80
Merge pull request 'machines: add endpoint machines/{name}/ verify' ( #432 ) from DavHau-dave into main
2023-10-24 15:34:05 +00:00
DavHau
a539fb6dc6
machines: add endpoint machines/{name}/ verify
2023-10-24 16:31:37 +01:00
clan-bot
a1a9c73660
Merge pull request 'clan config: refactor - reorder functions' ( #431 ) from DavHau-dave into main
2023-10-24 14:35:34 +00:00
DavHau
cd940abc4e
clan config: refactor - reorder functions
2023-10-24 15:27:19 +01:00
clan-bot
2a22348373
Merge pull request 'clan-cli/shell.nix: rename repo_root -> source' ( #429 ) from DavHau-dave into main
2023-10-23 15:20:15 +00:00
DavHau
7ddd624e8e
clan-cli/shell.nix: rename repo_root -> source
2023-10-23 16:15:46 +01:00
clan-bot
65c7867542
Merge pull request 'Automatic flake update - 2023-10-23T00:00+00:00' ( #428 ) from flake-update-2023-10-23 into main
2023-10-23 00:02:46 +00:00
Clan Merge Bot
12e210ad12
update flake lock - 2023-10-23T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13)
→ 'github:nix-community/disko/4122a18340094151d7911e838237ec7627f0d0c5' (2023-10-22)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15)
→ 'github:Mic92/sops-nix/30a0ba4a20703b4bfe047fe5def1fc24978e322c' (2023-10-22)
2023-10-23 00:00:17 +00:00
clan-bot
c4e98667ef
Merge pull request 'Automatic flake update - 2023-10-16T00:00+00:00' ( #427 ) from flake-update-2023-10-16 into main
2023-10-16 00:02:26 +00:00
Clan Merge Bot
cd4c14b82e
update flake lock - 2023-10-16T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/cde886a1c97ef2399b4f91409db045785020291f' (2023-10-05)
→ 'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/d7380c38d407eaf06d111832f4368ba3486b800e' (2023-10-08)
→ 'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/720bd006d855b08e60664e4683ccddb7a9ff614a' (2023-09-27)
→ 'github:numtide/treefmt-nix/aae39f64f5ecbe89792d05eacea5cb241891292a' (2023-10-15)
2023-10-16 00:00:17 +00:00