summary refs log tree commit diff
path: root/nixos/modules/testing
Commit message (Collapse)AuthorAge
* test-instrumentation.nix: Only clear $PAGER in the backdoor shellEelco Dolstra2016-02-23
|
* NixOS tests: Increase hung_task_timeout_secsEelco Dolstra2016-01-04
| | | | | | | | | | | | This hopefully fixes intermittent test failures like http://hydra.nixos.org/build/29962437 router# [ 240.128835] INFO: task mke2fs:99 blocked for more than 120 seconds. router# [ 240.130135] Not tainted 3.18.25 #1-NixOS router# [ 240.131110] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. assuming that these are caused by high load on the host.
* nixos/tests: Revert setting min_free_kbytesaszlig2015-12-14
| | | | | | | | | | | This reverts commit 02b568414d509b5d06dbd95bcc0868d487ed359e. With a5bc11f and 6353f58 in place, we really don't need this anymore. After running about 500 VM tests on my Hydra, it still didn't improve very much. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/test-instrumentation: Set vm.min_free_kbytesaszlig2015-12-13
| | | | | | | | | | | | | | | | | | | | We hit page allocation failures a lot at random for VM tests, in case of my own Hydra when it comes to the installer tests. The reason for this is that once the memory of the VM gets heavily fragmented the kernel is unable to allocate new pages. Setting vm.min_free_kbytes to 16MB forces the kernel to keep a minimum of 16 MB free. I've done some testing accross repeated runs of the installer tests with and without vm.min_free_kbytes set. So accross 30 test runs for each settings, all of the tests with the option being set passed while 14 tests without that sysctl option triggered page allocation failures. Sure, running 30 tests is not a guarantee that 16MB is enough, but we'll see how it turns out in the long run across all VM tests. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* test-instrumentation.nix: Prevent calling a pagerEelco Dolstra2015-01-15
|
* nixos: Fix priorities of initialHashedPassword.aszlig2014-11-04
| | | | | | | | | | | | | | | | | | Regression introduced in f496c3cbe4a6a2db88892d14609618e449744ed6. Previously when we used security.initialRootPassword, the default priority for this option was 1001, because it was a default value set by the option itself. With the mentioned commit, it is no longer an option default but a mkDefault, which is priority 1000. I'm setting this to 150 now, as test-instrumentation.nix is using this for overriding other options and because I think it still makes it possible to simple-override it, because if no priority is given, we get priority 100. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Obsolete security.initialPasswordEelco Dolstra2014-11-03
| | | | You can now set users.extraUsers.root.initialHashedPassword instead.
* Fix evaluationEelco Dolstra2014-08-06
|
* test-instrumentation.nix: Set an empty root passwordEelco Dolstra2014-08-06
| | | | This makes it easier to log in during interactive sessions.
* test-instrumentation.nix: Improve loggingEelco Dolstra2014-08-06
| | | | | In particular, don't clobber the serial console with duplicate output from systemd and the journal, and increase the log level.
* Get all lib functions from lib, not pkgs.lib, in modulesShea Levy2014-07-02
|
* Fix the installer testEelco Dolstra2014-04-20
| | | | http://hydra.nixos.org/build/10419676
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Rename linuxManualConfig to buildLinuxShea Levy2014-01-21
| | | | Signed-off-by: Shea Levy <shea@shealevy.com>
* Allow running NixOS services outside of systemdEelco Dolstra2013-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | The attribute ‘config.systemd.services.<service-name>.runner’ generates a script that runs the service outside of systemd. This is useful for testing, and also allows NixOS services to be used outside of NixOS. For instance, given a configuration file foo.nix: { config, pkgs, ... }: { services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql92; services.postgresql.dataDir = "/tmp/postgres"; } you can build and run PostgreSQL as follows: $ nix-build -A config.systemd.services.postgresql.runner -I nixos-config=./foo.nix $ ./result This will run the service's ExecStartPre, ExecStart, ExecStartPost and ExecStopPost commands in an appropriate environment. It doesn't work well yet for "forking" services, since it can't track the main process. It also doesn't work for services that assume they're always executed by root.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10