36baec8d48
clan-cli SecretStore: implement update_check in base class
2024-02-20 11:47:53 +01:00
eb8d5167e7
Merge pull request 'sops: unbreak edit flags' ( #860 ) from Mic92-target_host into main
checks-impure / test (push) Successful in 1m55s
checks / test (push) Successful in 2m43s
2024-02-20 10:18:17 +00:00
b358089488
sops: unbreak edit flags
checks-impure / test (pull_request) Successful in 1m56s
checks / test (pull_request) Successful in 2m49s
2024-02-20 11:07:00 +01:00
36b20f18d4
Merge pull request 'add option to set defaultGroups for secrets' ( #858 ) from Mic92-target_host into main
checks-impure / test (push) Successful in 1m54s
checks / test (push) Successful in 2m46s
2024-02-16 16:29:28 +00:00
52c6ad548d
improve error message if group does not exists
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m43s
2024-02-16 17:26:20 +01:00
57e9b27ff8
add option to set defaultGroups for secrets
2024-02-16 17:26:20 +01:00
661004972b
Merge pull request 'make secrets stores inherit from an interface' ( #857 ) from Mic92-target_host into main
checks-impure / test (push) Successful in 1m56s
checks / test (push) Successful in 2m47s
2024-02-16 14:00:20 +00:00
714f3b0378
upload_secrets: call update_check directly without introspection
checks-impure / test (pull_request) Successful in 1m59s
checks / test (pull_request) Successful in 2m49s
2024-02-16 14:57:01 +01:00
87f301122e
split of generate_secrets method into smaller functions
checks-impure / test (pull_request) Successful in 2m19s
checks / test (pull_request) Successful in 3m16s
2024-02-16 14:48:46 +01:00
53d658a3c0
make facts stores inherit from an interface
2024-02-16 14:47:39 +01:00
9257f140ba
make secrets stores inherit from an interface
2024-02-16 14:47:28 +01:00
a715364338
Merge pull request 'clan-vm-manager: Added clan icon to trayicon' ( #855 ) from Qubasa-main into main
checks-impure / test (push) Successful in 1m55s
checks / test (push) Successful in 2m45s
2024-02-16 09:14:08 +00:00
280bee0861
clan-vm-manager: Fixing vm starting.
checks-impure / test (pull_request) Successful in 2m7s
checks / test (pull_request) Successful in 2m53s
2024-02-16 16:10:49 +07:00
81545766a0
update comments about virtio-gpu
checks-impure / test (pull_request) Successful in 2m9s
checks / test (pull_request) Successful in 2m59s
2024-02-16 09:52:13 +01:00
4f7f34f9b4
clan-vm-manager: Added clan icon to trayicon
2024-02-16 12:25:06 +07:00
0200016dd2
vms: move qemu_command to its own module
checks-impure / test (pull_request) Successful in 2m7s
checks / test (pull_request) Successful in 3m16s
2024-02-15 17:25:24 +01:00
8e780b2a8c
vms: drop unused xchdir
checks-impure / test (pull_request) Successful in 2m10s
checks / test (pull_request) Successful in 3m5s
2024-02-15 17:19:43 +01:00
a399cbb8d9
vms: move virtiofsd/waypipe into their own modules
2024-02-15 17:19:31 +01:00
4943c33307
add file prefix for nix 2.19 or newer
checks-impure / test (pull_request) Successful in 1m55s
checks / test (pull_request) Successful in 2m45s
2024-02-15 12:24:18 +01:00
6871b29d15
vms: use vm fact/secret-store
checks-impure / test (pull_request) Successful in 1m56s
checks / test (pull_request) Successful in 2m17s
2024-02-15 10:41:25 +01:00
98139ac48d
add factsStore modules
2024-02-15 10:41:25 +01:00
1cc6e74297
Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' ( #840 ) from Qubasa-add_spinner into main
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
checks-impure / test (pull_request) Successful in 1m43s
checks / test (pull_request) Successful in 2m45s
2024-02-14 15:40:03 +07:00
952f976ea7
fix virtiofsd in CIs
checks-impure / test (pull_request) Successful in 1m41s
checks / test (pull_request) Successful in 2m40s
2024-02-13 13:57:52 +01:00
b15c21f800
drop check for /var/lib/nixos
2024-02-13 12:44:22 +01:00
8f98f0e8b7
also use qcow2 for volatile state
2024-02-13 11:45:42 +01:00
3bf94ab0fc
use virtio-console instead of serial for vm
2024-02-13 11:45:42 +01:00
11ac50c17b
format rootfs in vm itself
2024-02-13 11:45:42 +01:00
07caab537f
drop unused mounts
2024-02-13 11:45:42 +01:00
7f8ba25a5b
qemu: disable sea-bios and option rom
2024-02-13 11:45:42 +01:00
ef202a8150
switch to sops-nix experimental branch
2024-02-13 11:45:23 +01:00
d6b3e03d70
vms: integrate virtiofsd
2024-02-13 11:44:17 +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
7d301b7e3c
update flake lock
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Failing after 29s
2024-02-12 14:52:01 +07:00
0ce8bcd018
clan_vm_manager: Added VM shutdown timeout
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Successful in 2m48s
2024-02-12 14:16:44 +07:00
eebd9d0b4a
allow passing of extra_config into machines
checks-impure / test (pull_request) Successful in 1m40s
checks / test (pull_request) Successful in 2m41s
2024-02-11 08:40:41 +01:00
02dd132e08
vms: init graceful shutdown for GUI
...
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
030cbd24ce
Clan VM Manager: detect if clan exists
checks-impure / test (pull_request) Successful in 1m48s
checks / test (pull_request) Successful in 2m52s
2024-02-07 16:08:48 +07:00
b780754621
clan-cli: add simple flash command
2024-02-07 05:26:01 +01:00
6fe6229498
add requireExplicitUpdate option for mobile devices
checks-impure / test (pull_request) Successful in 1m46s
checks / test (pull_request) Successful in 3m1s
2024-02-06 17:55:34 +01:00
be3a75bbd7
add support for build machines
2024-02-06 17:21:42 +01:00
2315dba2a9
rename machine.host to machine.target_host
2024-02-06 17:21:42 +01:00
6e57122da8
rename target_host to target_host_address
2024-02-06 17:21:42 +01:00
301a6b6a23
machines/update: get flake_attr from machine class
2024-02-06 17:21:42 +01:00
a2f0d077c8
remove unused ssh.run method
2024-02-06 15:47:32 +01:00
c66c25aeb7
machines: don't ignore errors when parsing secretsData json
checks-impure / test (pull_request) Successful in 1m46s
checks / test (pull_request) Successful in 2m44s
2024-02-06 15:15:21 +01:00
91f26a4743
skip machines without target_host when running clan machines update
checks-impure / test (pull_request) Successful in 1m45s
checks / test (pull_request) Successful in 2m57s
2024-02-06 15:04:19 +01:00
ad1a87fc14
move checks if targetHost/buildHost is set to cli
checks-impure / test (pull_request) Successful in 1m39s
checks / test (pull_request) Successful in 2m45s
2024-02-06 14:51:44 +01:00
ab05cfde30
clan_manager: Implemented machine_icon, machine_description
checks-impure / test (pull_request) Successful in 1m39s
checks / test (pull_request) Successful in 2m41s
2024-02-06 20:13:18 +07:00
21443d0647
cli,nix: Add machine_icon, machine_description
checks-impure / test (pull_request) Successful in 1m48s
checks / test (pull_request) Successful in 3m0s
2024-02-06 19:25:34 +07:00
815527ec2b
clan-cli secrets: commit facts/secrets after generating them
checks-impure / test (pull_request) Successful in 1m46s
checks / test (pull_request) Successful in 2m51s
2024-02-05 10:03:10 +01:00
e265537f69
clan-cli secrets: remove debug output
2024-02-05 10:03:10 +01:00
8114cebaa4
clan-cli git: add commit_files function
2024-02-05 10:03:10 +01:00
31188648f0
clan-cli update: remove legacy argument
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m44s
2024-02-03 07:53:15 +01:00
6a62065cdf
clan-cli update: upload only local paths from localhost
2024-02-03 07:53:15 +01:00
315cdea6ce
clan-cli machines: remove debug prints
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m39s
2024-02-02 17:40:19 +01:00
605b03bb91
clan-cli password-store: remove debug print
2024-02-02 17:40:19 +01:00
bcdde990ff
clan-cli secrets: add check command
2024-02-02 17:40:19 +01:00
3538cf2e46
rename deployment address to target address
...
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
7daca31db7
Merge pull request 'Starting to implement logs' ( #796 ) from Qubasa-main into main
checks-impure / test (push) Successful in 1m35s
checks / test (push) Successful in 2m42s
2024-02-02 05:07:39 +00:00
16562946fe
vm-manager: Added log console printing on vm start. Added python logging module
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m41s
2024-02-02 12:04:30 +07:00
789f3132c5
Merge pull request 'multi join via cli' ( #795 ) from hsjobeki-main into main
checks-impure / test (push) Successful in 1m33s
checks / test (push) Successful in 2m42s
2024-02-02 04:01:49 +00:00
e57169cb29
multi join via cli
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m43s
2024-02-02 10:58:28 +07:00
56b6907740
qemu: init python modules for qmp and qga
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m53s
2024-02-01 12:32:21 +07:00
533012af7d
vms: rename wayland attrs to waypipe
...
checks / test (pull_request) Successful in 1m2s
checks-impure / test (pull_request) Successful in 1m34s
And remove the options from the cli interface.
2024-02-01 10:14:36 +07:00
f89c9b00dd
vms: wayland attr specified in configuration
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m43s
2024-02-01 09:00:43 +07:00
59fa63eba9
Reapply "vm-state: fix and improve testing"
...
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
961eb26335
secrets modules: pass secrets as bytes
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m17s
2024-01-30 12:11:05 +01:00
0dbfe52d62
secrets: add sandbox user
2024-01-30 12:11:05 +01:00
649e345585
Machine __str__ impl
checks-impure / test (pull_request) Successful in 1m24s
checks / test (pull_request) Successful in 2m37s
2024-01-30 15:32:35 +07:00
52f5c890cc
URI: Fixed removed url fragment
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m41s
2024-01-30 13:28:12 +07:00
a50d0f1743
CLI: Added grouping output for clan history list.
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
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
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
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
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"
...
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.
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
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
...
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
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
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
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
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.
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
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
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 )
...
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
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
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
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
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
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
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
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
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
...
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
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.
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
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
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
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
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
...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
...
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
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
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
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
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
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
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
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
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
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
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
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.
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
...
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
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
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
...
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
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
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
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
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
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
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
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
...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m17s
2023-11-28 10:05:45 +01:00