Commit Graph

301 Commits

Author SHA1 Message Date
Qubasa
3a11c0a746 Fixed vscode test debugging problem 2023-09-27 09:47:50 +00:00
Qubasa
991181bf3c Integrated pytest into vscode 2023-09-27 09:47:50 +00:00
Qubasa
c2fb42e953 Extracted threadpool to task_manager.py 2023-09-27 09:47:50 +00:00
Qubasa
04f3547be0 Added test 2023-09-27 09:47:50 +00:00
Qubasa
f6c8b963c1 Improving endpoint 2023-09-27 09:47:50 +00:00
Qubasa
d16bb5db26 Added threaded create_vm endpoint 2023-09-27 09:47:50 +00:00
Qubasa
7479fca82b Started working on vm_create 2023-09-27 09:47:50 +00:00
Qubasa
b86e02e183 vscode debugging integration added + README updated 2023-09-27 09:47:50 +00:00
Qubasa
9dca1a4672 CLI: Added custom logger 2023-09-27 09:47:50 +00:00
lassulus
904301c20e api/vm/create: start vm 2023-09-27 09:47:50 +00:00
Jörg Thalheim
74a3c85c29 move zerotier secret generation into nixos module 2023-09-26 17:57:43 +02:00
Jörg Thalheim
49c17cc6d0 drop wonky ipdb PYTHONBREAKPOINT 2023-09-26 15:50:02 +02:00
Jörg Thalheim
87aa063e86 create test_flake unique per test
otherwise we will have race conditions
2023-09-26 15:46:40 +02:00
Jörg Thalheim
7eab8c22cf replace bubblewrap with fakeroot
this restores macOS support.
2023-09-26 15:33:45 +02:00
clan-bot
677494811b Merge pull request 'clan config: print command in more instances' (#342) from Mic92-docs into main 2023-09-26 12:13:09 +00:00
Jörg Thalheim
f85fdf678d clan config: print command in more instances 2023-09-26 14:10:52 +02:00
clan-bot
da1927581d Merge pull request 'unpin nix-fast-build' (#341) from Mic92-docs into main 2023-09-26 12:02:05 +00:00
Jörg Thalheim
29a48725ef clan config: print command on error 2023-09-26 14:00:20 +02:00
DavHau
3783359f08 clan config: support new types nullOr and passwdEntry 2023-09-24 14:24:48 +01:00
DavHau
ec70b34470 clan config: match dynamic options containing <name> 2023-09-24 13:04:37 +01:00
DavHau
26972ca194 clan-cli: add --debug section 2023-09-24 08:53:26 +01:00
Johannes Kirschbauer
f3e66bd5a6 format python 2023-09-23 13:25:43 +02:00
Johannes Kirschbauer
09364671b3 inspect flake before configure VM 2023-09-23 13:20:25 +02:00
DavHau
e08c0b338d test_basics: add cli fixture 2023-09-22 19:23:23 +02:00
DavHau
9825c179a8 impure-tests: migrate bash to pytest and fix stuff 2023-09-22 18:32:28 +02:00
Jörg Thalheim
ea829a76cd config: git commit synched file 2023-09-22 16:55:51 +02:00
Jörg Thalheim
0d42c549b0 git: dont pass additional cwd 2023-09-22 16:52:11 +02:00
Jörg Thalheim
b482dcd466 make git idempotent 2023-09-22 16:38:46 +02:00
Jörg Thalheim
d9fd0e2a65 better error messages if git commands fail 2023-09-22 16:25:30 +02:00
Jörg Thalheim
fa9e8d757d add show-trace option that is disabled by default 2023-09-22 16:07:39 +02:00
Jörg Thalheim
e3b2424d9d make git optional again 2023-09-22 16:07:39 +02:00
Jörg Thalheim
e2cf3c1601 fix test not beeing exposed 2023-09-22 16:07:39 +02:00
Jörg Thalheim
d8bde6ec8e fix reading options 2023-09-22 14:54:44 +02:00
clan-bot
eb33150bdc Merge pull request 'config: read nixos option correctly' (#324) from Mic92-docs into main 2023-09-22 12:41:05 +00:00
Jörg Thalheim
660dafd412 config: read nixos option correctly 2023-09-22 14:38:23 +02:00
clan-bot
5125ebe1eb Merge pull request 'get rid of impure test' (#323) from Mic92-docs into main 2023-09-22 12:34:51 +00:00
Jörg Thalheim
51e8da2a74 config: get rid of impure eval 2023-09-22 14:32:38 +02:00
DavHau
0196fd72c3 git.commit_file: fix file path & repo path finding 2023-09-22 13:42:04 +02:00
Jörg Thalheim
41f1b8a15a perf? make clan-cli evaluate waaayyy faster
Before my small devshell to 7s. Now I am back to 2.6s
2023-09-22 09:00:08 +02:00
lassulus
17520e2553 fix impure tests 2023-09-21 18:29:18 +02:00
lassulus
58e5482efd clan-cli: set checks with mkDefault 2023-09-21 17:25:32 +02:00
lassulus
aeed648bd0 secrets: use clanInternal for crosscompiling, move sops generators to new file 2023-09-21 17:25:32 +02:00
Jörg Thalheim
18c360f729 make all pytest dependencies also available to impure tests 2023-09-21 17:25:32 +02:00
Jörg Thalheim
0314132a1a rewrite sops backend for secret generation and add tests 2023-09-21 17:22:20 +02:00
Jörg Thalheim
ead5c6e6a8 secrets: add has_machine and has_secret function 2023-09-21 17:22:20 +02:00
Jörg Thalheim
dc51ca5803 factor out deployment address parsing into a function 2023-09-21 17:22:20 +02:00
Jörg Thalheim
486ff4e7f4 age: generate private and public key in one go 2023-09-21 17:22:20 +02:00
DavHau
6a359c0a2f clan-cli: add git.commit_file() to auto commit files if inside a git
- 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
Jörg Thalheim
584b6e2775 fix updating assets in devshell 2023-09-20 15:39:55 +02:00
DavHau
0ee6de86af checks: run impure pytest tests in CI pipeline 2023-09-19 16:46:46 +02:00