Commit Graph

567 Commits

Author SHA1 Message Date
0590e4456a update ui-assets.nix
All checks were successful
assets1 / test (push) Has been skipped
checks-impure / test (push) Has been skipped
checks / test (push) Has been skipped
2023-10-29 18:55:11 +00:00
7a8eef0648 Fixed test_webui only failing in nix_sandbox also fixed test_create_flake
All checks were successful
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Successful in 1m57s
2023-10-29 19:51:35 +01:00
4209da96e9 Fixed test_webui only failing in nix_sandbox
Some checks failed
checks-impure / test (pull_request) Failing after 1m20s
checks / test (pull_request) Failing after 1m55s
2023-10-29 19:35:29 +01:00
e6675cb4d9
format pytest
Some checks failed
checks / test (pull_request) Failing after 1m18s
checks-impure / test (pull_request) Successful in 1m20s
2023-10-28 18:38:14 +02:00
5c9f826a23
fix frontend
Some checks failed
checks / test (pull_request) Failing after 1m13s
checks-impure / test (pull_request) Successful in 1m17s
2023-10-28 18:34:36 +02:00
032cdd731a Fixing test_clan_modules test
Some checks failed
checks / test (pull_request) Failing after 54s
checks-impure / test (pull_request) Successful in 1m17s
2023-10-27 23:39:02 +02:00
00ef406713 Updated to main branch. Removed cluttering asyncio and httpx log messages 2023-10-27 23:36:45 +02:00
410b7c1158 Updated to main branch 2023-10-27 19:26:51 +02:00
ce66ab036f next lint now throws at least an equal amount of errors as next build if not more. 2023-10-27 19:26:03 +02:00
40f4227413 Fixed missing FlakeName argument 2023-10-27 19:26:03 +02:00
eafc55f2e7 Fixing deadlock 2023-10-27 19:26:03 +02:00
f9b1a8fa89 Removing find_git_repo 2023-10-27 19:26:03 +02:00
0378e01cbb Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
4aac2012cf Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
674d84a43a Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
86790a6282 Commit only for debugging Container 2023-10-27 19:26:03 +02:00
b1d0129fc0 Commit only for debugging Container 2023-10-27 19:26:03 +02:00
efd201c7c5 nix fmt 2023-10-27 19:26:03 +02:00
a28f910e35 nix fmt 2023-10-27 19:26:03 +02:00
3f87ec851f All tests passing babyyy !! 2023-10-27 19:26:03 +02:00
c1b4fa6d55 nix fmt 2023-10-27 19:21:50 +02:00
3581e0c9a8 Fixing a multitude of tests 2023-10-27 19:21:50 +02:00
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
59393bb35e Working test_create_flake 2023-10-27 19:20:17 +02:00
26bfb793b1 Added ref to Qubasa-main in template/new-clan/flake.nix 2023-10-27 19:20:17 +02:00
a71584d9d2 Added clanName argument to clan-core.lib.builClan 2023-10-27 19:20:17 +02:00
d02acbe04b nix fmt 2023-10-27 19:19:45 +02:00
9f464dd14e Added ipdb as breakpoint console. Improved logging. 2023-10-27 19:19:45 +02:00
af3f04736b Improved logging messages. Added ClanError if flake create or machine create already exist 2023-10-27 19:18:45 +02:00
8482bc79f6 Secrets tests passing. nix fmt doesn't complain 2023-10-27 19:18:45 +02:00
03cabda2d4 Improved test logging with frame inspection 2023-10-27 19:18:45 +02:00
8cc1c2c4bd Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests 2023-10-27 19:18:45 +02:00
2ca54afe7f Added new type FlakeName 2023-10-27 19:18:45 +02:00
32e60f5adc Added flake_name:str argument everywhere, nix fmt doesn't complain anymore 2023-10-27 19:15:40 +02:00
fdcd7ad1d9 Updated to main 2023-10-27 19:15:11 +02:00
711c70d1f0 Added state directory. 2023-10-27 19:11:27 +02:00
fa5f39f226 API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem 2023-10-27 19:11:27 +02:00
79e707b044 fix updating multiple machines 2023-10-27 17:40:20 +02:00
b2c3b3840f move breakpoint checks out of default build
this allows to debug builds with breakpoints
2023-10-27 17:40:20 +02:00
3e4ad8ae1b cli/vms/create: fix trailing newlines in log output
All checks were successful
checks-impure / test (pull_request) Successful in 1m0s
checks / test (pull_request) Successful in 2m17s
2023-10-27 14:27:52 +02:00
0e5c7d2d13 api/machines: split off config validation into separate endpoint
All checks were successful
checks-impure / test (pull_request) Successful in 1m1s
checks / test (pull_request) Successful in 1m36s
- 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
25708d1a1a /api/clan_modules: init
All checks were successful
checks-impure / test (pull_request) Successful in 39s
checks / test (pull_request) Successful in 2m6s
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
bf176ad277 api/machines: allow importing extra modules
All checks were successful
checks-impure / test (pull_request) Successful in 36s
checks / test (pull_request) Successful in 2m6s
- 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
9f6e01671f PUT /machines/{name}/config; ensure is idempotent
All checks were successful
checks-impure / test (pull_request) Successful in 1m4s
checks / test (pull_request) Successful in 2m18s
2023-10-24 18:48:14 +01:00
588bde069f PUT api/machines/{name}/config: ensure only valid config is ever written
All checks were successful
checks-impure / test (pull_request) Successful in 1m0s
checks / test (pull_request) Successful in 2m24s
- 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
a539fb6dc6 machines: add endpoint machines/{name}/ verify
All checks were successful
checks-impure / test (pull_request) Successful in 58s
checks / test (pull_request) Successful in 8m48s
2023-10-24 16:31:37 +01:00
cd940abc4e clan config: refactor - reorder functions
All checks were successful
checks-impure / test (pull_request) Successful in 57s
checks / test (pull_request) Successful in 7m21s
2023-10-24 15:27:19 +01:00
7ddd624e8e clan-cli/shell.nix: rename repo_root -> source
All checks were successful
checks-impure / test (pull_request) Successful in 35s
checks / test (pull_request) Successful in 1m33s
2023-10-23 16:15:46 +01:00
a650d9c341 Merge pull request 'machines/install: call correct upload function' (#426) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 14s
checks-impure / test (push) Successful in 37s
checks / test (push) Successful in 1m34s
2023-10-14 14:06:59 +00:00
c82a4df9f9 machines/install: call correct upload function
All checks were successful
checks-impure / test (pull_request) Successful in 53s
checks / test (pull_request) Successful in 2m5s
2023-10-14 15:56:04 +02:00