Commit Graph

686 Commits

Author SHA1 Message Date
d20f47ad5b CLI: History supports multiple attrs from the same url now. Errors when executing the cli are formatted better
All checks were successful
checks-impure / test (pull_request) Successful in 1m30s
checks / test (pull_request) Successful in 2m26s
2024-01-16 16:16:12 +01:00
abfa2f218c cmd.py refactor part 7
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m53s
2024-01-12 17:37:59 +01:00
0c1d4a1d41 cmd.py refactor part 6
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m49s
2024-01-12 17:21:48 +01:00
1a6983e031 cmd.py refactor part 6 2024-01-12 17:02:56 +01:00
ca5cc389ac cmd.py refactor part 5
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m49s
2024-01-12 16:52:34 +01:00
2c2e4862ba Fixed duplicate logging issue with correct logging in ssh and in root logger
All checks were successful
checks-impure / test (pull_request) Successful in 1m29s
checks / test (pull_request) Successful in 2m47s
2024-01-12 16:46:44 +01:00
47f4ef2c31 revert logger changes in f7c6ab5888
All checks were successful
checks-impure / test (pull_request) Successful in 1m16s
checks / test (pull_request) Successful in 29s
This adds another logger to the logger in clan_cli.ssh which we do not want
2024-01-12 14:48:36 +01:00
796ef76893 cmd: add a timeout in select
All checks were successful
checks-impure / test (pull_request) Successful in 1m23s
checks / test (pull_request) Successful in 2m42s
2024-01-12 00:20:22 +01:00
05aaa180e0 cmd.py: Fix busy loop.
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 3m3s
2024-01-12 00:13:21 +01:00
1d489438bd Re-added rlist.remove to counter busy loop 2024-01-12 00:08:15 +01:00
0941367bb3 cmd.py: Fix deadlock because of incorrect select usage
All checks were successful
checks-impure / test (pull_request) Successful in 1m20s
checks / test (pull_request) Successful in 2m53s
2024-01-11 23:03:14 +01:00
3351f87a7f Removed duplicate logging messages
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m52s
2024-01-11 22:46:29 +01:00
d1ca0eaf80 Identified deadlocking funciton
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m54s
2024-01-11 22:28:35 +01:00
4d4c09da80 Enabled logging DEBUG in pytest 2024-01-11 22:14:55 +01:00
f7c6ab5888 Working test_secrets_generate
Some checks failed
checks / test (pull_request) Successful in 2m49s
checks-impure / test (pull_request) Has been cancelled
2024-01-11 21:48:39 +01:00
16b043f508 cmd.py: Fixing bug: missing output because of forgotten flush() call 2024-01-11 21:11:49 +01:00
0133ccd5f7 Fixed missing log.BOTH and error_msg at prev refactors 2024-01-11 21:11:49 +01:00
2ae439ec52 cmd.py refactor part 4 2024-01-11 21:11:49 +01:00
f6b6229f78 schema: set also clanName
Some checks failed
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Failing after 2m49s
this is usually set by buildClan
2024-01-11 17:41:41 +01:00
93fa4e397b Merge pull request 'cmd.py part 3 refactor' (#706) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m49s
2024-01-10 17:57:51 +00:00
359275eee7 Improved error message. Fixed incorrect ret code check in git.py
All checks were successful
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Successful in 2m50s
2024-01-10 18:54:34 +01:00
64846eb395 Fixed bug, where exception is raised where there shouldn't be raised one 2024-01-10 18:46:54 +01:00
b36d0be524 cmd.py part 3 refactor
Some checks failed
checks-impure / test (pull_request) Failing after 1m25s
checks / test (pull_request) Failing after 3m8s
2024-01-10 18:39:19 +01:00
46da9eb5db Merge pull request 'Added ClanCmdError. cmd.run now returns this error' (#704) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m18s
checks / test (push) Successful in 2m50s
2024-01-10 17:02:08 +00:00
699515ca89 Added ClanCmdError. cmd.run now returns this error
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 3m3s
2024-01-10 17:58:39 +01:00
f34df3df02 Merge pull request 'Refactor subprocess to cmd.py part 2' (#685) from Qubasa-main into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m50s
2024-01-10 16:34:38 +00:00
626e5558f3 Fix cmd to default print on all outputs. Default print on stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m17s
checks / test (pull_request) Successful in 2m51s
2024-01-10 17:31:11 +01:00
c41bc10325 nix fmt
Some checks failed
checks-impure / test (pull_request) Failing after 1m19s
checks / test (pull_request) Successful in 2m50s
2024-01-10 17:19:33 +01:00
54f2eba1cc nix fmt 2024-01-10 17:19:12 +01:00
40beda884c Updated cmd.py with Mic92 changes to fit previous changes 2024-01-10 17:18:21 +01:00
eeac4902ab re-anble pulseaudio in qemu
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 3m0s
2024-01-10 15:32:37 +01:00
ba05589af2 Refactor subprocess to cmd.py part 2
Some checks failed
checks-impure / test (pull_request) Failing after 16s
checks / test (pull_request) Failing after 40s
2024-01-10 12:11:29 +01:00
26e9463248 Merge pull request 'cmd: rework redirecting stdout/stderr' (#700) from Mic92-wayland-update into main
All checks were successful
checks-impure / test (push) Successful in 1m19s
checks / test (push) Successful in 2m36s
2024-01-09 16:39:19 +00:00
fa00bb522b cmd: rework redirecting stdout/stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m16s
checks / test (pull_request) Successful in 2m40s
2024-01-09 17:34:43 +01:00
520ff0b334 VMs: ensure state dirs don't collide between clans
All checks were successful
checks-impure / test (pull_request) Successful in 1m20s
checks / test (pull_request) Successful in 2m37s
2024-01-09 17:22:48 +07:00
17390fc392 VMs: port vm_persistence test to python
All checks were successful
checks-impure / test (pull_request) Successful in 1m21s
checks / test (pull_request) Successful in 2m40s
2024-01-09 14:47:33 +07:00
c29e0086a4 VMs: persist state folders on host
All checks were successful
checks-impure / test (pull_request) Successful in 1m24s
checks / test (pull_request) Successful in 2m40s
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
f9dd2e0926 strip whitespace from clan uris
All checks were successful
checks-impure / test (pull_request) Successful in 1m8s
checks / test (pull_request) Successful in 2m44s
2024-01-04 16:30:26 +01:00
e4a7f68b0e Fixed cmd.py writing to stderr
All checks were successful
checks-impure / test (pull_request) Successful in 1m7s
checks / test (pull_request) Successful in 2m42s
2024-01-02 17:21:06 +01:00
3f55c688d9 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 2024-01-02 17:21:06 +01:00
69d08241e9 delete unecessary f.truncate 2024-01-02 17:21:06 +01:00
ef827af89c Fixed unsafe dirs.py urlquoting, improved cmd.py run func 2024-01-02 17:21:06 +01:00
7c5ed85231 clan_uri: Support all other formats by just differentiating between remote and local 2024-01-02 17:21:05 +01:00
0ecfaa96cf drop references to debug.py
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 1m43s
2024-01-02 15:22:36 +01:00
e7bd86a9d5 dirs.py: remove outdated comment
All checks were successful
checks-impure / test (pull_request) Successful in 1m12s
checks / test (pull_request) Successful in 2m48s
2024-01-02 14:25:37 +07:00
7be42146e7 vm-manager: Added right click context menu
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m42s
2024-01-02 07:24:30 +01:00
01977b2e2a vm-manager: More error handling 2024-01-02 06:23:55 +01:00
9ec1d594e7 Removed unecessary debug.py and test code
All checks were successful
checks / test (pull_request) Successful in 28s
checks-impure / test (pull_request) Successful in 1m1s
2024-01-01 18:58:12 +01:00
42235e39be Added settings attribute to history file
All checks were successful
checks-impure / test (pull_request) Successful in 1m13s
checks / test (pull_request) Successful in 2m51s
2024-01-01 18:24:40 +01:00
7069d746ad Added write and read history file functions 2023-12-31 15:17:12 +01:00