Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how and if to run NixOS tests #19

Closed
573 opened this issue Jan 6, 2020 · 5 comments
Closed

Document how and if to run NixOS tests #19

573 opened this issue Jan 6, 2020 · 5 comments

Comments

@573
Copy link

573 commented Jan 6, 2020

I am getting an

error: a 'x86_64-linux' with features {kvm, nixos-test} is required to build '/nix/store/1rq4j0hk5g5p3917q13qzpa7rj19r61s-vm-test-run-redis.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, nixos-test}

when running cachix-action after install-nix-action against https://github.com/573/nix-github-integration-tests.

Would I need to add the line system-features = nixos-test to the configuration and how ?

I have tried and failed to add the following line to my actions yml already:

sudo sh -c echo system-features = nixos-test >> /etc/nix/nix.conf

Original question

@573
Copy link
Author

573 commented Jan 6, 2020

By adding the lines mkdir -p ~/.config/nix and echo system-features = kvm nixos-test >> ~/.config/nix/nix.conf (ref.) to a run section of the action yml file integration tests are enabled.

@573 573 closed this as completed Jan 6, 2020
@domenkozar
Copy link
Member

Those tests will run very slowly since there's no hardware acceleration support.

@573
Copy link
Author

573 commented Jan 15, 2020

@domenkozar thanks for pointing this out!

I recently discovered that I chose the wrong approach here as nixosTests really seem to be targeting service to service communication as I understand it now.

Luckily I have figured out (not me TBH and yes got the basic idea from here) how to do integration testing.

@domenkozar
Copy link
Member

Yes, I should document this.

@domenkozar domenkozar reopened this Jan 15, 2020
@domenkozar domenkozar changed the title Configure install-nix-action for running integration test Document how and if to run NixOS tests May 26, 2020
domenkozar added a commit that referenced this issue Sep 21, 2020
@domenkozar
Copy link
Member

Documented!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants