Commit Graph

1017 Commits

Author SHA1 Message Date
e139628fbd Improved ClanURI 2023-12-14 18:21:10 +01:00
c90053834a Reworked machines list, and history commands 2023-12-14 18:21:10 +01:00
9d952ba534 Fixed pytest 2023-12-14 18:21:10 +01:00
a1ebe663ce Fixing pytest 2023-12-14 18:21:10 +01:00
b00f4554d8 Improved history command 2023-12-14 18:21:10 +01:00
771c0e43ca Moved history to own subcommand 2023-12-14 18:21:10 +01:00
8e84f7997a vms/run: remove superfluous command
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m3s
2023-12-14 15:45:45 +01:00
7b5fffdaf4 vms/run: fix virtual machines spawning multiple windows
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m1s
2023-12-14 08:55:12 +01:00
30d55fc67e Used inspect commands in vm-manager
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m3s
2023-12-09 00:45:12 +01:00
030d31c8b4 Removed democlan dependency
All checks were successful
checks-impure / test (pull_request) Successful in 1m12s
checks / test (pull_request) Successful in 1m59s
2023-12-09 00:23:19 +01:00
b319db0df9 Fixed democlan dep
Some checks failed
checks-impure / test (pull_request) Failing after 16s
checks / test (pull_request) Failing after 1m59s
2023-12-09 00:21:33 +01:00
136246de79 Removed democlan dependency
Some checks failed
checks-impure / test (pull_request) Failing after 16s
checks / test (pull_request) Failing after 1m57s
2023-12-09 00:19:30 +01:00
d4b8cef242 Added clan flakes inspect command. Improved ClanURI. Added democlan as dependency in flake.nix 2023-12-09 00:09:21 +01:00
9f4ab67fc2 Merge pull request 'clanCore: Fixed missing type null for clanIcon' (#634) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m8s
checks / test (push) Successful in 2m0s
2023-12-08 18:33:58 +00:00
d6052c3497 clanCore: Fixed missing type null for clanIcon 2023-12-08 19:27:58 +01:00
8340d8f5f2 clan-cli Machines: implement eval/build-cache
All checks were successful
checks-impure / test (pull_request) Successful in 1m15s
checks / test (pull_request) Successful in 2m24s
2023-12-08 19:09:29 +01:00
dec431e69f backups: support services for restore 2023-12-08 19:09:29 +01:00
57bded996b Merge pull request 'move clanName into nixos machine configuration' (#630) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 18s
checks-impure / test (push) Successful in 1m11s
checks / test (push) Successful in 2m0s
2023-12-08 15:21:59 +00:00
9704b5bd6f disable tty0 when using wayland
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m5s
we don't vga output and use our serial console instead
2023-12-08 16:19:09 +01:00
4aa60317fa move clanName into nixos machine configuration 2023-12-08 15:05:56 +00:00
4b9635c706 move clanName into nixos machine configuration
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m11s
2023-12-08 16:03:29 +01:00
c22280b864 Merge pull request 'add wayland option' (#628) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 23s
checks-impure / test (push) Successful in 1m10s
checks / test (push) Successful in 2m1s
2023-12-08 14:16:43 +00:00
1496f45fe2 prefix nixpkgs# explicitly in nix_shell
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 2m3s
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
f6d4c721c4 vms/run: split large vm run method into smaller ones 2023-12-08 15:09:48 +01:00
c4a8193047 add wayland option 2023-12-08 14:13:47 +01:00
fca3cff4bf Merge pull request 'make vm inspect non-async' (#627) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 19s
checks-impure / test (push) Successful in 1m6s
checks / test (push) Successful in 2m1s
2023-12-08 13:02:02 +00:00
a98b5e205f make vm inspect non-async
All checks were successful
checks-impure / test (pull_request) Successful in 1m25s
checks / test (pull_request) Successful in 2m18s
2023-12-08 13:59:24 +01:00
3c04d14917 Merge pull request 'Added windows folder' (#624) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 19s
checks-impure / test (push) Successful in 1m6s
checks / test (push) Successful in 1m59s
2023-12-08 12:49:07 +00:00
ae8029e560 clan_cli: URI parser now only has HTTP and FILE. Also clan:///home/user or clan://~/Downloads is supported
All checks were successful
checks-impure / test (pull_request) Successful in 1m28s
checks / test (pull_request) Successful in 2m5s
2023-12-08 13:46:21 +01:00
2c1533b7e2 Merge pull request 'vms/run: rename flake_url to flake-url' (#623) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 23s
checks-impure / test (push) Successful in 1m8s
checks / test (push) Successful in 1m59s
2023-12-08 12:42:59 +00:00
b8b4bedfdb vms/run: rename flake_url to flake-url
All checks were successful
checks-impure / test (pull_request) Successful in 1m28s
checks / test (pull_request) Successful in 2m4s
2023-12-08 13:40:28 +01:00
7c6902f70a Replaced Status with checkbox 2023-12-08 12:18:55 +01:00
edb503a760 Merge pull request 'always provide a clan_flake_toplevel value' (#620) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 24s
checks-impure / test (push) Successful in 1m6s
checks / test (push) Successful in 1m57s
2023-12-08 11:12:57 +00:00
48d7d5f38c vms/run/inspect: also make it more type-safe
All checks were successful
checks-impure / test (pull_request) Successful in 1m5s
checks / test (pull_request) Successful in 2m1s
nix will show proper error messages when it cannot find a flake.
2023-12-08 12:08:48 +01:00
31196e3d3c vms/run: make flake field option always have a value 2023-12-08 12:08:45 +01:00
72327093c2 Merge pull request 'make cli options more type safe using a dataclass' (#619) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 19s
checks-impure / test (push) Successful in 1m13s
checks / test (push) Successful in 1m58s
2023-12-08 10:33:44 +00:00
fa0a7ce122 make cli options more type safe using a dataclass
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 2m1s
2023-12-08 11:31:29 +01:00
01291c55c1 Merge pull request 'make sure that flake url is always set in the cli' (#618) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 21s
checks-impure / test (push) Successful in 1m7s
checks / test (push) Successful in 2m0s
2023-12-08 10:07:50 +00:00
f261578187 make sure that flake url is always set in the cli
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 2m4s
2023-12-08 11:05:22 +01:00
cf68bd41d6 backups: implement list/create and dry-run restore
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 2m0s
2023-12-07 18:23:22 +01:00
45e9ab45f7 backups: implement list the easy way
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 1m57s
2023-12-07 13:22:41 +01:00
807b53c71b modernize code with ruff
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 2m10s
2023-12-06 17:13:58 +01:00
8ea149de07 re-add 'U' ruff type category
This should have been not removed
2023-12-06 17:11:17 +01:00
7bc54cb524 get rid of task_manager
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 1m36s
2023-12-06 15:53:23 +01:00
0eb2f2c708 Merge pull request 'clan_cli: ClanURI fixed non executing tests' (#611) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 20s
checks-impure / test (push) Successful in 1m5s
checks / test (push) Successful in 1m59s
2023-12-06 12:41:16 +00:00
b48fb10f86 clan_cli: ClanURI fixed non executing tests
All checks were successful
checks-impure / test (pull_request) Successful in 1m25s
checks / test (pull_request) Successful in 2m17s
2023-12-06 13:38:22 +01:00
87b664d3b1 Merge pull request 'clan_cli: Remodeled ClanURI parser' (#610) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 16s
checks-impure / test (push) Successful in 1m7s
checks / test (push) Successful in 1m59s
2023-12-05 17:19:42 +00:00
cb984f6d43 clan_cli: Remodeled ClanURI parser
All checks were successful
checks-impure / test (pull_request) Successful in 1m25s
checks / test (pull_request) Successful in 2m16s
2023-12-05 18:16:51 +01:00
22d5a61a51 clan_cli: Remodeled ClanURI parser 2023-12-05 18:08:27 +01:00
d694ef9bad Merge pull request 'Improved desktop file installation' (#609) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 21s
checks-impure / test (push) Successful in 1m6s
checks / test (push) Successful in 1m59s
2023-12-05 15:20:03 +00:00
63c820ed86 clan_cli: Added ClanURI class parser
All checks were successful
checks-impure / test (pull_request) Successful in 1m25s
checks / test (pull_request) Successful in 2m17s
2023-12-05 16:17:15 +01:00
c701b43edb Merge pull request 'clan-vm-manager: Fixed assets folder not included' (#606) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m7s
checks / test (push) Successful in 1m58s
2023-12-04 18:26:51 +00:00
0b772668a8 Merge pull request 'backups: add clanCore backup & clan borgbackup module' (#605) from lassulus-backups into main
All checks were successful
assets1 / test (push) Successful in 21s
checks-impure / test (push) Successful in 1m8s
checks / test (push) Successful in 2m0s
2023-12-04 16:51:33 +00:00
e772d29f44 implement backup cli for borgbackup
All checks were successful
checks-impure / test (pull_request) Successful in 1m4s
checks / test (pull_request) Successful in 2m33s
2023-12-04 17:47:23 +01:00
d7b1a9f959 clan-vm-manager: Fixed assets folder not included 2023-12-04 16:56:42 +01:00
82fb1c36fe clan-vm-manager: Preserved selection on view change
All checks were successful
checks-impure / test (pull_request) Successful in 1m26s
checks / test (pull_request) Successful in 2m3s
2023-12-04 14:29:05 +01:00
bdcf5dbe8b
extend clan history model 2023-12-02 16:16:38 +01:00
583311fcda nix fmt
Some checks failed
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Failing after 1m57s
2023-12-01 15:46:27 +01:00
3db73d3396 Added better error handling in --flake argument 2023-12-01 15:45:05 +01:00
e46d13d626 remove outdated comment
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 1m57s
2023-12-01 16:11:31 +07:00
261322fae8 flake history: make operations atomic
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 1m38s
2023-12-01 14:00:15 +07:00
b5afb3f9c0 clan-cli: also package mimetypes
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 1m36s
2023-11-30 14:31:37 +01:00
4fd84d1c48 disallow variable shadowing 2023-11-30 14:31:37 +01:00
780ffb9c8f make type checking more strict 2023-11-30 14:31:37 +01:00
373fc83160 add option to extend path for generator
All checks were successful
checks-impure / test (pull_request) Successful in 1m9s
checks / test (pull_request) Successful in 2m6s
2023-11-30 14:15:40 +01:00
31ce8f7357 fix build
All checks were successful
checks-impure / test (pull_request) Successful in 1m8s
checks / test (pull_request) Successful in 1m59s
2023-11-30 11:08:50 +01:00
ee705c5976 task-manager: spam select() without timeout 2023-11-30 10:57:58 +01:00
d0362bb757 error if age key cannot be decoded 2023-11-30 10:57:58 +01:00
3ae1c9cf75 integegrate remote-viewer instead of spicy
Some checks failed
checks-impure / test (pull_request) Successful in 1m24s
checks / test (pull_request) Failing after 2m37s
2023-11-29 16:07:12 +01:00
f1b223d0a1 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
26e3e3872c enable more linting 2023-11-29 13:29:45 +00:00
f3b3aba6c5 run_upload_secrets: don't swallow stdout output
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m12s
2023-11-29 11:38:01 +01:00
977bbbbd59 install: fix secrets upload 2023-11-29 11:38:01 +01:00
02a6162a1d test: add ipv6 example without port 2023-11-29 11:38:01 +01:00
179d1ed2c6 add sops command to sync keys with secrets 2023-11-29 11:34:19 +01:00
4ace326aeb add dummy backups cli 2023-11-28 13:23:48 +01:00
303df741e9 allow ipv6 addresses in deployment addresses
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m17s
2023-11-28 10:05:45 +01:00
d033f523b8 openapi: put a static version into the repository
All checks were successful
checks-impure / test (pull_request) Successful in 1m9s
checks / test (pull_request) Successful in 1m43s
This avoids a lot of rebuilds and we can also track api changes better
2023-11-24 15:56:27 +01:00
884c200061 rename vms create to vms run
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m51s
2023-11-24 15:00:08 +01:00
ce1ad9f8c2 clan-cli: drop unused mypy overrides for gi
All checks were successful
checks-impure / test (pull_request) Successful in 2m8s
checks / test (pull_request) Successful in 3m46s
2023-11-23 18:01:40 +01:00
81512b99a3 start spice in background
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 2m50s
2023-11-23 17:56:05 +01:00
63a74ced2e spice: use unix socket instead of tcp
All checks were successful
checks-impure / test (pull_request) Successful in 1m24s
checks / test (pull_request) Successful in 3m8s
2023-11-23 17:34:06 +01:00
c701ab7514 fake_deal: fixup call wrapper 2023-11-23 17:32:37 +01:00
8a0ecd802e switch to spice for graphical vms
All checks were successful
checks-impure / test (pull_request) Successful in 1m11s
checks / test (pull_request) Successful in 2m49s
2023-11-23 16:59:07 +01:00
47d0dd297f vms: start with cpu=max
This unlocks some cpu extensions
2023-11-23 16:55:36 +01:00
b8f5c13553 clan-vm-manager: simplify shellHook 2023-11-23 15:30:44 +01:00
f68c10a008 clan-vm-manager: add nix package 2023-11-23 15:30:44 +01:00
2e54575474 clan-cli: drop dependency on deal 2023-11-23 15:03:46 +01:00
9eed5a7fec drop glade backup file 2023-11-23 15:03:46 +01:00
a838c4da17 mv clan-vm-manager to its own package 2023-11-23 15:03:46 +01:00
832c41df7e Added gtk demo app 2023-11-23 15:03:38 +01:00
17c71d2f40 Added more deal tests 2023-11-21 16:44:38 +01:00
7d3ccb23ea drop desktop item from cli
All checks were successful
checks-impure / test (pull_request) Successful in 1m10s
checks / test (pull_request) Successful in 2m43s
2023-11-21 15:26:36 +01:00
8759e5a049 drop dependency on fastapi in the cli
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m57s
2023-11-21 15:09:18 +01:00
f9f2f7bb65 drop join from cli
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 3m1s
2023-11-21 14:25:51 +01:00
c901133a81 Merge pull request 'schemathesis: Add as runnable application instead of library to resolve httpx dependency collision issue' (#543) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 25s
checks-impure / test (push) Successful in 1m18s
checks / test (push) Successful in 2m56s
2023-11-21 12:49:38 +00:00
7afaaf8c5a get rid of pydantic in cli 2023-11-21 12:48:35 +00:00
48f0381fb5 schemathesis: Add as runnable application instead of library to resolve httpx dependency collision issue
All checks were successful
checks-impure / test (pull_request) Successful in 4m24s
checks / test (pull_request) Successful in 4m41s
2023-11-20 17:14:12 +01:00
9f63f725d3 history: fix: store entries only once
All checks were successful
checks-impure / test (pull_request) Successful in 1m39s
checks / test (pull_request) Successful in 2m55s
2023-11-20 11:39:00 +07:00
c46638f589 api/flake/history: implement review requests
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 2m48s
2023-11-17 18:26:55 +07:00
bf2b8b4cca Merge pull request 'hide root from api schema' (#529) from hsjobeki-hsjobeki into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m35s
checks / test (push) Successful in 2m48s
2023-11-17 11:07:11 +00:00
f07fb05220
hide root from api schema
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m50s
2023-11-17 12:03:40 +01:00
64649ff7a9 api/flake/list_history: init
All checks were successful
checks-impure / test (pull_request) Successful in 2m3s
checks / test (pull_request) Successful in 3m8s
Add an api endpoint to list the history of clan flakes that have been interacted with

Also add `clan flake list`
2023-11-17 17:56:14 +07:00
02c3222f6b
hide root from api schema
Some checks failed
checks-impure / test (pull_request) Successful in 2m0s
checks / test (pull_request) Failing after 3m47s
2023-11-17 11:54:17 +01:00
999ad67277 api/flake/add: init
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m3s
Adds an endpoint to memoize clans.
clan flakes can be added to the history either via the endpoint or by executing `clan flakes add`
2023-11-17 17:05:15 +07:00
978d9efd7e secrets/generate-private-key: just create parent opportunistically
All checks were successful
checks-impure / test (pull_request) Successful in 1m30s
checks / test (pull_request) Successful in 2m2s
2023-11-16 13:19:12 +01:00
12930b4057
clan_cli: create key directory
All checks were successful
checks / test (pull_request) Successful in 1m3s
checks-impure / test (pull_request) Successful in 1m50s
2023-11-15 23:15:12 +01:00
5640b84433 machines.update: remove redundant flake argument
All checks were successful
checks-impure / test (pull_request) Successful in 1m55s
checks / test (pull_request) Successful in 2m28s
2023-11-15 21:57:08 +01:00
e185ab971c Merge pull request 'bump nix-unit' (#517) from joerg-ci into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m33s
checks / test (push) Successful in 2m4s
2023-11-15 15:51:47 +00:00
1f558954af
drop schemathesis
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m48s
This creates conflicting python packages when included
2023-11-15 16:48:46 +01:00
1ea13646ea clan_cli: flake_name -> flake_dir
Some checks failed
checks / test (pull_request) Failing after 1m7s
checks-impure / test (pull_request) Successful in 1m31s
2023-11-15 16:23:28 +01:00
aa39a631ac Fix incorrect machine name for shell.nix
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m51s
2023-11-15 11:29:07 +01:00
9358dfb666
drop verbose command logging in task manager
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 1m46s
2023-11-15 07:21:26 +01:00
c1f6c0db66
pytest: add missing with-core marker 2023-11-15 07:21:26 +01:00
6cb41cb006
also regenerate secrets if a fact is missing
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 2m48s
2023-11-14 17:07:58 +01:00
b9618e57c5
fix exception when file does not exist
All checks were successful
checks-impure / test (pull_request) Successful in 1m40s
checks / test (pull_request) Successful in 2m55s
fixes #488
2023-11-14 16:57:05 +01:00
19d7f17310
add cors headers in exception handler in cors
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 2m51s
2023-11-14 16:39:20 +01:00
18627baa9c
only enable corsmiddleware when in dev mode and allow all origins
All checks were successful
checks-impure / test (pull_request) Successful in 1m37s
checks / test (pull_request) Successful in 2m48s
2023-11-14 15:32:03 +01:00
f2e2d50c06 Merge pull request 'add module for meshnamed' (#499) from Mic92-sops-nix into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m35s
checks / test (push) Successful in 2m49s
2023-11-14 12:01:26 +00:00
bdc8ef63ed add module for meshnamed
All checks were successful
checks / test (pull_request) Successful in 47s
checks-impure / test (pull_request) Successful in 1m39s
2023-11-14 12:58:15 +01:00
2dcdf738ce api/machines: add test ensuring empty config is valid
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m47s
2023-11-13 21:56:02 +07:00
6a52c5f15b api/machines: allow config verification on imaginary machines
All checks were successful
checks-impure / test (pull_request) Successful in 1m37s
checks / test (pull_request) Successful in 2m39s
Machines do not need to exist in order to verify their configuration.

This allows verifying a config before creating an actual machine with it.
2023-11-13 21:24:05 +07:00
55a1df7868 api/machines: verify config by evaluating the .vm output
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m34s
This fixes the problem where fileSystems were missing, or boot.loader was not set.

SInce we want VMs anyways for now, this strategy aligns well
2023-11-13 20:50:11 +07:00
1652b5c27b api/machines: init put_machine replacing create_machine and set_machine_config
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 1m59s
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
2395119d21 task_manager.py: fix index out of range bug 2023-11-13 20:21:51 +07:00
14c4b99891 commit_file: fix diff computation
previously computed diff over all files
2023-11-13 19:59:20 +07:00
42dba72239 chore: remove unnecessary comment 2023-11-12 07:57:48 +07:00
236ca4f98c api/machines: ensure name is valid hostname 2023-11-12 07:57:48 +07:00
54ede8a0ff vms/create: drop extra flake argument and make it work with local flakes
All checks were successful
checks-impure / test (pull_request) Successful in 1m54s
checks / test (pull_request) Successful in 2m59s
2023-11-10 13:43:14 +01:00
c8e1acac2b rename luispkgs to nixpkgs-for-deal
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m32s
2023-11-10 13:14:06 +01:00
c0be813a4c dirs: opportuniscally create directories
All checks were successful
checks-impure / test (pull_request) Successful in 1m39s
checks / test (pull_request) Successful in 2m35s
2023-11-10 12:55:46 +01:00
657cdd6e67 drop unused clan_data_dir 2023-11-10 12:55:46 +01:00
df1acebd87 move flake configuration to .config/clan/flakes rather than $XDG_DATA_DIRS
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m31s
2023-11-10 12:50:51 +01:00
46191b9a9c drop unused ClanDataPath 2023-11-10 12:46:15 +01:00
85a06d47e5 breakpoint_shell: make work_dir optional
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m37s
2023-11-10 12:40:51 +01:00
13b685f7af moving deal dependencies to tests only
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m50s
2023-11-10 12:39:24 +01:00
b518d92678 Merge pull request 'zerotier: allow to persist zerotier identities/ips/meshnames for non-controller' (#482) from zerotier into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m33s
checks / test (push) Successful in 2m35s
2023-11-10 10:59:48 +00:00
c28089d4b2 allow to persist zerotier identities/ips/meshnames for non-controller
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m19s
2023-11-10 11:56:54 +01:00
39607a0925 api/schema: return list of missing modules
All checks were successful
checks-impure / test (pull_request) Successful in 1m58s
checks / test (pull_request) Successful in 2m48s
2023-11-10 15:07:15 +07:00
97ea9312ac api/schema: don't crash on eval error
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m25s
2023-11-10 14:27:03 +07:00
b8ed607658 also override XDG_DATA_HOME in tests
otherwise tests will fail if XDG_DATA_HOME is set by a user
2023-11-09 17:45:24 +01:00
af0714132d clan: use .local/share as default for XDG_DATA_HOME 2023-11-09 17:45:24 +01:00
0206210b7e fix error message if clan flake does not exist 2023-11-09 17:44:44 +01:00
2a6e329e40 api/schema: get schema without having a machine
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m22s
Also done:
- add @pytest.mark.with_core indicating that a test depends on clan-core and cannot be cached
- separate unit tests into two derivations, ones that can be cached and ones that cannot.
- fix frontend typescript code
2023-11-09 15:30:25 +07:00
10e52699be Fixed wrong examples
All checks were successful
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m42s
2023-11-08 21:40:17 +01:00
ce90b02e06 Added deal as python dependency
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m12s
2023-11-08 20:14:32 +01:00
7240727b26 Added deal contract framework and testing documentation
Some checks failed
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Failing after 2m11s
2023-11-08 19:56:07 +01:00
32aa287da5 Added schemathesis dependency 2023-11-08 19:56:05 +01:00
9cb46bf1cd Flake: Added python package deal as dependency 2023-11-08 19:55:11 +01:00
7e99454462 api/machines: better input/output validation
All checks were successful
checks-impure / test (pull_request) Successful in 1m28s
checks / test (pull_request) Successful in 2m11s
Also move contents tof 'config' to the top-level
2023-11-06 17:56:27 +07:00
7b3d3e20b4 clan-cli secrets: flake_name -> flake_dir
All checks were successful
checks / test (pull_request) Successful in 46s
checks-impure / test (pull_request) Successful in 1m26s
2023-11-05 16:58:48 +01:00
6188957b65
format
Some checks failed
checks-impure / test (pull_request) Successful in 1m26s
checks / test (pull_request) Failing after 1m32s
2023-11-04 09:16:37 +01:00
fec748fbfd
merge main
Some checks failed
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Failing after 1m33s
2023-11-04 09:15:15 +01:00
b09bb155c1 nix fmt
Some checks failed
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Failing after 1m51s
2023-11-03 22:22:16 +01:00
2d4a20457b Fixing failing test
Some checks reported warnings
checks-impure / test (pull_request) Has been cancelled
checks / test (pull_request) Has been cancelled
2023-11-03 22:21:22 +01:00
efa48052cf API: Added /api/flake/list. Added API grouping and description for better visibility
Some checks failed
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Failing after 2m43s
2023-11-03 22:05:33 +01:00
c5007ce7e3 fix clan_error_handler type
All checks were successful
checks-impure / test (pull_request) Successful in 1m26s
checks / test (pull_request) Successful in 2m10s
2023-11-03 14:48:14 +01:00
5cb4019942 switch from black to ruff for formatting 2023-11-03 13:38:13 +01:00
15dc4fd497 cli: merge nix options correctly 2023-11-03 13:31:36 +01:00
e1efaedc38 add nix option flag that is passed to underlying nix commands
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m9s
2023-11-03 12:28:26 +01:00
8677c14aaa
add create/join switch
Some checks failed
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Failing after 1m23s
2023-10-31 19:05:37 +01:00
d562c6ac5f vms/create: try virtio for vga
seems to suck less than std.
2023-10-31 15:34:53 +01:00
370485403d switch flake to main branch again 2023-10-31 15:34:47 +01:00
c9d7a96844 cli machines update: find flake dir automatic if not provided, support flake as path 2023-10-31 15:34:47 +01:00
06aaa35119 vms/create: use tmpdir again
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 2m21s
2023-10-31 13:53:54 +01:00
60721e442d vms/create: allow xchg/secrets dir to exist 2023-10-31 13:53:54 +01:00
cb87ccbfc4 improve error message if flake_dir does not exists 2023-10-31 13:53:54 +01: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
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
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
3dad667f97 vms.create: don't generate secrets if clan is remote
All checks were successful
checks-impure / test (pull_request) Successful in 59s
checks / test (pull_request) Successful in 2m4s
2023-10-11 12:01:42 +02:00
b49433958b API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create
All checks were successful
checks-impure / test (pull_request) Successful in 57s
checks / test (pull_request) Successful in 2m3s
2023-10-09 14:01:34 +02:00
9c74c4d661 CLI: Fixed bug in firefox opening addon page because of new profile
All checks were successful
checks-impure / test (pull_request) Successful in 59s
checks / test (pull_request) Successful in 2m1s
2023-10-08 14:39:31 +02:00
ceb6bdd474 clan join: test create vm for clan join
All checks were successful
checks-impure / test (pull_request) Successful in 34s
checks / test (pull_request) Successful in 1m33s
This adds a vm create test for the `clan join` scenario where:
  - there is no local clan to write changes to
  - a machine from a remote flake needs to be built and run
  - no users and no secrets need to be or can be managed (no flake to write files to)
2023-10-06 19:15:25 +02:00
f885c877bc clan-cli: improve debug logging
All checks were successful
checks-impure / test (pull_request) Successful in 37s
checks / test (pull_request) Successful in 1m32s
2023-10-05 17:37:33 +02:00
dbf80595fd zerotier: fix: find free port without collissions
All checks were successful
checks-impure / test (pull_request) Successful in 55s
checks / test (pull_request) Successful in 2m0s
2023-10-05 17:03:01 +02:00
bdb0a6484a tests: add fixtures to test_vms_cli
All checks were successful
checks-impure / test (pull_request) Successful in 59s
checks / test (pull_request) Successful in 1m57s
2023-10-05 15:56:15 +02:00
6abbf4bacd clan-cli: unset LD_LIBRARY_PATH
All checks were successful
checks-impure / test (pull_request) Successful in 53s
checks / test (pull_request) Successful in 1m59s
This prevents problems with mixed glibc versions that might occur when the cli is called through a browser built against another glibc
2023-10-05 13:44:08 +02:00
4af74ee5a5 machines update: add --target-host
All checks were successful
checks-impure / test (pull_request) Successful in 54s
checks / test (pull_request) Successful in 1m58s
2023-10-04 23:28:15 +02:00
3fb36b3ac1 secrets upload: skip on exit 23, cleanup
All checks were successful
checks-impure / test (pull_request) Successful in 33s
checks / test (pull_request) Successful in 1m32s
2023-10-04 21:29:19 +02:00
dfed8fdcb2 Merge pull request 'test_secrets_password_store: create gpghome with save permissions' (#407) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 7s
checks-impure / test (push) Successful in 28s
checks / test (push) Successful in 40s
2023-10-04 17:59:18 +00:00
41106a67e2 test_secrets_password_store: create gpghome with save permissions
All checks were successful
checks-impure / test (pull_request) Successful in 20s
checks / test (pull_request) Successful in 31s
2023-10-04 19:56:18 +02:00
bdd4cfc7d8 clan join: init
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 31s
2023-10-04 18:53:59 +02:00
a2597717b3 Merge pull request 'webui: drop deadcode' (#405) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 21s
checks / test (push) Successful in 1m28s
assets1 / test (push) Successful in 6s
2023-10-04 16:20:23 +00:00
d0c1eddf79 task_manager: log stdout/stderr correctly for processes
All checks were successful
checks-impure / test (pull_request) Successful in 18s
checks / test (pull_request) Successful in 1m28s
2023-10-04 18:17:30 +02:00
d156218775 drop dead daemonize code 2023-10-04 18:17:30 +02:00
99433ac290 test_vms_api: supply age key for secret creation
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 1m29s
2023-10-04 18:13:25 +02:00
bc36ec4c1a vms: support secrets and fix cross compilation
Some checks failed
checks-impure / test (pull_request) Failing after 13s
checks / test (pull_request) Successful in 1m29s
2023-10-04 18:04:27 +02:00
e8c9f27515 tests test_flake: disable dhcp
All checks were successful
checks-impure / test (pull_request) Successful in 18s
checks / test (pull_request) Successful in 1m27s
2023-10-04 17:52:06 +02:00
fe1a3f0541 task_manager: fix race conditions 2023-10-04 17:52:06 +02:00
544322ee6e webui: open browser in new window
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 1m30s
This gets closer to an app like feeling
2023-10-04 17:26:55 +02:00
018590d30b Merge pull request 'improve task manager to report exceptions better' (#402) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 18s
checks / test (push) Successful in 1m27s
assets1 / test (push) Successful in 6s
2023-10-04 14:51:41 +00:00
04ba80f614 improve task manager to report exceptions better
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 31s
2023-10-04 16:49:58 +02:00
966a33e711 vm.create: define tmpdir
All checks were successful
checks / test (pull_request) Successful in 1m29s
checks-impure / test (pull_request) Successful in 19s
2023-10-04 16:46:30 +02:00
b25af9f0f4 clan_cli: refactor secrets code into Machine class
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 1m27s
2023-10-04 16:41:16 +02:00
ffb7c63640 clan-cli: add machines install 2023-10-04 16:34:37 +02:00
e6d22e6426 clan-cli devShell: add editable install
All checks were successful
checks / test (pull_request) Successful in 31s
checks-impure / test (pull_request) Successful in 20s
2023-10-04 11:39:31 +02:00
5e1a26df1a Merge pull request 'rename test_basic to test_create_flake' (#396) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 6s
checks-impure / test (push) Successful in 17s
checks / test (push) Successful in 1m26s
2023-10-04 09:04:09 +00:00
1575e4a391 rename test_basic to test_create_flake
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 30s
2023-10-04 11:01:12 +02:00
017221febb clan-cli: stop propagating build inputs, remove wrapper
All checks were successful
checks-impure / test (pull_request) Successful in 17s
checks / test (pull_request) Successful in 1m26s
2023-10-04 10:36:39 +02:00
80e37483a3 don't register global logger, this interferes currently with that we have in ssh.py 2023-10-04 08:08:06 +02:00
4abb7d7bf0 make vm test also work in ci
All checks were successful
checks / test (pull_request) Successful in 30s
checks-impure / test (pull_request) Successful in 20s
2023-10-03 18:50:14 +02:00
b2ef8bf1a3 also test that updating a group works 2023-10-03 16:15:36 +00:00
6f7109dab6 clan_cli.secrets.groups: update keys if members are added/removed 2023-10-03 16:15:36 +00:00
b23d2b65e1 task_manager: return task directly instead of uuid
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m23s
2023-10-03 17:48:56 +02:00
2502422bc1 add test for vm cli
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m23s
2023-10-03 17:24:08 +02:00
361ad990ab clan-cli/tests: skip tests if has no /dev/kvm 2023-10-03 17:24:08 +02:00
b1d045131a add missing e2fsprogs to runtime inputs 2023-10-03 17:24:08 +02:00
ff11340507 move out vm logic out of controller 2023-10-03 17:24:08 +02:00
dbe289f702 nix fmt
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-10-03 15:22:41 +02:00
8fa241a36b Fixed upload_secrets_test
Some checks failed
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Failing after 1m23s
2023-10-03 15:14:50 +02:00
7dde66c0df Fixed upload_secrets_test
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m22s
2023-10-03 15:10:22 +02:00
be9d3d43bf Fixing PYTHONPATH in secrets/generate test
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 15:01:13 +02:00
cb2815c4d0 nix fmt
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Successful in 1m23s
2023-10-03 14:39:29 +02:00
d8b69ec883 Added newlines against buffering for log streaming. Fixed cli
Some checks failed
checks / test (pull_request) Failing after 1m25s
checks-impure / test (pull_request) Failing after 12s
2023-10-03 14:38:51 +02:00
d25c3a0940 Added newlines against buffering 2023-10-03 14:36:15 +02:00
2bbed10117 Added better logging 2023-10-03 14:16:07 +02:00
8e98c50ccd Merge branch 'Qubasa-main' of git.clan.lol:clan/clan-core
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 13:24:31 +02:00
da72ec18ad API: Added test for inspect_flake 2023-10-03 13:19:20 +02:00
c1c68ee1d8 Fixed failing tests 2023-10-03 13:15:01 +02:00
7e180d2f12 CLI: Restructured TaskManager and log collection 2023-10-03 13:15:01 +02:00
af17c1bd7a Updated to main 2023-10-03 13:12:44 +02:00
167533d9ee API: Added test for inspect_flake
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 12:50:47 +02:00
653ad99b22 Fixed failing tests
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Successful in 1m21s
2023-10-03 11:51:31 +02:00
c40a7bf3fb
smoke check error handling for create vm
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-10-03 11:43:06 +02:00
16f44900a3
Beyoncé rule
Some checks failed
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Failing after 1m23s
2023-10-03 11:21:34 +02:00
3c11eece4d
add error handling to endpoint
Some checks failed
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Failing after 1m22s
2023-10-03 11:12:06 +02:00
814d81c1d2 CLI: Restructured TaskManager and log collection 2023-10-02 18:36:50 +02:00
6640c78089 CLI: Use API functions 2023-10-02 15:36:02 +02:00
ce7ae81a35 API: Added endpoint & test for /api/flake/attrs
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m43s
2023-10-01 12:50:54 +02:00
82db33d047
refine join workflow
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m21s
2023-09-30 16:00:21 +02:00
f224deace9 API: Improved vm_status and added some tests. Skip vm tests in VM
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-09-30 11:08:42 +02:00
6e3f2b1ce2 tests: add test_secrets_password_store 2023-09-29 20:05:35 +02:00
89b7ffce6c clan-cli secrets upload: secrets are populated into tmpdir 2023-09-29 20:05:35 +02:00
7ca9c49163 restore clanInternals with valid nixos config 2023-09-29 19:39:35 +02:00
a5f181a430 clan-cli: init vm command 2023-09-29 19:18:27 +02:00
739d3b3578 zerotier: document mdns ports; drop duplicate udp firewall rules
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 27s
the nixos module already opens the zerotier port
2023-09-28 17:58:42 +02:00
be6592c82c also generate zerotier secret for vm 2023-09-28 17:57:44 +02:00
0c91bb90ab also encrypt secret for the machine itself 2023-09-28 17:51:37 +02:00
7184fe277d webui: fix warning
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m20s
2023-09-28 16:31:59 +02:00
2375bafbae pregenerate ssh_host keys for tests
Then we are free to choose where to put the ssh config
2023-09-28 16:31:59 +02:00
b366beeb2e fix secrets script not beeing fetched
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-28 15:51:09 +02:00
5a7c4120b6 tests: increase timeout to 60
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 26s
2023-09-28 15:24:06 +02:00
16b33eb0a8 add toplevel machines-json that can deploy all hosts 2023-09-28 15:23:25 +02:00
91c8b9c64f fix pname of clan-cli for nix run 2023-09-28 14:06:35 +02:00
1a926f6cf3 clan-cli: fix eval
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 22s
2023-09-28 12:20:26 +02:00
0f1b7cf916 clan-cli: symlink cli into an otherwise empty package
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 5s
This avoids propagating unneeded python libraries
2023-09-28 12:19:16 +02:00
8467457283 don't propagate python libraries into a devshell
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 28s
2023-09-28 11:58:09 +02:00
8014bd7181 Merge pull request 'use buildPythonApplication to shield against external PYTHONPATH' (#363) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m16s
assets1 / test (push) Successful in 6s
2023-09-28 09:23:36 +00:00
d55abacfcb use buildPythonApplication to shield against external PYTHONPATH
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 28s
2023-09-28 11:19:16 +02:00
5d09299870 Merge pull request 'webui: pretty urls by also appending .html' (#362) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m18s
assets1 / test (push) Successful in 7s
2023-09-28 09:12:43 +00:00
cc70537a91 webui: pretty urls by also appending .html
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-28 11:09:31 +02:00
1bf4ab22e4 Merge pull request 'clan update: fix deploymentAddress' (#360) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 9s
checks / test (push) Successful in 1m17s
assets1 / test (push) Successful in 6s
2023-09-27 19:14:07 +00:00
3f814c1e5f clan update: fix deploymentAddress
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 22s
2023-09-27 21:11:52 +02:00
dafceb6fea clan-cli: add desktop item
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 19:04:12 +02:00
85f7e2f2cd clanInternals.machines: expose information as json
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 18:42:49 +02:00
756820e4ca clanInternals.machines: invert system and machine name
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 17:26:44 +02:00
59f0a912ea fix clan-pytest build
All checks were successful
checks / test (pull_request) Successful in 1m17s
checks-impure / test (pull_request) Successful in 8s
2023-09-27 16:20:05 +02:00
e970dcb658 move temporary directory to .direnv
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 30s
2023-09-27 16:13:04 +02:00
166a2f795f only pass experimental-features onces to nix-build 2023-09-27 13:08:24 +00:00
2f73e6b472 drop requirement for importing qemu-vm.nix
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 22s
2023-09-27 14:54:01 +02:00
974f07628b vms: simplify args passed to create_subprocess_exec
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 12:30:06 +02:00
4317e681cf cli: fix remaining typing errors 2023-09-27 09:47:50 +00:00
244ae37144 cli: simplify log handler 2023-09-27 09:47:50 +00:00
e5899c8e10 custom_logger: fix type errror in format_time 2023-09-27 09:47:50 +00:00
80aa7f06fb task_manager: assert stdout/stderr exist to make mypy happy 2023-09-27 09:47:50 +00:00
b343650771 make vm terminate after boot 2023-09-27 09:47:50 +00:00
dea49073cb cli/vms: serialize uuid already in the api 2023-09-27 09:47:50 +00:00
08eab785c6 Completely working log streaming 2023-09-27 09:47:50 +00:00
8d390af122 Working log streaming 2023-09-27 09:47:50 +00:00
82c3d91e85 Working version 2023-09-27 09:47:50 +00:00
a8bab7bb96 Working log streaming 2023-09-27 09:47:50 +00:00
98028d121f Working log streaming 2023-09-27 09:47:50 +00:00
3a11c0a746 Fixed vscode test debugging problem 2023-09-27 09:47:50 +00:00
991181bf3c Integrated pytest into vscode 2023-09-27 09:47:50 +00:00
c2fb42e953 Extracted threadpool to task_manager.py 2023-09-27 09:47:50 +00:00
04f3547be0 Added test 2023-09-27 09:47:50 +00:00
f6c8b963c1 Improving endpoint 2023-09-27 09:47:50 +00:00
d16bb5db26 Added threaded create_vm endpoint 2023-09-27 09:47:50 +00:00
7479fca82b Started working on vm_create 2023-09-27 09:47:50 +00:00
b86e02e183 vscode debugging integration added + README updated 2023-09-27 09:47:50 +00:00
9dca1a4672 CLI: Added custom logger 2023-09-27 09:47:50 +00:00
904301c20e api/vm/create: start vm 2023-09-27 09:47:50 +00:00
74a3c85c29 move zerotier secret generation into nixos module
Some checks failed
checks-impure / test (pull_request) Failing after 7s
checks / test (pull_request) Successful in 23s
2023-09-26 17:57:43 +02:00
49c17cc6d0 drop wonky ipdb PYTHONBREAKPOINT
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-26 15:50:02 +02:00
87aa063e86 create test_flake unique per test
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 25s
otherwise we will have race conditions
2023-09-26 15:46:40 +02:00
7eab8c22cf replace bubblewrap with fakeroot
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m17s
this restores macOS support.
2023-09-26 15:33:45 +02:00
677494811b Merge pull request 'clan config: print command in more instances' (#342) from Mic92-docs into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m17s
assets1 / test (push) Successful in 6s
2023-09-26 12:13:09 +00:00
f85fdf678d clan config: print command in more instances
All checks were successful
checks / test (pull_request) Successful in 23s
checks-impure / test (pull_request) Successful in 9s
2023-09-26 14:10:52 +02:00
da1927581d Merge pull request 'unpin nix-fast-build' (#341) from Mic92-docs into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m18s
assets1 / test (push) Successful in 6s
2023-09-26 12:02:05 +00:00
29a48725ef clan config: print command on error
All checks were successful
checks / test (pull_request) Successful in 1m18s
checks-impure / test (pull_request) Successful in 10s
2023-09-26 14:00:20 +02:00
3783359f08 clan config: support new types nullOr and passwdEntry
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 14:24:48 +01:00
ec70b34470 clan config: match dynamic options containing <name>
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 13:04:37 +01:00
26972ca194 clan-cli: add --debug section
All checks were successful
checks / test (pull_request) Successful in 24s
checks-impure / test (pull_request) Successful in 8s
2023-09-24 08:53:26 +01:00
f3e66bd5a6
format python
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m18s
2023-09-23 13:25:43 +02:00
09364671b3
inspect flake before configure VM
Some checks failed
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Failing after 1m19s
2023-09-23 13:20:25 +02:00
e08c0b338d test_basics: add cli fixture
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 22s
2023-09-22 19:23:23 +02:00
9825c179a8 impure-tests: migrate bash to pytest and fix stuff
All checks were successful
checks-impure / test (pull_request) Successful in 7s
checks / test (pull_request) Successful in 23s
2023-09-22 18:32:28 +02:00
ea829a76cd config: git commit synched file
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 26s
2023-09-22 16:55:51 +02:00
0d42c549b0 git: dont pass additional cwd 2023-09-22 16:52:11 +02:00
b482dcd466 make git idempotent
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 21s
2023-09-22 16:38:46 +02:00
d9fd0e2a65 better error messages if git commands fail
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 24s
2023-09-22 16:25:30 +02:00
fa9e8d757d add show-trace option that is disabled by default
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m16s
2023-09-22 16:07:39 +02:00
e3b2424d9d make git optional again 2023-09-22 16:07:39 +02:00
e2cf3c1601 fix test not beeing exposed 2023-09-22 16:07:39 +02:00
d8bde6ec8e fix reading options
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m2s
2023-09-22 14:54:44 +02:00
eb33150bdc Merge pull request 'config: read nixos option correctly' (#324) from Mic92-docs into main
All checks were successful
checks-impure / test (push) Successful in 11s
checks / test (push) Successful in 58s
assets1 / test (push) Successful in 6s
2023-09-22 12:41:05 +00:00
660dafd412 config: read nixos option correctly
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 20s
2023-09-22 14:38:23 +02:00
5125ebe1eb Merge pull request 'get rid of impure test' (#323) from Mic92-docs into main
All checks were successful
checks / test (push) Successful in 58s
assets1 / test (push) Successful in 6s
checks-impure / test (push) Successful in 9s
2023-09-22 12:34:51 +00:00
51e8da2a74 config: get rid of impure eval
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-22 14:32:38 +02:00
0196fd72c3 git.commit_file: fix file path & repo path finding
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m3s
2023-09-22 13:42:04 +02:00
41f1b8a15a perf? make clan-cli evaluate waaayyy faster
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 35s
Before my small devshell to 7s. Now I am back to 2.6s
2023-09-22 09:00:08 +02:00
17520e2553 fix impure tests 2023-09-21 18:29:18 +02:00
58e5482efd clan-cli: set checks with mkDefault 2023-09-21 17:25:32 +02:00
aeed648bd0 secrets: use clanInternal for crosscompiling, move sops generators to new file 2023-09-21 17:25:32 +02:00
18c360f729 make all pytest dependencies also available to impure tests 2023-09-21 17:25:32 +02:00
0314132a1a rewrite sops backend for secret generation and add tests 2023-09-21 17:22:20 +02:00
ead5c6e6a8 secrets: add has_machine and has_secret function 2023-09-21 17:22:20 +02:00
dc51ca5803 factor out deployment address parsing into a function 2023-09-21 17:22:20 +02:00
486ff4e7f4 age: generate private and public key in one go 2023-09-21 17:22:20 +02:00
6a359c0a2f clan-cli: add git.commit_file() to auto commit files if inside a git
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 34s
- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
2023-09-21 14:07:54 +02:00
584b6e2775 fix updating assets in devshell
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 35s
2023-09-20 15:39:55 +02:00
0ee6de86af checks: run impure pytest tests in CI pipeline
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 34s
2023-09-19 16:46:46 +02:00
4a0949f5dc Merge pull request 'clan-cli/update: also use correct flake attr for generating secret' (#307) from Mic92-deploy-fix into main
All checks were successful
checks / test (push) Successful in 1m27s
checks-impure / test (push) Successful in 7s
2023-09-19 13:32:18 +00:00
3cb916d50f clan-cli/update: also use correct flake attr for generating secret
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 1m27s
2023-09-19 15:20:11 +02:00
c11f73c4d0 clan config: fix settings file location
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m10s
2023-09-19 15:12:29 +02:00
9b6fafcb2d clan config: re-enable clan config 2023-09-19 15:12:29 +02:00
2931b08b46 clan-cli/update: use correct flake attr when deploying
Some checks reported warnings
checks-impure / test (pull_request) Has been cancelled
checks / test (pull_request) Has been cancelled
2023-09-19 14:19:48 +02:00
90718da5b4 Merge pull request 'use experimental flags everywhere' (#298) from Mic92-vm-api into main
Some checks reported warnings
checks / test (push) Has been cancelled
checks-impure / test (push) Has been cancelled
2023-09-19 11:16:30 +00:00
f6a7e42e38 cli: rename admin create to create 2023-09-19 13:12:10 +02:00
164f95723d pytest: add impure marker 2023-09-19 13:12:10 +02:00
d41cca2e28 add clan_core path helper function 2023-09-19 13:12:10 +02:00
a65413c98e use experimental flags everywhere 2023-09-19 13:12:10 +02:00
18714d6657 reformat
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m24s
2023-09-16 16:28:36 +02:00
1bcff16b66 add join clan page
Some checks failed
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Failing after 1m39s
2023-09-16 16:21:33 +02:00
a29f301f84 add vms 2023-09-15 14:02:40 +00:00
8a96254100 nix_build: add experimental flags
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m22s
2023-09-15 14:30:17 +02:00
8d29d0e69c clan-cli: get deploymentAddress from clan.networking 2023-09-15 12:17:07 +00:00
0132abc547 secrets: use CLAN_DIR instead of clanCore.clanDir for fact storage 2023-09-15 12:17:07 +00:00
a59e8478fa clan-cli nix_build_machine: don't create result link 2023-09-15 12:17:07 +00:00
c5786614bf clan-cli secrets: deploy -> upload 2023-09-15 12:17:07 +00:00
55fc055549 clan_cli/nix: convert path to string 2023-09-15 12:17:07 +00:00
c487280ba9 clan-cli machines update: generate and deploy secrets 2023-09-15 12:17:07 +00:00
0e3f8bb3f9 clan-cli nix_build_machine: cast flake_url to str 2023-09-15 12:17:07 +00:00
23c979f8db secrets deploy/generate: use nix_build_machine 2023-09-15 12:17:07 +00:00
3b0701f275 deploy: use nix-flake-archive instead of rsync to upload 2023-09-15 12:17:07 +00:00
ac13c5b76b clan-cli secrets: add deploy subcommand 2023-09-15 12:17:07 +00:00
798e85ee8a clan secrets generate: use get_clan_flake_toplevel 2023-09-15 12:17:07 +00:00
9b7b6996d6 nix_eval: add --json by default
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 33s
2023-09-15 13:50:31 +02:00
a8ba56de63 add ipdb to python breakpoint()
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m25s
2023-09-15 13:45:01 +02:00
87f0b090ef cli: rename clan_flake to test_flake
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m24s
2023-09-15 12:36:16 +02:00
2697ad54b7 drop useless test_update test
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 32s
This test was not finished by me?
Now it's going to be broken by lassulus.
2023-09-14 17:25:48 +02:00
02f421546c rename machine_flake back to clan_flake
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m22s
2023-09-14 17:06:07 +02:00
2048ffccb0 drop clan_flake fixture
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 32s
2023-09-14 16:57:48 +02:00
4905e0cecd move machine_flake fixture to its own file
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m25s
2023-09-14 16:49:02 +02:00
451ecbb691 rename test_api_machines test to be consistent with the rest
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m23s
2023-09-14 13:02:58 +02:00
2d934d527a update: use run_local command to print executed command
All checks were successful
checks-impure / test (pull_request) Successful in 7s
checks / test (pull_request) Successful in 32s
2023-09-14 11:20:45 +02:00
b97db58316 deploy: use nix-flake-archive instead of rsync to upload 2023-09-13 20:33:53 +02:00
3d071396d0 nix_build_machine: escape json
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m25s
2023-09-13 16:40:26 +02:00
825caeb63a add nix_build_machine function
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 32s
2023-09-13 16:01:43 +02:00
17af763ad1 add edit flag to secret cli
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 51s
2023-09-13 10:52:03 +02:00
58bb1b9914 Added example machine to machines list
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 53s
2023-09-07 13:42:48 +02:00
62e5c66867 secrets cli: hint that group/user/machine flags can be repeated
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 2m57s
2023-09-07 13:06:31 +02:00
c3ccf68007 only list valid secrets/users/machines
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 58s
Git often leaves empty directories behind
2023-09-07 12:48:34 +02:00
ae3283a762 clan/secrets: fix if user/machine directory does not contain a key.json 2023-09-07 12:30:29 +02:00
e6762d8b3f sops: add explicit commands to generate secrets
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 49s
2023-09-07 11:41:20 +02:00
3bdd3af248 cli: fix nixpkgs unfree import
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m55s
2023-09-06 17:37:41 +02:00
35c5f248d1 cli/deps_flake: resolve symlink prior to execution
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 50s
2023-09-06 17:05:21 +02:00
e7dcc0d260 clan-cli: fix nix_shell --inputs from
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m53s
2023-09-06 16:13:27 +02:00
4ac91ccdcb drop clan flake monkeypatch 2023-09-06 16:04:00 +02:00
0108d84fe3 speed up machine_flake eval 2023-09-06 16:03:40 +02:00
df10ca6ece clan-cli: fix nix_shell
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 52s
2023-09-06 15:18:22 +02:00
cd8cd62894 Merge pull request 'clan-cli: use dependency flake instead of registry' (#250) from DavHau-deps into main
All checks were successful
checks-impure / test (push) Successful in 12s
checks / test (push) Successful in 1m54s
2023-09-06 12:50:16 +00:00
fcbc3ec899 clan-cli: use dependency flake instead of registry
All checks were successful
checks / test (pull_request) Successful in 1m53s
checks-impure / test (pull_request) Successful in 25s
2023-09-06 14:47:28 +02:00
bef27a2c67 fix cors headers in development
All checks were successful
checks / test (pull_request) Successful in 8m8s
checks-impure / test (pull_request) Successful in 6s
2023-09-06 14:03:21 +02:00
949b72bd0b actual implement secret rename function
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 24s
2023-09-03 11:03:14 +02:00
6c7c9b9540 secrets/sops-import: check correct secret for conflicts
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 19s
2023-09-03 08:43:40 +02:00
148c292ea9 Merge pull request 'secrets/sops-import: check for key.json to exist' (#237) from Mic92-secret-fix into main
All checks were successful
checks-impure / test (push) Successful in 14s
checks / test (push) Successful in 1m7s
2023-09-03 06:39:53 +00:00
e079627f0f secrets/sops-import: check for key.json to exist
All checks were successful
checks-impure / test (pull_request) Successful in 4s
checks / test (pull_request) Successful in 20s
2023-09-03 08:37:56 +02:00
a56073b051 machines delete: fix - delete all existing files
All checks were successful
checks-impure / test (pull_request) Successful in 14s
checks / test (pull_request) Successful in 1m8s
2023-09-02 18:37:40 +02:00
2a11b1c5d1 machines api: always create empty settings.json
Some checks failed
checks-impure / test (pull_request) Successful in 15s
checks / test (pull_request) Failing after 1m6s
2023-09-02 18:29:12 +02:00
a1d825d0a0 clan-config: fix: read options from nixosConfigurations instead of nixosModules
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 21s
2023-09-02 16:35:59 +02:00
8ca0a2aee4 clan-config: introduce --machine + add tests
All checks were successful
checks / test (pull_request) Successful in 1m16s
checks-impure / test (pull_request) Successful in 4s
2023-08-30 20:59:26 +02:00
10e4db7c19 clan-cli: fix error message 2023-08-30 16:40:42 +02:00
4afd9910e9 Revert "rename clanCore to clan.core"
This reverts commit fef796fa6e.
2023-08-30 15:24:33 +02:00
fef796fa6e rename clanCore to clan.core 2023-08-30 12:46:49 +00:00
af38408a3e secret cli: add get command that returns the key of users/machines
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 3s
2023-08-30 11:30:57 +02:00
54d855a6cd clan-cli: Document how to run single-threaded 2023-08-30 11:28:07 +02:00
d655c0ceb5 clan-cli/direnv: also watch default.nix 2023-08-30 11:27:43 +02:00
691d3bec41 Merge pull request 'secrets generator + zerotier module' (#188) from secrets-module into main
All checks were successful
checks-impure / test (push) Successful in 3s
checks / test (push) Successful in 2s
2023-08-29 15:43:15 +00:00
9fca1e7f43 move clanCore into nixosModules, add secrets generate command
All checks were successful
checks-impure / test (pull_request) Successful in 2s
checks / test (pull_request) Successful in 2s
2023-08-29 16:28:50 +02:00
18bc6c7345 Merge pull request 'secrets: improve error messages' (#208) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 3s
checks / test (push) Successful in 1m2s
2023-08-29 14:22:29 +00:00
9b3bfd6950 secrets: improve error messages
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 19s
2023-08-29 16:20:39 +02:00
5e2e95e9c7 clan-cli: add zerotier subcommand 2023-08-29 16:16:11 +02:00
98a379d4fa clan-cli: fix build if lassulus does an impure build 2023-08-29 13:54:06 +00:00
9701ce3a7f Merge pull request 'clan-cli: fix nixpkgs symlink location' (#204) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 4s
checks / test (push) Successful in 59s
2023-08-29 11:23:07 +00:00
a0467dd259 clan-cli: fix nixpkgs symlink location
All checks were successful
checks-impure / test (pull_request) Successful in 4s
checks / test (pull_request) Successful in 19s
2023-08-29 13:12:56 +02:00
ce19e5602a clan-cli: Fixed CORS issue. UI: Readded id as tableData property
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 19s
2023-08-27 15:10:15 +02:00
b7212b9988 ruff: also enforce variable naming rules
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 16s
2023-08-27 10:51:47 +02:00
9913a95cc2 ruff: enable upgrade rule checks 2023-08-27 10:46:53 +02:00
bac0942033 pytest: report slow tests and set a 30 timeout
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 19s
2023-08-27 10:41:32 +02:00
4735586dac fix uneccessary clan-cli rebuilds by not relying on self
All checks were successful
checks / test (pull_request) Successful in 19s
checks-impure / test (pull_request) Successful in 3s
2023-08-27 10:21:02 +02:00
9cc6a14d73 run pytest in parallel
All checks were successful
checks-integration / test (pull_request) Successful in 5s
checks / test (pull_request) Successful in 18s
2023-08-27 09:45:15 +02:00
81d02bb218 tests: rewrite port allocation function 2023-08-27 09:34:36 +02:00
7928e953fa checks-integration: init
All checks were successful
checks-integration / test (pull_request) Successful in 7s
checks / test (pull_request) Successful in 1m6s
2023-08-27 00:24:19 +02:00
b55ceec40c clan-config: use pinned nixpkgs + fix test flake
All checks were successful
build / test (pull_request) Successful in 19s
2023-08-26 23:33:32 +02:00
8c7ee25dc9 webui: fixes for machines endpoint
All checks were successful
build / test (pull_request) Successful in 1m8s
- fix machines settings file location
- raise 404 if machine doesn't exist
- improve machine api test
2023-08-26 14:17:25 +02:00