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
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
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
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
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
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
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
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
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
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
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
d033f523b8
openapi: put a static version into the repository
...
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
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m51s
2023-11-24 15:00:08 +01:00
81512b99a3
start spice in background
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
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
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
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
8759e5a049
drop dependency on fastapi in the cli
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
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 3m1s
2023-11-21 14:25:51 +01:00
7afaaf8c5a
get rid of pydantic in cli
2023-11-21 12:48:35 +00:00
9f63f725d3
history: fix: store entries only once
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
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
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
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
...
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
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
...
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
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
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
checks-impure / test (pull_request) Successful in 1m55s
checks / test (pull_request) Successful in 2m28s
2023-11-15 21:57:08 +01:00
1ea13646ea
clan_cli: flake_name -> flake_dir
checks / test (pull_request) Failing after 1m7s
checks-impure / test (pull_request) Successful in 1m31s
2023-11-15 16:23:28 +01:00
9358dfb666
drop verbose command logging in task manager
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 1m46s
2023-11-15 07:21:26 +01:00
6cb41cb006
also regenerate secrets if a fact is missing
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
...
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
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
checks-impure / test (pull_request) Successful in 1m37s
checks / test (pull_request) Successful in 2m48s
2023-11-14 15:32:03 +01:00
6a52c5f15b
api/machines: allow config verification on imaginary machines
...
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
...
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
...
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
checks-impure / test (pull_request) Successful in 1m54s
checks / test (pull_request) Successful in 2m59s
2023-11-10 13:43:14 +01:00
c0be813a4c
dirs: opportuniscally create directories
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
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
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
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
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
39607a0925
api/schema: return list of missing modules
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
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m25s
2023-11-10 14:27:03 +07: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
...
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
7240727b26
Added deal contract framework and testing documentation
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Failing after 2m11s
2023-11-08 19:56:07 +01:00
7e99454462
api/machines: better input/output validation
...
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
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
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
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Failing after 1m33s
2023-11-04 09:15:15 +01:00
efa48052cf
API: Added /api/flake/list. Added API grouping and description for better visibility
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
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
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
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
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
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
checks-impure / test (pull_request) Failing after 1m20s
checks / test (pull_request) Failing after 1m55s
2023-10-29 19:35:29 +01:00
032cdd731a
Fixing test_clan_modules test
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
f9b1a8fa89
Removing find_git_repo
2023-10-27 19:26:03 +02:00
674d84a43a
Fixing test_vms_api test
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
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
3e4ad8ae1b
cli/vms/create: fix trailing newlines in log output
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
...
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
...
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
...
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
588bde069f
PUT api/machines/{name}/config: ensure only valid config is ever written
...
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
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
checks-impure / test (pull_request) Successful in 57s
checks / test (pull_request) Successful in 7m21s
2023-10-24 15:27:19 +01:00
a650d9c341
Merge pull request 'machines/install: call correct upload function' ( #426 ) from Mic92-main into main
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
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
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
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
checks-impure / test (pull_request) Successful in 59s
checks / test (pull_request) Successful in 2m1s
2023-10-08 14:39:31 +02:00
f885c877bc
clan-cli: improve debug logging
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
checks-impure / test (pull_request) Successful in 55s
checks / test (pull_request) Successful in 2m0s
2023-10-05 17:03:01 +02:00
4af74ee5a5
machines update: add --target-host
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
checks-impure / test (pull_request) Successful in 33s
checks / test (pull_request) Successful in 1m32s
2023-10-04 21:29:19 +02:00
bdd4cfc7d8
clan join: init
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
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
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
bc36ec4c1a
vms: support secrets and fix cross compilation
checks-impure / test (pull_request) Failing after 13s
checks / test (pull_request) Successful in 1m29s
2023-10-04 18:04:27 +02:00
fe1a3f0541
task_manager: fix race conditions
2023-10-04 17:52:06 +02:00
544322ee6e
webui: open browser in new window
...
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
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
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
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
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
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
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
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m23s
2023-10-03 17:48:56 +02:00
ff11340507
move out vm logic out of controller
2023-10-03 17:24:08 +02:00
dbe289f702
nix fmt
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-10-03 15:22:41 +02:00
8fa241a36b
Fixed upload_secrets_test
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Failing after 1m23s
2023-10-03 15:14:50 +02:00
7dde66c0df
Fixed upload_secrets_test
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m22s
2023-10-03 15:10:22 +02:00
be9d3d43bf
Fixing PYTHONPATH in secrets/generate test
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 15:01:13 +02:00
cb2815c4d0
nix fmt
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Successful in 1m23s
2023-10-03 14:39:29 +02:00
d8b69ec883
Added newlines against buffering for log streaming. Fixed cli
checks / test (pull_request) Failing after 1m25s
checks-impure / test (pull_request) Failing after 12s
2023-10-03 14:38:51 +02:00
d25c3a0940
Added newlines against buffering
2023-10-03 14:36:15 +02:00
2bbed10117
Added better logging
2023-10-03 14:16:07 +02:00
da72ec18ad
API: Added test for inspect_flake
2023-10-03 13:19:20 +02:00
c1c68ee1d8
Fixed failing tests
2023-10-03 13:15:01 +02:00
7e180d2f12
CLI: Restructured TaskManager and log collection
2023-10-03 13:15:01 +02:00
af17c1bd7a
Updated to main
2023-10-03 13:12:44 +02:00
c40a7bf3fb
smoke check error handling for create vm
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-10-03 11:43:06 +02:00
3c11eece4d
add error handling to endpoint
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Failing after 1m22s
2023-10-03 11:12:06 +02:00
ce7ae81a35
API: Added endpoint & test for /api/flake/attrs
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m43s
2023-10-01 12:50:54 +02:00
82db33d047
refine join workflow
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m21s
2023-09-30 16:00:21 +02:00
f224deace9
API: Improved vm_status and added some tests. Skip vm tests in VM
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-09-30 11:08:42 +02:00
89b7ffce6c
clan-cli secrets upload: secrets are populated into tmpdir
2023-09-29 20:05:35 +02:00
7ca9c49163
restore clanInternals with valid nixos config
2023-09-29 19:39:35 +02:00
a5f181a430
clan-cli: init vm command
2023-09-29 19:18:27 +02:00
0c91bb90ab
also encrypt secret for the machine itself
2023-09-28 17:51:37 +02:00
7184fe277d
webui: fix warning
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m20s
2023-09-28 16:31:59 +02:00
b366beeb2e
fix secrets script not beeing fetched
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-28 15:51:09 +02:00
16b33eb0a8
add toplevel machines-json that can deploy all hosts
2023-09-28 15:23:25 +02:00
cc70537a91
webui: pretty urls by also appending .html
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-28 11:09:31 +02:00
3f814c1e5f
clan update: fix deploymentAddress
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 22s
2023-09-27 21:11:52 +02:00
756820e4ca
clanInternals.machines: invert system and machine name
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 17:26:44 +02:00
166a2f795f
only pass experimental-features onces to nix-build
2023-09-27 13:08:24 +00:00
2f73e6b472
drop requirement for importing qemu-vm.nix
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 22s
2023-09-27 14:54:01 +02:00
974f07628b
vms: simplify args passed to create_subprocess_exec
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 12:30:06 +02:00
4317e681cf
cli: fix remaining typing errors
2023-09-27 09:47:50 +00:00
244ae37144
cli: simplify log handler
2023-09-27 09:47:50 +00:00
e5899c8e10
custom_logger: fix type errror in format_time
2023-09-27 09:47:50 +00:00
80aa7f06fb
task_manager: assert stdout/stderr exist to make mypy happy
2023-09-27 09:47:50 +00:00
dea49073cb
cli/vms: serialize uuid already in the api
2023-09-27 09:47:50 +00:00
08eab785c6
Completely working log streaming
2023-09-27 09:47:50 +00:00
8d390af122
Working log streaming
2023-09-27 09:47:50 +00:00
82c3d91e85
Working version
2023-09-27 09:47:50 +00:00
a8bab7bb96
Working log streaming
2023-09-27 09:47:50 +00:00
98028d121f
Working log streaming
2023-09-27 09:47:50 +00:00
c2fb42e953
Extracted threadpool to task_manager.py
2023-09-27 09:47:50 +00:00
f6c8b963c1
Improving endpoint
2023-09-27 09:47:50 +00:00
d16bb5db26
Added threaded create_vm endpoint
2023-09-27 09:47:50 +00:00
7479fca82b
Started working on vm_create
2023-09-27 09:47:50 +00:00
9dca1a4672
CLI: Added custom logger
2023-09-27 09:47:50 +00:00
904301c20e
api/vm/create: start vm
2023-09-27 09:47:50 +00:00
74a3c85c29
move zerotier secret generation into nixos module
checks-impure / test (pull_request) Failing after 7s
checks / test (pull_request) Successful in 23s
2023-09-26 17:57:43 +02:00
7eab8c22cf
replace bubblewrap with fakeroot
...
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m17s
this restores macOS support.
2023-09-26 15:33:45 +02:00
677494811b
Merge pull request 'clan config: print command in more instances' ( #342 ) from Mic92-docs into main
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m17s
assets1 / test (push) Successful in 6s
2023-09-26 12:13:09 +00:00
f85fdf678d
clan config: print command in more instances
checks / test (pull_request) Successful in 23s
checks-impure / test (pull_request) Successful in 9s
2023-09-26 14:10:52 +02:00
da1927581d
Merge pull request 'unpin nix-fast-build' ( #341 ) from Mic92-docs into main
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 1m18s
assets1 / test (push) Successful in 6s
2023-09-26 12:02:05 +00:00
29a48725ef
clan config: print command on error
checks / test (pull_request) Successful in 1m18s
checks-impure / test (pull_request) Successful in 10s
2023-09-26 14:00:20 +02:00
3783359f08
clan config: support new types nullOr and passwdEntry
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 14:24:48 +01:00
ec70b34470
clan config: match dynamic options containing <name>
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 13:04:37 +01:00
26972ca194
clan-cli: add --debug section
checks / test (pull_request) Successful in 24s
checks-impure / test (pull_request) Successful in 8s
2023-09-24 08:53:26 +01:00
f3e66bd5a6
format python
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m18s
2023-09-23 13:25:43 +02:00
09364671b3
inspect flake before configure VM
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Failing after 1m19s
2023-09-23 13:20:25 +02:00
9825c179a8
impure-tests: migrate bash to pytest and fix stuff
checks-impure / test (pull_request) Successful in 7s
checks / test (pull_request) Successful in 23s
2023-09-22 18:32:28 +02:00
ea829a76cd
config: git commit synched file
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 26s
2023-09-22 16:55:51 +02:00
0d42c549b0
git: dont pass additional cwd
2023-09-22 16:52:11 +02:00
b482dcd466
make git idempotent
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 21s
2023-09-22 16:38:46 +02:00
d9fd0e2a65
better error messages if git commands fail
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 24s
2023-09-22 16:25:30 +02:00
fa9e8d757d
add show-trace option that is disabled by default
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m16s
2023-09-22 16:07:39 +02:00
e3b2424d9d
make git optional again
2023-09-22 16:07:39 +02:00
d8bde6ec8e
fix reading options
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m2s
2023-09-22 14:54:44 +02:00
eb33150bdc
Merge pull request 'config: read nixos option correctly' ( #324 ) from Mic92-docs into main
checks-impure / test (push) Successful in 11s
checks / test (push) Successful in 58s
assets1 / test (push) Successful in 6s
2023-09-22 12:41:05 +00:00
660dafd412
config: read nixos option correctly
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 20s
2023-09-22 14:38:23 +02:00
5125ebe1eb
Merge pull request 'get rid of impure test' ( #323 ) from Mic92-docs into main
checks / test (push) Successful in 58s
assets1 / test (push) Successful in 6s
checks-impure / test (push) Successful in 9s
2023-09-22 12:34:51 +00:00
51e8da2a74
config: get rid of impure eval
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-22 14:32:38 +02:00
0196fd72c3
git.commit_file: fix file path & repo path finding
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m3s
2023-09-22 13:42:04 +02:00
17520e2553
fix impure tests
2023-09-21 18:29:18 +02:00
aeed648bd0
secrets: use clanInternal for crosscompiling, move sops generators to new file
2023-09-21 17:25:32 +02:00
0314132a1a
rewrite sops backend for secret generation and add tests
2023-09-21 17:22:20 +02:00
ead5c6e6a8
secrets: add has_machine and has_secret function
2023-09-21 17:22:20 +02:00
dc51ca5803
factor out deployment address parsing into a function
2023-09-21 17:22:20 +02:00
486ff4e7f4
age: generate private and public key in one go
2023-09-21 17:22:20 +02:00
6a359c0a2f
clan-cli: add git.commit_file() to auto commit files if inside a git
...
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 34s
- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
2023-09-21 14:07:54 +02:00
4a0949f5dc
Merge pull request 'clan-cli/update: also use correct flake attr for generating secret' ( #307 ) from Mic92-deploy-fix into main
checks / test (push) Successful in 1m27s
checks-impure / test (push) Successful in 7s
2023-09-19 13:32:18 +00:00
3cb916d50f
clan-cli/update: also use correct flake attr for generating secret
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 1m27s
2023-09-19 15:20:11 +02:00
c11f73c4d0
clan config: fix settings file location
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m10s
2023-09-19 15:12:29 +02:00
9b6fafcb2d
clan config: re-enable clan config
2023-09-19 15:12:29 +02:00
2931b08b46
clan-cli/update: use correct flake attr when deploying
checks-impure / test (pull_request) Has been cancelled
checks / test (pull_request) Has been cancelled
2023-09-19 14:19:48 +02:00
90718da5b4
Merge pull request 'use experimental flags everywhere' ( #298 ) from Mic92-vm-api into main
checks / test (push) Has been cancelled
checks-impure / test (push) Has been cancelled
2023-09-19 11:16:30 +00:00
f6a7e42e38
cli: rename admin create to create
2023-09-19 13:12:10 +02:00
a65413c98e
use experimental flags everywhere
2023-09-19 13:12:10 +02:00
18714d6657
reformat
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m24s
2023-09-16 16:28:36 +02:00
1bcff16b66
add join clan page
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Failing after 1m39s
2023-09-16 16:21:33 +02:00
a29f301f84
add vms
2023-09-15 14:02:40 +00:00
8a96254100
nix_build: add experimental flags
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m22s
2023-09-15 14:30:17 +02:00
8d29d0e69c
clan-cli: get deploymentAddress from clan.networking
2023-09-15 12:17:07 +00:00
0132abc547
secrets: use CLAN_DIR instead of clanCore.clanDir for fact storage
2023-09-15 12:17:07 +00:00