Commit Graph

161 Commits

Author SHA1 Message Date
Jörg Thalheim
f04ed457db cli: default template url should come from the package itself rather than our gitea
This allow easier testing and also forks.
2024-07-22 08:22:58 +02:00
Johannes Kirschbauer
fbe27bfa0a Classgen: add mapped keys and more stuff 2024-07-18 21:58:36 +02:00
DavHau
e7d5a6f854 impure-checks: improve performance by disabling dynamic deps 2024-07-16 12:42:45 +07:00
DavHau
430adc875a clan-cli: improve runtime dependency management
Many dependencies of clan-cli  are currently dynamically loaded via nix-shell on each execution.
This is nice, as it reduces the initial closure size of clan, but the overhead introduced by nix-shell piles up quickly, as some commands shell out many times during their lifetime. For example, when adding a secret git is called 10+ times.

This reduces the time of a test which adds a secret from around 50 seconds to 15 seconds.

- add run_cmd() as an alternative to nix_shell()
- introduce the concept of static dependencies which do not need to go through nix-shell
- static dependencies are defined at build time and included into the wrapper for clan-cli
- add package: clan-cli-full which statically ships all required dependencies

TODO: deprecate nix_shell() in favor of run_cmd()
2024-07-11 15:34:41 +07:00
Jörg Thalheim
cb9fbc969b introduce minifakeroot that also works on macos 2024-06-27 18:53:10 +02:00
a-kenji
98b438754a clan: remove very obvious comments
Remove some very obvious comments as to not lose meaning of the
comments.

We want comments that convey non-obvious behavior so they will be
actually read.
2024-06-07 14:45:53 +02:00
a-kenji
ac7b30c43f clan: install shell completions for zsh 2024-06-06 23:20:54 +02:00
DavHau
0820c59df5 gui-installer: depend on git + ignore flake config 2024-05-29 17:42:44 +02:00
Qubasa
a3c94bc73b clan-cli: Fix nix develop not working in template because of symlink 2024-05-27 14:00:31 +02:00
Qubasa
b1dd5c2832 Add --ssh-pubkey FILE argument 2024-05-14 15:41:15 +02:00
DavHau
e09658c817 secrets: ensure all added/deleted files get committed 2024-04-24 17:26:32 +07:00
Qubasa
d6d8a88549 clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself 2024-03-24 23:36:00 +01:00
Jörg Thalheim
ede4d3f6e5 re-format with nixfmt 2024-03-17 19:48:49 +01:00
a-kenji
dd0b5c0ae7 fix: typo 2024-03-12 17:37:19 +01:00
Jörg Thalheim
b4a94e66f8 clan-cli: drop unused variables 2024-01-30 10:30:25 +07:00
Qubasa
001a48da52 Removed python deal. 2023-12-30 23:10:43 +01:00
Qubasa
c6188c17fb pytest: Removed -s flag for CI 2023-12-26 18:20:41 +01:00
Qubasa
999747c5fc Deleted everything webui 2023-12-14 18:47:14 +01:00
Qubasa
c00a1983fa Removed democlan dependency 2023-12-09 00:23:19 +01:00
Qubasa
b60aef97f9 Removed democlan dependency 2023-12-09 00:19:30 +01:00
Qubasa
4506202a82 Added clan flakes inspect command. Improved ClanURI. Added democlan as dependency in flake.nix 2023-12-09 00:09:21 +01:00
Jörg Thalheim
d394792238 openapi: put a static version into the repository
This avoids a lot of rebuilds and we can also track api changes better
2023-11-24 15:56:27 +01:00
Jörg Thalheim
47471c666b clan-vm-manager: add nix package 2023-11-23 15:30:44 +01:00
Jörg Thalheim
d35229216e mv clan-vm-manager to its own package 2023-11-23 15:03:46 +01:00
Qubasa
dddbe74d6a Added gtk demo app 2023-11-23 15:03:38 +01:00
Jörg Thalheim
6649240494 drop desktop item from cli 2023-11-21 15:26:36 +01:00
Jörg Thalheim
f27b1da6b9 drop dependency on fastapi in the cli 2023-11-21 15:09:18 +01:00
Qubasa
ad4032e214 schemathesis: Add as runnable application instead of library to resolve httpx dependency collision issue 2023-11-20 17:14:12 +01:00
Jörg Thalheim
5d36878206 drop schemathesis
This creates conflicting python packages when included
2023-11-15 16:48:46 +01:00
Jörg Thalheim
2e939bedd6 moving deal dependencies to tests only 2023-11-10 12:39:24 +01:00
DavHau
fc1591a0a8 api/schema: get schema without having a machine
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
Qubasa
d7b563bbb7 Added deal as python dependency 2023-11-08 20:14:32 +01:00
Qubasa
e565c0527c Added schemathesis dependency 2023-11-08 19:56:05 +01:00
Qubasa
dbe32b5e72 Flake: Added python package deal as dependency 2023-11-08 19:55:11 +01:00
Qubasa
5bd2345bc1 Commit only for debugging Container 2023-10-27 19:26:03 +02:00
Qubasa
6d0deefa6b Added ipdb as breakpoint console. Improved logging. 2023-10-27 19:19:45 +02:00
Qubasa
0ab2b853f2 Improved logging messages. Added ClanError if flake create or machine create already exist 2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests 2023-10-27 19:18:45 +02:00
Qubasa
58b54bb9df API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem 2023-10-27 19:11:27 +02:00
Jörg Thalheim
1b98be4fb7 move breakpoint checks out of default build
this allows to debug builds with breakpoints
2023-10-27 17:40:20 +02:00
DavHau
4f9fa94e46 clan-cli: improve debug logging 2023-10-05 17:37:33 +02:00
DavHau
b8da1a8e08 clan-cli: unset LD_LIBRARY_PATH
This prevents problems with mixed glibc versions that might occur when the cli is called through a browser built against another glibc
2023-10-05 13:44:08 +02:00
DavHau
e6f1ba9291 clan join: init 2023-10-04 18:53:59 +02:00
DavHau
a2f729fb2a webui: open browser in new window
This gets closer to an app like feeling
2023-10-04 17:26:55 +02:00
DavHau
7b157b279f clan-cli: stop propagating build inputs, remove wrapper 2023-10-04 10:36:39 +02:00
Jörg Thalheim
df6962d316 add missing e2fsprogs to runtime inputs 2023-10-03 17:24:08 +02:00
lassulus
34dec8d194 tests: add test_secrets_password_store 2023-09-29 20:05:35 +02:00
lassulus
d1cf62cc59 clan-cli: init vm command 2023-09-29 19:18:27 +02:00
Jörg Thalheim
676329aed9 clan-cli: symlink cli into an otherwise empty package
This avoids propagating unneeded python libraries
2023-09-28 12:19:16 +02:00
Jörg Thalheim
156ff510bc don't propagate python libraries into a devshell 2023-09-28 11:58:09 +02:00