Commit Graph

1017 Commits

Author SHA1 Message Date
a50d0f1743 CLI: Added grouping output for clan history list.
All checks were successful
checks-impure / test (pull_request) Successful in 1m23s
checks / test (pull_request) Successful in 2m38s
2024-01-30 12:39:52 +07:00
119a05d999 Fixed clan uri. Expand user, then resolve
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 2m39s
2024-01-30 12:17:24 +07:00
c417157941 clan-cli: implement waypipe backend
All checks were successful
checks-impure / test (pull_request) Successful in 1m23s
checks / test (pull_request) Successful in 2m41s
2024-01-30 10:37:52 +07:00
9fef40258a cmd: skip print for zero-length bufs 2024-01-30 10:30:25 +07:00
a3d92a766e clan-cli: drop unused variables 2024-01-30 10:30:25 +07:00
80a335eb4c drop unused unfree_nixpkgs function 2024-01-30 10:30:25 +07:00
0366147235 clan-cli machines: get flake path via flake metadata
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m39s
2024-01-29 09:54:30 +01:00
6b9f8b851e Merge pull request 'Revert "vm-state: fix and improve testing"' (#768) from DavHau-revert into main
All checks were successful
checks-impure / test (push) Successful in 1m21s
checks / test (push) Successful in 2m41s
2024-01-29 08:20:09 +00:00
99092f6e76 Revert "vm-state: fix and improve testing"
All checks were successful
checks-impure / test (pull_request) Successful in 1m37s
checks / test (pull_request) Successful in 3m23s
This reverts commit 6adc68a354.
2024-01-29 15:16:10 +07:00
f6c811e531 UI: Display error logs on VM crash. Fixed inspect_vm problem.
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m41s
2024-01-29 15:11:57 +07:00
4a84d7da97 nix-direnv-watch-file -> watch-file
All checks were successful
checks-impure / test (pull_request) Successful in 1m26s
checks / test (pull_request) Successful in 2m47s
2024-01-29 11:02:43 +07:00
6adc68a354 vm-state: fix and improve testing
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 3m6s
checks / test (push) Successful in 30s
checks-impure / test (push) Successful in 1m27s
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
3afed7a563 clan-cli secrets: generate secrets inside bubblewrap
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m46s
2024-01-24 19:20:07 +01:00
abaa218e27 clan-cli install: use new Machine interface, fix mypy error
All checks were successful
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Successful in 2m38s
2024-01-24 15:49:24 +01:00
6ba641c974 clan-cli update: use new Machine class interface 2024-01-24 15:49:12 +01:00
e1237499d0 clan-cli Machine: make deployment info lazy 2024-01-24 15:49:12 +01:00
3284224440 clan-cli backups: use new machine class for eval 2024-01-24 15:49:12 +01:00
9cf670ee29 test_vm_persistance: substitute clan-core repo 2024-01-24 15:49:12 +01:00
6b004fca6f machines.Machine: refactor flake_dir -> flake; use Machine class in vm 2024-01-24 15:49:12 +01:00
de885c3010 test_vm_persistance: add age keys 2024-01-24 15:49:12 +01:00
aee0ee4d5e move secret stores into clan_cli codebase 2024-01-24 15:49:12 +01:00
09887037f5 WIP: clan-cli secrets: add secret_store as python class 2024-01-23 15:04:40 +01:00
d0b075c217
add join to list
All checks were successful
checks-impure / test (pull_request) Successful in 1m23s
checks / test (pull_request) Successful in 2m20s
2024-01-20 13:18:43 +01:00
70cf75830d Remove error from qemu_command
All checks were successful
checks-impure / test (pull_request) Successful in 1m21s
checks / test (pull_request) Successful in 2m39s
2024-01-19 18:54:54 +01:00
d956dbeb77 UI: Added signal handling for stopped and started vm.
Some checks failed
checks-impure / test (pull_request) Failing after 1m4s
checks / test (pull_request) Successful in 2m39s
2024-01-19 18:52:51 +01:00
2da236b362 Improved error messages in clan_cli
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m50s
2024-01-19 14:10:22 +01:00
60c4d231f8 Wrapped vm.run in cmd.run. Working --wayland
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m48s
2024-01-19 13:56:17 +01:00
2d613e3933 Gtk4 migration (#693)
All checks were successful
checks / test (push) Successful in 30s
checks-impure / test (push) Successful in 1m18s
Co-authored-by: Qubasa <consulting@qube.email>
Reviewed-on: #693
Co-authored-by: Johannes Kirschbauer <hsjobeki@gmail.com>
Co-committed-by: Johannes Kirschbauer <hsjobeki@gmail.com>
2024-01-17 12:11:49 +00:00
bd5ad0dc31 Merge pull request 'disable state home for now' (#740) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 1m21s
checks / test (push) Successful in 2m39s
2024-01-17 10:03:48 +00:00
1d2f003210 use upstream qemu for wayland feature
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m43s
2024-01-17 11:00:45 +01:00
f1acc44488 URI: Added support for #flake_attr
All checks were successful
checks-impure / test (pull_request) Successful in 1m26s
checks / test (pull_request) Successful in 2m50s
2024-01-16 17:11:26 +01:00
d20f47ad5b CLI: History supports multiple attrs from the same url now. Errors when executing the cli are formatted better
All checks were successful
checks-impure / test (pull_request) Successful in 1m30s
checks / test (pull_request) Successful in 2m26s
2024-01-16 16:16:12 +01:00
abfa2f218c cmd.py refactor part 7
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m53s
2024-01-12 17:37:59 +01:00
0c1d4a1d41 cmd.py refactor part 6
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m49s
2024-01-12 17:21:48 +01:00
1a6983e031 cmd.py refactor part 6 2024-01-12 17:02:56 +01:00
ca5cc389ac cmd.py refactor part 5
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m49s
2024-01-12 16:52:34 +01:00
2c2e4862ba Fixed duplicate logging issue with correct logging in ssh and in root logger
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m47s
2024-01-12 16:46:44 +01:00
47f4ef2c31 revert logger changes in f7c6ab5888
All checks were successful
checks-impure / test (pull_request) Successful in 1m16s
checks / test (pull_request) Successful in 29s
This adds another logger to the logger in clan_cli.ssh which we do not want
2024-01-12 14:48:36 +01:00
796ef76893 cmd: add a timeout in select
All checks were successful
checks-impure / test (pull_request) Successful in 1m23s
checks / test (pull_request) Successful in 2m42s
2024-01-12 00:20:22 +01:00
05aaa180e0 cmd.py: Fix busy loop.
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 3m3s
2024-01-12 00:13:21 +01:00
1d489438bd Re-added rlist.remove to counter busy loop 2024-01-12 00:08:15 +01:00
0941367bb3 cmd.py: Fix deadlock because of incorrect select usage
All checks were successful
checks-impure / test (pull_request) Successful in 1m20s
checks / test (pull_request) Successful in 2m53s
2024-01-11 23:03:14 +01:00
3351f87a7f Removed duplicate logging messages
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m52s
2024-01-11 22:46:29 +01:00
d1ca0eaf80 Identified deadlocking funciton
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m54s
2024-01-11 22:28:35 +01:00
4d4c09da80 Enabled logging DEBUG in pytest 2024-01-11 22:14:55 +01:00
f7c6ab5888 Working test_secrets_generate
Some checks failed
checks / test (pull_request) Successful in 2m49s
checks-impure / test (pull_request) Has been cancelled
2024-01-11 21:48:39 +01:00
16b043f508 cmd.py: Fixing bug: missing output because of forgotten flush() call 2024-01-11 21:11:49 +01:00
0133ccd5f7 Fixed missing log.BOTH and error_msg at prev refactors 2024-01-11 21:11:49 +01:00
2ae439ec52 cmd.py refactor part 4 2024-01-11 21:11:49 +01:00
f6b6229f78 schema: set also clanName
Some checks failed
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Failing after 2m49s
this is usually set by buildClan
2024-01-11 17:41:41 +01:00
93fa4e397b Merge pull request 'cmd.py part 3 refactor' (#706) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m49s
2024-01-10 17:57:51 +00:00
359275eee7 Improved error message. Fixed incorrect ret code check in git.py
All checks were successful
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Successful in 2m50s
2024-01-10 18:54:34 +01:00
64846eb395 Fixed bug, where exception is raised where there shouldn't be raised one 2024-01-10 18:46:54 +01:00
b36d0be524 cmd.py part 3 refactor
Some checks failed
checks-impure / test (pull_request) Failing after 1m25s
checks / test (pull_request) Failing after 3m8s
2024-01-10 18:39:19 +01:00
46da9eb5db Merge pull request 'Added ClanCmdError. cmd.run now returns this error' (#704) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m18s
checks / test (push) Successful in 2m50s
2024-01-10 17:02:08 +00:00
699515ca89 Added ClanCmdError. cmd.run now returns this error
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 3m3s
2024-01-10 17:58:39 +01:00
f34df3df02 Merge pull request 'Refactor subprocess to cmd.py part 2' (#685) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m50s
2024-01-10 16:34:38 +00:00
626e5558f3 Fix cmd to default print on all outputs. Default print on stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m17s
checks / test (pull_request) Successful in 2m51s
2024-01-10 17:31:11 +01:00
c41bc10325 nix fmt
Some checks failed
checks-impure / test (pull_request) Failing after 1m19s
checks / test (pull_request) Successful in 2m50s
2024-01-10 17:19:33 +01:00
54f2eba1cc nix fmt 2024-01-10 17:19:12 +01:00
40beda884c Updated cmd.py with Mic92 changes to fit previous changes 2024-01-10 17:18:21 +01:00
eeac4902ab re-anble pulseaudio in qemu
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 3m0s
2024-01-10 15:32:37 +01:00
ba05589af2 Refactor subprocess to cmd.py part 2
Some checks failed
checks-impure / test (pull_request) Failing after 16s
checks / test (pull_request) Failing after 40s
2024-01-10 12:11:29 +01:00
26e9463248 Merge pull request 'cmd: rework redirecting stdout/stderr' (#700) from Mic92-wayland-update into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m36s
2024-01-09 16:39:19 +00:00
fa00bb522b cmd: rework redirecting stdout/stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m16s
checks / test (pull_request) Successful in 2m40s
2024-01-09 17:34:43 +01:00
520ff0b334 VMs: ensure state dirs don't collide between clans
All checks were successful
checks-impure / test (pull_request) Successful in 1m20s
checks / test (pull_request) Successful in 2m37s
2024-01-09 17:22:48 +07:00
17390fc392 VMs: port vm_persistence test to python
All checks were successful
checks-impure / test (pull_request) Successful in 1m21s
checks / test (pull_request) Successful in 2m40s
2024-01-09 14:47:33 +07:00
c29e0086a4 VMs: persist state folders on host
All checks were successful
checks-impure / test (pull_request) Successful in 1m24s
checks / test (pull_request) Successful in 2m40s
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
f9dd2e0926 strip whitespace from clan uris
All checks were successful
checks-impure / test (pull_request) Successful in 1m8s
checks / test (pull_request) Successful in 2m44s
2024-01-04 16:30:26 +01:00
e4a7f68b0e Fixed cmd.py writing to stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 2m42s
2024-01-02 17:21:06 +01:00
3f55c688d9 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 2024-01-02 17:21:06 +01:00
69d08241e9 delete unecessary f.truncate 2024-01-02 17:21:06 +01:00
ef827af89c Fixed unsafe dirs.py urlquoting, improved cmd.py run func 2024-01-02 17:21:06 +01:00
7c5ed85231 clan_uri: Support all other formats by just differentiating between remote and local 2024-01-02 17:21:05 +01:00
0ecfaa96cf drop references to debug.py
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 1m43s
2024-01-02 15:22:36 +01:00
e7bd86a9d5 dirs.py: remove outdated comment
All checks were successful
checks-impure / test (pull_request) Successful in 1m12s
checks / test (pull_request) Successful in 2m48s
2024-01-02 14:25:37 +07:00
7be42146e7 vm-manager: Added right click context menu
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m42s
2024-01-02 07:24:30 +01:00
01977b2e2a vm-manager: More error handling 2024-01-02 06:23:55 +01:00
9ec1d594e7 Removed unecessary debug.py and test code
All checks were successful
checks / test (pull_request) Successful in 28s
checks-impure / test (pull_request) Successful in 1m1s
2024-01-01 18:58:12 +01:00
42235e39be Added settings attribute to history file
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m51s
2024-01-01 18:24:40 +01:00
7069d746ad Added write and read history file functions 2023-12-31 15:17:12 +01:00
e0bba046ea history: added vm config to FlakeConfig 2023-12-31 14:56:03 +01:00
f1642c6c71 vm-manager: Fixed quit application not working bug
All checks were successful
checks-impure / test (pull_request) Successful in 1m11s
checks / test (pull_request) Successful in 2m43s
2023-12-31 14:13:11 +01:00
33afa04b38 cli: fixed run vm not working with url
All checks were successful
checks-impure / test (pull_request) Successful in 1m11s
checks / test (pull_request) Successful in 2m47s
2023-12-31 13:56:55 +01:00
fcadaca010 cli: Switched b64 encoding of gcroot names to urlparse
All checks were successful
checks-impure / test (pull_request) Successful in 1m11s
checks / test (pull_request) Successful in 2m49s
2023-12-31 13:51:13 +01:00
c4799f1e9a Added gcroot for clan Icon and VM
All checks were successful
checks-impure / test (pull_request) Successful in 1m12s
checks / test (pull_request) Successful in 2m52s
2023-12-31 00:49:57 +01:00
330ef00a7c Removed python deal.
All checks were successful
checks-impure / test (pull_request) Successful in 1m17s
checks / test (pull_request) Successful in 2m48s
2023-12-30 23:10:43 +01:00
cb06353451 pytest: Removed -s flag for CI
All checks were successful
checks-impure / test (pull_request) Successful in 1m3s
checks / test (pull_request) Successful in 2m39s
2023-12-26 18:20:41 +01:00
ca265b0c59 UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug.
Some checks failed
checks-impure / test (pull_request) Successful in 1m16s
checks / test (pull_request) Failing after 2m46s
2023-12-26 18:02:43 +01:00
ed643e3829 cli/install: add option to specify alternative kexec url
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 3m2s
2023-12-26 14:36:51 +01:00
de38ce47ee switch to virtio-audio 2023-12-21 15:39:27 +01:00
a1575ec19c nix fmt
All checks were successful
checks-impure / test (pull_request) Successful in 1m3s
checks / test (pull_request) Successful in 2m41s
2023-12-19 18:02:06 +01:00
e0e7324876 Improved spawn interface. Added garbage collector 2023-12-19 17:51:43 +01:00
e98f037dd8 clan_cli: remove incorrect clan_flake check
Some checks failed
checks-impure / test (pull_request) Successful in 1m1s
checks / test (pull_request) Failing after 1m5s
2023-12-16 21:46:19 +01:00
56dafff109 machines build_machine_data: raise ClanError on error 2023-12-16 21:46:19 +01:00
0bdf55b09f use nix-unit from nixpkgs 2023-12-15 12:36:07 +01:00
5c143bf2da Finished clan history command. Ported remaining async to sync funcs
All checks were successful
checks / test (pull_request) Successful in 1m2s
checks-impure / test (pull_request) Successful in 1m13s
2023-12-14 20:57:31 +01:00
962a5641b4 fixed history allowing adding the same clan twice 2023-12-14 18:54:00 +01:00
7dc2c21517 Deleted everything webui
All checks were successful
checks / test (pull_request) Successful in 58s
checks-impure / test (pull_request) Successful in 1m5s
2023-12-14 18:47:14 +01:00
1a36ef242f Fixed failing tests in machines and history cli, removed test_machines_api.py
Some checks failed
checks / test (pull_request) Failing after 1m14s
checks-impure / test (pull_request) Successful in 1m15s
2023-12-14 18:25:42 +01:00
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