test: introduce local integration testing #902

Merged
p4u1 merged 26 commits from local-integration-testing into main 2026-10-31 08:28:05 +00:00
Member

This PR adds a declarative integration testing setup which includes 2 local VMs client and server which can be started and stopped via a command. The VMs are run with QEMU and created by https://github.com/microvm-nix/microvm.nix
The key pair is generated for this use case and is safe to commit, it resolves the problem that the readFile function can only be used with git tracked files.

This PR adds a declarative integration testing setup which includes 2 local VMs client and server which can be started and stopped via a command. The VMs are run with QEMU and created by https://github.com/microvm-nix/microvm.nix The key pair is generated for this use case and is safe to commit, it resolves the problem that the readFile function can only be used with git tracked files.
devydave added 2 commits 2026-08-06 20:05:29 +00:00
feat: adds local vm setup that can reach each other
continuous-integration/drone/push Build is passing
4e42d4fb9e
feat: adds running integrations test suite
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
9bd8f4962a
devydave added 5 commits 2026-08-07 12:11:48 +00:00
devydave added 1 commit 2026-08-07 13:15:08 +00:00
refactor: simplify config and remove hom-manager dependency
continuous-integration/drone/push Build is passing
1ccbb31b70
@@ -0,0 +35,4 @@
tag = "repo";
# Source path can be absolute or relative
# to /var/lib/microvms/$hostName
source = "/home/dev/Documents/kum/abra";
Author
Member

this needs to be adjusted, I could change it to an env variable, but this requires to run the nix command with --impure. Another idea would be to read the path from a file, that needs to be created by the user or script at startup.

this needs to be adjusted, I could change it to an env variable, but this requires to run the nix command with --impure. Another idea would be to read the path from a file, that needs to be created by the user or script at startup.
devydave marked this conversation as resolved
devydave changed title from WIP: feat: introduce local integration testing to test: introduce local integration testing 2026-08-07 13:16:22 +00:00
Author
Member

The PR is now ready to review, I will add another script file that automates the startup of the VMs and testing.
One thing I am not sure about is where to put the helper functions that are currently in the Makefile. They are not all needed for startup but nice to have, ideas welcome :)
And I will add a PR to the docs for the host setup of microvm.

The PR is now ready to review, I will add another script file that automates the startup of the VMs and testing. One thing I am not sure about is where to put the helper functions that are currently in the Makefile. They are not all needed for startup but nice to have, ideas welcome :) And I will add a PR to the docs for the host setup of microvm.
devydave requested review from p4u1 2026-08-10 09:23:12 +00:00
devydave added 1 commit 2026-08-12 20:43:23 +00:00
feat: adds host module
continuous-integration/drone/push Build is passing
5766a25144
devydave added 1 commit 2026-08-12 21:01:21 +00:00
fix: remove personal terminal choice
continuous-integration/drone/push Build is passing
a8c8df8604
devydave added 2 commits 2026-08-13 18:34:40 +00:00
devydave added 1 commit 2026-08-13 18:38:29 +00:00
docs: formatting
continuous-integration/drone/push Build is passing
21dccc895d
devydave added 1 commit 2026-08-13 18:41:08 +00:00
docs: more formatting and typo
continuous-integration/drone/push Build is passing
a28cc7afce
devydave added 2 commits 2026-08-24 21:31:23 +00:00
Owner

tests/resources/path_to_repo is modified after running the script

tests/resources/path_to_repo is modified after running the script
Owner

ssh key has 0644 but should be 0600

ssh key has 0644 but should be 0600
Owner

running only one file or one file + one test would be good

running only one file or one file + one test would be good
devydave added 1 commit 2026-08-31 08:59:17 +00:00
p4u1 approved these changes 2026-09-03 17:43:40 +00:00
p4u1 left a comment
Owner

Just ran the new ./test_integration.sh and its freaking amazing!!!!!!

Just ran the new ./test_integration.sh and its freaking amazing!!!!!!
Owner

@devydave I would say, move the script and make file commands into an nix directory inside the test directory until it is proven, that it is working outside of nixos and the just merge this

@devydave I would say, move the script and make file commands into an nix directory inside the test directory until it is proven, that it is working outside of nixos and the just merge this
devydave added 1 commit 2026-10-29 21:06:07 +00:00
Merge branch 'main' into local-integration-testing
continuous-integration/drone/push Build is passing
b34d9c6373
devydave added 1 commit 2026-10-29 22:28:05 +00:00
refactor: move integration testing script to nix
continuous-integration/drone/push Build is passing
d024d21766
devydave added 1 commit 2026-10-29 22:43:34 +00:00
refactor: move ssh-key add to nix specific run
continuous-integration/drone/push Build is passing
1ce4cd38d4
Author
Member

@devydave I would say, move the script and make file commands into an nix directory inside the test directory until it is proven, that it is working outside of nixos and the just merge this

@p4u1 I moved the files, I think it should be ready to merge now

> @devydave I would say, move the script and make file commands into an nix directory inside the test directory until it is proven, that it is working outside of nixos and the just merge this @p4u1 I moved the files, I think it should be ready to merge now
devydave added 1 commit 2026-10-29 22:56:48 +00:00
docs: adjust get started
continuous-integration/drone/push Build is passing
c77e0f1923
devydave added 1 commit 2026-10-29 23:10:15 +00:00
fix: reproducable ssh-add
continuous-integration/drone/push Build is passing
0835c4ea22
devydave added 4 commits 2026-10-30 08:58:02 +00:00
p4u1 merged commit 550c9aa48f into main 2026-10-31 08:28:05 +00:00
p4u1 deleted branch local-integration-testing 2026-10-31 08:28:07 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#902