Repository navigation
test: add eval, smoke, VM and formatting checks - #94
Open
DavSanchez wants to merge 1 commit into
Open
DavSanchez wants to merge 1 commit into
DavSanchez wants to merge 1 commit into
Conversation
- Add unit/eval tests covering the module options and generated configs, including the #88 FHS /sbin regression. - Add package smoke tests (version, config validation, binary presence). - Add NixOS VM integration tests for newrelic-infra and nrdot-collector. These run on any host nixpkgs supports: Linux (KVM) and aarch64-darwin (HVF, with a GICv3 override for a qemu-common.nix bug on Apple Silicon). - Add a formatting check and wire all checks into 'nix flake check'. - CI: run VM tests on ubuntu; macOS runs the non-VM checks since GitHub's macOS runners cannot build Linux guests.
DavSanchez
force-pushed
the
feat/packages-modules
branch
from
September 2, 2026 12:00
bc60e60 to
d0f508a
Compare
DavSanchez
force-pushed
the
test/infrastructure
branch
from
September 2, 2026 12:00
d5862a3 to
213a8bb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the testing infrastructure so pending and future changes are verifiable.
nixpkgs.lib.runTests): assert module options, generatedlogging.d/integrations.dconfigs, the Unable to list kernel modules. err: fork/exec /sbin/lsmod: no such file or directory oupu #88/sbinbind fix, and package wiring with/without the overlay.pkgs.testers.runCommand):nrdot-collector --version+ config validation,nri-flex -h, plugin.sopresence.pkgs.testers.runNixOSTest): boot VMs withnewrelic-infraandnrdot-collector, verify services come up, the Unable to list kernel modules. err: fork/exec /sbin/lsmod: no such file or directory oupu #88 mount-namespace fix (viansenter), and the collector healthz endpoint.node.pkgs = pkgsLinuxmachinery). The tests inject the flake's Linux package builds into the guests (pkgs.pkgsLinux).qemu-common.nixpinsgic-version=2for aarch64-darwin, but qemu's HVF only supports GICv3 on Apple Silicon (guests never boot). The tests override the machine type on darwin hosts..nixfiles arenixfmt-clean.kvm/nixos-test); macOS runs the non-VM checks, since GitHub's macOS runners cannot build Linux guests.This is PR 4 of 4 in a stacked series (base: #93). Do not merge out of order.