about summary refs log tree commit diff
path: root/nixos/lib
Commit message (Collapse)AuthorAge
* Merge pull request #90261 from prusnak/installer-zstd-rmPeter Hoeg2020-06-14
|\ | | | | images: remove original files when using zstd for compression
| * images: remove original files when using zstd for compressionPavol Rusnak2020-06-14
| |
* | nixos/lib/make-disk-image.nix: VDI supportEmery Hemingway2020-06-13
|/
* nixos/make-iso9660: fix zstd inputFinn Behrens2020-06-09
|
* Merge pull request #85947 from prusnak/images-zstdMarek Mahut2020-06-07
|\ | | | | Use zstd for ISO and SD images
| * iso-image: use zstd for compressionPavol Rusnak2020-04-24
| |
* | Merge pull request #82258 from erikarvstedt/fix-xchg-cachingFlorian Klink2020-06-01
|\ \ | | | | | | fix inconsistent caching of VM xchg dirs
| * | qemu-vm: fix inconsistent caching of xchg dirsErik Arvstedt2020-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xchg is advertised as a bidirectional exchange dir, but file content transfer from host to VM fails due to caching: If a file is read in the VM and then modified on the host, subsequent re-reads in the VM can yield old, cached data. This is caused by the use of 9p's cache=loose mode that is explicitly meant for read-only mounts. 9p doesn't provide any suitable cache modes, so fix this by disabling caching. Also, remove a now unnecessary sync in the test driver.
| * | test-driver: remove useless syncsErik Arvstedt2020-05-27
| | | | | | | | | | | | | | | | | | | | | | | | These syncs have the goal to transfer host filesystem changes to the VM, but they have no effect because 1) syncing in the VM can't possibly pull in host data and 2) 9p is accessing the host filesystem on the cached layer anyways, so even syncing on the host would have no effect in the VM.
* | | Remove unused filesEelco Dolstra2020-05-14
| | |
* | | nixos/test-driver: Specify /bin/sh shell when running a bourne shell script ↵Chuck2020-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as the user The test harness provides the commands it wishes to run in Bourne syntax. This fails if the user uses a different shell. For example, with fish: machine.wait_for_unit("graphical-session.target", "alice") machine # fish: Unsupported use of '='. To run '-u`' with a modified environment, please use 'env XDG_RUNTIME_DIR=/run/user/`id -u`…' machine # XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user --no-pager show "graphical-session.target" machine # ^ machine # [ 16.329957] su[1077]: pam_unix(su:session): session closed for user alice error: retrieving systemctl info for unit "graphical-session.target" under user "alice" failed with exit code 127
* | | testing{-python}.nix: Remove log pretty-printing cruftEelco Dolstra2020-05-07
| | | | | | | | | | | | | | | | | | | | | This completes the removal of the nested log feature, which previously got removed from Nix, Hydra, stdenv and GNU Make. In particular, this means that the output of VM builds no longer contains a copy of jQuery.
* | | test-driver.py: Fix deadlock when the log queue gets fullEelco Dolstra2020-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a program (e.g. nixos-install) writes more than 1000 lines to stderr during execute(), then process_serial_output() deadlocks waiting for the queue to be processed. So use an unbounded queue instead. We should probably get rid of the structured log output (log.xml), since then we don't need the log queue anymore.
* | | nixosTests: drop nr_tests and failed_tests variablesFlorian Klink2020-05-01
| | | | | | | | | | | | | | | With the tests now bailing out early on a failing subtest, we don't need to keep a list of failed tests, or the number of total tests
* | | nixosTests: Reraise exception in subtestsJacek Galowicz2020-05-01
| |/ |/|
* | treewide: Per RFC45, remove all unquoted URLsMichael Reilly2020-04-10
| |
* | Revert "Revert "iso-image: normalize volumeID""worldofpeace2020-04-09
| | | | | | | | This reverts commit 21b50e6f6879f22b9261362bfd6dce26b7611e18.
* | Revert "iso-image: normalize volumeID"worldofpeace2020-04-09
| |
* | Merge pull request #83551 from worldofpeace/iso-idworldofpeace2020-04-09
|\ \ | | | | | | iso-image: normalize volumeID
| * | make-iso9660-image.sh: enable joliet extensionworldofpeace2020-03-27
| | | | | | | | | | | | This is per the advice of the osinfo-db maintainers https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/107#note_313094852
* | | nixos/lib/test-driver: Fix require_unit_state hardcoded formattingSilvan Mosberger2020-04-06
| | |
* | | Revert "make-options-doc: fix string context issues"Jan Tojnar2020-04-02
| | | | | | | | | | | | | | | | | | This reverts commit 3c15d578d4271142d7e596b9dc708cf07da48fa8. See https://github.com/NixOS/nixpkgs/issues/83863
* | | test-driver.py: use temporary dir for vde1.ctlMartin Milata2020-03-29
| | | | | | | | | | | | | | | Send SIGTERM instead of SIGKILL to vde_switch to give it chance to delete the directories.
* | | nixos/test: update test-driver.py for mypy 0.770Rouven Czerwinski2020-03-27
|/ /
* | Compress optionsJSON using brotliEelco Dolstra2020-03-24
| |
* | nixos: Fix pkgs exportingSilvan Mosberger2020-03-19
| | | | | | | | This needs adjustment after dcdd232939232d04c1132b4cc242dd3dac44be8c
* | nixos/lib: use removePrefix in escapeSystemdPathflorianjacob2020-03-14
| |
* | Merge pull request #81241 from thefloweringash/nesting-systemMichele Guerini Rocco2020-03-13
|\ \ | | | | | | nixos/activation: propagate system to nested configurations
| * | nixos/activation: use eval-config's system argument for nestingAndrew Childs2020-03-05
| |/ | | | | | | | | | | | | | | | | This avoids a possible surprise if the user is using `nixpkgs.system` and `nesting.children`. `nesting.children` is expected to ignore all parent configuration so we shouldn't propagate the user-facing option `nixpkgs.system`. To avoid doing so, we introduce a new internal option for holding the value passed to eval-config.nix, and use that when recursing for nesting.
* / nixos/python-test-driver: allow single char as hostName and fix misleading ↵Maximilian Bosch2020-03-13
|/ | | | | | | error-message In case of invalid chars, the error-message references "perl variables" which is not the case here as the python-based framework is used.
* nixosTests: Make VLAN argument optional in python test driverJacek Galowicz2020-02-14
|
* Merge pull request #79659 from worldofpeace/cleanup-python-test-libworldofpeace2020-02-14
|\ | | | | testing: fix runInMachineWithX/runInMachine
| * testing: fix runInMachineWithXworldofpeace2020-02-09
| |
| * testing-python: readd auto displayManagerworldofpeace2020-02-09
| | | | | | | | we import it for the runInMachineWithX
| * testing-python: fix runInMachineworldofpeace2020-02-09
| | | | | | | | | | | | | | The test script's were unported. It's unclear whether the preBuild or postBuild will work as expect, due to the linting of the test scripts.
* | Merge pull request #79335 from flokli/deprecate-perl-vm-testsworldofpeace2020-02-09
|\ \ | | | | | | nixos/testing: add deprecation notice for Perl VM tests
| * | nixos/testing: add deprecation notice for Perl VM testsFlorian Klink2020-02-09
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most VM tests have been migrated to use the python test driver (introduced in #71684), the migration is tracked in #72828 (which also thankfully uncovered and fixed many currently broken tests) While increasing the acceptance and adoption of NixOS integration tests by using a more popular language, there was also nobody willing to do larger refactors in the currently very convoluted test infrastructure. We plan to remove the perl infrastructure between the 20.03 and 20.09 release, to be able to do these refactorings. Some people might be using Perl tests in their internal CI, so print a warning for 20.03, and give users time to move to the python testing infrastructure.
* | Merge pull request #79368 from sorki/ext4resizeSamuel Dionne-Riel2020-02-09
|\ \ | |/ |/| nixos/lib/make-ext4-fs: fall back to resize2fs -M if exact resize fails
| * nixos/lib/make-ext4-fs: fall back to resize2fs -M if exact resize failsRichard Marko2020-02-09
| | | | | | | | | | | | See also - https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1415077/comments/4 - https://github.com/NixOS/nixpkgs/pull/62262
* | nixos/test: Add copy_from_host and copy_from_host_via_shell to pythonJacek Galowicz2020-02-07
| | | | | | | | test driver
* | Merge pull request #59855 from volth/qemu-cpu-passthruJohn Ericson2020-02-01
|\ \ | |/ |/| runInLinuxVM, test-driver: pass host's cpu type to guest vm
| * runInLinuxVM, test-driver: pass host's cpu type to guest vmvolth2020-01-15
| | | | | | | | 'kvm64' is the most generic CPU, which does not support SSE4.2, AVX and other ISA extentions.
* | Merge pull request #78265 from Synthetica9/https-homepagesSilvan Mosberger2020-01-27
|\ \ | | | | | | treewide: fix redirected urls
| * | treewide: fix redirected urlsPatrick Hilhorst2020-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
* | | nixosTests: Drop invalid utf characters in command outputJacek Galowicz2020-01-26
|/ /
* | Merge pull request #77587 from singron/fix-sharedFlorian Klink2020-01-19
|\ \ | | | | | | test-driver.py: Share the shared dir between VMs
| * | test-driver.py: Use /tmp/shared for copy_from_vmEric Culp2020-01-19
| | | | | | | | | | | | | | | | | | The docstring says it uses a directory shared among all vms, although that doesn't seem necessary for the functionality. However, it does need to be consistent between the guest and host.
| * | test-driver.py: Share the shared dir between VMsEric Culp2020-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the python test driver to match the behavior of the perl test driver. I.e. the directory mounted into /tmp/shared should be the same for all machines. This probably fixes many tests, but I found this while investigating failures in nixos/tests/ceph-multi-node.nix.
* | | Merge pull request #77662 from marijanp/verbose-python-test-driverFlorian Klink2020-01-17
|\ \ \ | | | | | | | | nixos/test: added verbose output for failed tests
| * | | nixos/test: added verbose output for failed testsMarijan Petričević2020-01-14
| |/ /