test: introduce local integration testing #902

Open
devydave wants to merge 14 commits from local-integration-testing into main
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
devydave reviewed 2026-08-07 13:15:35 +00:00
@@ -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
All checks were successful
continuous-integration/drone/push Build is passing
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin local-integration-testing:local-integration-testing
git checkout local-integration-testing
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#902