Commit Graph

275 Commits

Author SHA1 Message Date
1cc6e74297 Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' (#840) from Qubasa-add_spinner into main
All checks were successful
checks-impure / test (push) Successful in 1m43s
checks / test (push) Successful in 2m46s
2024-02-14 08:43:14 +00:00
30850eef22 clan_cli: Added longer timeout for test
All checks were successful
checks-impure / test (pull_request) Successful in 1m43s
checks / test (pull_request) Successful in 2m45s
2024-02-14 15:40:03 +07:00
b15c21f800 drop check for /var/lib/nixos 2024-02-13 12:44:22 +01:00
03b9183e04 clan_cli: Added lazy qmp 2024-02-13 16:44:09 +07:00
92ec3fb9f9 test_vms_cli: Trying new way of testing 2024-02-13 16:44:09 +07:00
87dbc99cab clan_cli: Made qmp implementation lazy 2024-02-13 16:44:09 +07:00
0ce8bcd018 clan_vm_manager: Added VM shutdown timeout
All checks were successful
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Successful in 2m48s
2024-02-12 14:16:44 +07:00
02dd132e08 vms: init graceful shutdown for GUI
All checks were successful
checks-impure / test (pull_request) Successful in 1m43s
checks / test (pull_request) Successful in 2m44s
- add python modules for qemu protocols: QMP (hardware interactions) and QGA (guest service interaction)
- refactor state directory: remove name from path (already contains url)
- add impure vm test for basic qmp interaction
- simplify existing vm persistance test (factor out shared code)
- integrate graceful shutdown into GUI

the GUI integration still needs to be improved later:
- add fallback in case system doesn't react to powerdown button
- shutdown GUI switch fails if VM hasn't been started yet, and then remains in a wrong position
2024-02-09 19:55:18 +07:00
a2f0d077c8 remove unused ssh.run method 2024-02-06 15:47:32 +01:00
3538cf2e46 rename deployment address to target address
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m43s
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
56b6907740 qemu: init python modules for qmp and qga
All checks were successful
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m53s
2024-02-01 12:32:21 +07:00
59fa63eba9 Reapply "vm-state: fix and improve testing"
All checks were successful
checks-impure / test (pull_request) Successful in 1m39s
checks / test (pull_request) Successful in 2m40s
This reverts commit 99092f6e76.

vm-state: revert sysusers, improve testing

zerotier: enable persistence

vm-state: cleanup tests
2024-01-31 11:02:16 +07: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
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
9cf670ee29 test_vm_persistance: substitute clan-core repo 2024-01-24 15:49:12 +01:00
de885c3010 test_vm_persistance: add age keys 2024-01-24 15:49:12 +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
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
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
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
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
3f55c688d9 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 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
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
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
771c0e43ca Moved history to own subcommand 2023-12-14 18:21:10 +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
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
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
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
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
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
bdcf5dbe8b
extend clan history model 2023-12-02 16:16:38 +01:00