Johannes Kirschbauer
2e70a884bb
clan-cli: create flake refactor to create clan
2024-06-05 09:45:47 +02:00
Jörg Thalheim
2c8e231bb2
consistent rename cLAN -> Clan
2024-05-27 13:58:32 +00:00
Johannes Kirschbauer
2d9be0e603
API: handle functions with multiple arguments
2024-05-26 18:04:49 +02:00
a-kenji
5d0a0762b3
clan machines list: reduce noise
...
Don't log nix error output by default on `clan machines list`.
Log it, if `--debug` is passed.
Fixes #1115
2024-05-24 12:55:14 +02:00
Qubasa
ecc80556cf
Heavily improve documentation and flake template
2024-05-14 15:41:15 +02:00
Qubasa
335156368b
Improve documentation
2024-04-06 11:54:34 +02:00
Qubasa
fcb7a4b032
clan_vm_manager: Rewrite of Machine Class Part 1
2024-03-08 15:32:12 +07:00
DavHau
a438a27c69
vms: init graceful shutdown for GUI
...
- 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
Qubasa
79ee50b810
clan_manager: Implemented machine_icon, machine_description
2024-02-06 20:13:18 +07:00
Qubasa
8194b61e4b
cli,nix: Add machine_icon, machine_description
2024-02-06 19:25:34 +07:00
lassulus
bdd1f9be6d
machines.Machine: refactor flake_dir -> flake; use Machine class in vm
2024-01-24 15:49:12 +01:00
Qubasa
513f48bab1
cmd.py part 3 refactor
2024-01-10 18:39:19 +01:00
Qubasa
cbc4c966f1
Added ClanCmdError. cmd.run now returns this error
2024-01-10 17:58:39 +01:00
Qubasa
17f5d90926
history: added vm config to FlakeConfig
2023-12-31 14:56:03 +01:00
Qubasa
cb933787ff
Added gcroot for clan Icon and VM
2023-12-31 00:49:57 +01:00
Qubasa
e17508702a
UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug.
2023-12-26 18:02:43 +01:00
Qubasa
83e1c972ad
Finished clan history command. Ported remaining async to sync funcs
2023-12-14 20:57:31 +01:00
Qubasa
30cd375d98
Fixed failing tests in machines and history cli, removed test_machines_api.py
2023-12-14 18:25:42 +01:00
Qubasa
54f0a7d342
Reworked machines list, and history commands
2023-12-14 18:21:10 +01:00
Qubasa
3a28e023e2
Moved history to own subcommand
2023-12-14 18:21:10 +01:00
Qubasa
7c36383075
Used inspect commands in vm-manager
2023-12-09 00:45:12 +01:00
Qubasa
4506202a82
Added clan flakes inspect command. Improved ClanURI. Added democlan as dependency in flake.nix
2023-12-09 00:09:21 +01:00
Jörg Thalheim
0e91f8721f
prefix nixpkgs# explicitly in nix_shell
...
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
Qubasa
22c26c3e1f
clan-vm-manager: Fixed assets folder not included
2023-12-04 16:56:42 +01:00
Johannes Kirschbauer
0ae7ce8f7c
extend clan history model
2023-12-02 16:16:38 +01:00
DavHau
3c68b201c7
remove outdated comment
2023-12-01 16:11:31 +07:00
DavHau
ae08c76c96
flake history: make operations atomic
2023-12-01 14:00:15 +07:00
Jörg Thalheim
59d1829f4d
disallow variable shadowing
2023-11-30 14:31:37 +01:00
Jörg Thalheim
6f0722c692
modernisation for python 3.11
2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6
enable more linting
2023-11-29 13:29:45 +00:00
Jörg Thalheim
647a4214fb
get rid of pydantic in cli
2023-11-21 12:48:35 +00:00
DavHau
7eb6132c1d
history: fix: store entries only once
2023-11-20 11:39:00 +07:00
DavHau
a982084ab4
api/flake/history: implement review requests
2023-11-17 18:26:55 +07:00
DavHau
2306417145
api/flake/list_history: init
...
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
DavHau
11fb73432b
api/flake/add: init
...
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
lassulus
082d628497
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
Qubasa
a00056824d
API: Added /api/flake/list. Added API grouping and description for better visibility
2023-11-03 22:05:33 +01:00
lassulus
b211fab82b
switch flake to main branch again
2023-10-31 13:01:16 +01:00
Qubasa
1fef2d1732
Fixed test_webui only failing in nix_sandbox
2023-10-29 19:35:29 +01:00
Qubasa
0be3dac289
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
8ff80b025c
Fixing a multitude of tests
2023-10-27 19:21:50 +02:00
Qubasa
adffdc14f6
Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test
2023-10-27 19:20:17 +02:00
Qubasa
3dc7d12e9c
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
Qubasa
9c8829c32f
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
0ab2b853f2
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18:45 +02:00
Qubasa
d96ea61243
Secrets tests passing. nix fmt doesn't complain
2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Qubasa
ecdd4949b7
Added new type FlakeName
2023-10-27 19:18:45 +02:00
Qubasa
f976121fa6
Added flake_name:str argument everywhere, nix fmt doesn't complain anymore
2023-10-27 19:15:40 +02:00
Qubasa
b09448ab6b
Updated to main
2023-10-27 19:15:11 +02:00