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
3f55c688d9
Refactor subprocess to cmd.py part 1. Fixed clan_uri test.
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
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
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
771c0e43ca
Moved history to own subcommand
2023-12-14 18:21:10 +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
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
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
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
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
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
bdcf5dbe8b
extend clan history model
2023-12-02 16:16:38 +01:00
4fd84d1c48
disallow variable shadowing
2023-11-30 14:31:37 +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
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
02a6162a1d
test: add ipv6 example without port
2023-11-29 11:38:01 +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
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
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
7afaaf8c5a
get rid of pydantic in cli
2023-11-21 12:48:35 +00: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
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
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
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
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
f2e2d50c06
Merge pull request 'add module for meshnamed' ( #499 ) from Mic92-sops-nix into main
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m35s
checks / test (push) Successful in 2m49s
2023-11-14 12:01:26 +00:00
bdc8ef63ed
add module for meshnamed
checks / test (pull_request) Successful in 47s
checks-impure / test (pull_request) Successful in 1m39s
2023-11-14 12:58:15 +01:00
2dcdf738ce
api/machines: add test ensuring empty config is valid
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m47s
2023-11-13 21:56:02 +07: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
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
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
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
c28089d4b2
allow to persist zerotier identities/ips/meshnames for non-controller
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m19s
2023-11-10 11:56:54 +01: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
b8ed607658
also override XDG_DATA_HOME in tests
...
otherwise tests will fail if XDG_DATA_HOME is set by a user
2023-11-09 17:45:24 +01:00
af0714132d
clan: use .local/share as default for XDG_DATA_HOME
2023-11-09 17:45:24 +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
10e52699be
Fixed wrong examples
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m42s
2023-11-08 21:40:17 +01: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
b09bb155c1
nix fmt
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Failing after 1m51s
2023-11-03 22:22:16 +01:00
2d4a20457b
Fixing failing test
checks-impure / test (pull_request) Has been cancelled
checks / test (pull_request) Has been cancelled
2023-11-03 22:21:22 +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
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
e6675cb4d9
format pytest
checks / test (pull_request) Failing after 1m18s
checks-impure / test (pull_request) Successful in 1m20s
2023-10-28 18:38:14 +02: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
eafc55f2e7
Fixing deadlock
2023-10-27 19:26:03 +02:00
f9b1a8fa89
Removing find_git_repo
2023-10-27 19:26:03 +02:00
0378e01cbb
Fixing test_vms_api test
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
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
03cabda2d4
Improved test logging with frame inspection
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
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
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