Commit graph

903 commits

Author SHA1 Message Date
d5b904f141
- BatchMode 2025-09-03 14:27:50 +02:00
6a239c70c2
rm unused ssh settings 2025-09-03 14:27:50 +02:00
c76e909ced
dedupe inputDerivations 2025-09-03 14:27:50 +02:00
55c65ee281
rm cowsay 2025-09-03 14:26:25 +02:00
bfe0f422c7
remove unused JSON-serialized args (sources) 2025-09-03 14:26:25 +02:00
9a2927e96b
factor out to nixos.nix 2025-09-03 14:26:25 +02:00
2d0bf2d701
rm users 2025-09-03 14:18:16 +02:00
a99bbca69b
simplify grub 2025-09-03 14:18:16 +02:00
88ad3980c6
rm users 2025-09-03 14:18:16 +02:00
b16e569787
reenable ipv6 2025-09-03 14:18:16 +02:00
8566220451
reenable firewall 2025-09-03 14:18:16 +02:00
108637e295
rm comments 2025-09-03 14:18:16 +02:00
c53b1341b8
rm getty 2025-09-03 14:18:16 +02:00
adb8b46ff9
mv attempts 2025-09-03 14:18:16 +02:00
a4e891c3c4
download-attempts: settle for just targetNode 2025-09-03 14:18:16 +02:00
55d6760da8
rm comment 2025-09-03 14:18:16 +02:00
e3c767cb91
restore imports 2025-09-03 14:18:16 +02:00
f751f4c181
dedupe nixosTest.nix 2025-09-03 14:18:16 +02:00
7cd25eae94
qemu guest 2025-09-03 14:18:16 +02:00
acc8432b7c
grub 2025-09-03 14:18:16 +02:00
e9526fc038
auto login 2025-09-03 14:18:16 +02:00
e685f7058f
networking 2025-09-03 14:18:16 +02:00
1403677aa5
users 2025-09-03 14:18:16 +02:00
605d350d94
handle test outcome 2025-09-03 14:18:16 +02:00
43183d70c2
specialArgs: sources 2025-09-03 14:18:16 +02:00
d800e93503
nix in tests: download-attempts = 1 2025-09-03 14:18:16 +02:00
aae0ab290a
ensure inputs 2025-09-03 14:18:16 +02:00
0c94733949
rm paste 2025-09-03 14:18:16 +02:00
0cee229611
move stuff not needed in test out 2025-09-03 14:18:16 +02:00
30515d445d
ensure availability of needed inputs 2025-09-03 14:18:16 +02:00
05da7e2d93
reduce download attempts in test 2025-09-03 14:18:16 +02:00
ade292ec57
settle for hello, ditching cowsay 2025-09-03 14:18:16 +02:00
13139a4b4b
move imports from paste to targetNode to increase parity between paste and nixosTest 2025-09-03 14:18:16 +02:00
4d85dd96f2
ditch superfluous substituters 2025-09-03 14:18:16 +02:00
7a7343f0ea
pasteable command for trying without rebuilding vm 2025-09-03 14:18:16 +02:00
7c9451989a
add keys 2025-09-03 14:18:16 +02:00
410f90a1d4
wip: use ssh in test 2025-09-03 14:18:16 +02:00
32e04beb06
add deployment method: ssh 2025-09-03 14:17:36 +02:00
27c59e1af8
un-nixops 2025-09-03 14:16:31 +02:00
252b7cde11
scaffold deployment/check/data-model from ./basic
modelify
2025-09-03 14:15:31 +02:00
ccbf82d546 test data model thru VM (#505)
test deployments using data obtained through the data model in VMs.

caveats:

- SSH currently has a `run` abstraction that the nixops4 model still lacks
- the deployed (trivial) configuration on activation has not facilitated new ssh connections (for subsequent) updates, i.e. a more sophisticated configuration would be needed for real-life usage.

Reviewed-on: Fediversity/Fediversity#505
2025-09-03 14:13:13 +02:00
27f96b2504 fix data model issues introduced at #501 (#509)
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
Reviewed-on: Fediversity/Fediversity#509
2025-09-03 14:07:53 +02:00
09db4d6217 factor out function wrapper to module function (#503)
lifts the `{ input output }` function wrapper out of the user interface to `function.nix`, simplifying usage.

Reviewed-on: Fediversity/Fediversity#503
2025-09-03 13:06:04 +02:00
c3027eb7d1 move function submodule type (#501)
Reviewed-on: Fediversity/Fediversity#501
2025-09-03 12:52:57 +02:00
4049ca8156 allow different deployment types (#498)
Reviewed-on: Fediversity/Fediversity#498
2025-09-03 12:44:44 +02:00
40e8a0a3c5 CI: allow manual trigger (#495)
Reviewed-on: Fediversity/Fediversity#495
2025-09-03 12:43:25 +02:00
f954ed5389 add proxmox repro test (#345)
closes #325

Reviewed-on: Fediversity/Fediversity#345
Reviewed-by: Nicolas Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-09-01 14:31:50 +02:00
9d903f3ef7 Complete the data model with a runtime environment and end-to-end test (#481)
Closes #103

At last, a fully fledged data model for what Fediversity really is and does. This comes with a test that exercises a very simple but functionally complete arrangement with all ingredients fo the business logic: a dummy resource (login shell), a dummy application (`hello`, which needs a shell to live in), a dummy environment (a single NixOS VM that allows for one, the operator's, login shell), and a deployment of that environment given a dummy configuration (that enables `hello`).

The next step will be to lift this purely evaluation-level test into a VM test which verifies that the resulting VM indeed has `hello` deployed to the operator's user account.

Caveats:
- The exact naming has a bit of room for improvement, and may have diverged from the design document
- The test is not as pedantically type safe as it could be, since we simply use `types.raw` for resources such as NixOS users settings which *could* be more finely delineated

Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: kiara Grouwstra <kiara@procolix.eu>
Reviewed-on: Fediversity/Fediversity#481
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-committed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2025-08-27 00:45:49 +02:00
1f99a4c6c3 listToAttrs o map o attrsToListmapAttrs' (#489)
Reviewed-on: Fediversity/Fediversity#489
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-08-01 13:09:26 +02:00
588bb77a94 Infra: expose and use checks for vmOptions and nixosConfigurations (#488)
Following Fediversity/Fediversity#478 (comment), here is a PR that plugs the infra's `vmOptions` and `nixosConfigurations` outputs into flake checks, instead of calling random Nix commands from the CI. There is still a bit of magic in the CI, but that's because we don't have yet a Nix-aware CI that exposes one job per flake check.

Reviewed-on: Fediversity/Fediversity#488
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
2025-07-31 15:41:02 +02:00