about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
2024-01-10Merge branch 'master' into staging-nextWeijia Wang1-1/+0
2024-01-10Merge pull request #279581 from trofi/clang6Stdenv-and-co-removalWeijia Wang1-1/+0
clang6Stdenv, clang-tools_6, clang_6, lld_6, lldb_6, llvm_6: remove
2024-01-10Merge master into staging-nextgithub-actions[bot]12-218/+285
2024-01-09Merge pull request #278805 from tweag/by-name-enforce-preparationSilvan Mosberger10-215/+282
check-by-name: Refactor to prepare for enforcing `pkgs/by-name`, make `--base` required
2024-01-09llvmPackages_6: removeWeijia Wang1-1/+0
Remove as the last two users are gone.
2024-01-09Merge pull request #279487 from bryango/checkpoint-build-polishRobert Hensing2-3/+3
checkpointBuildTools: mkCheckpointedBuild -> mkCheckpointBuild
2024-01-09tests.nixpkgs-check-by-name: .context -> .with_contextSilvan Mosberger4-31/+40
Avoids allocation in the non-error case
2024-01-09tests.nixpkgs-check-by-name: Minor improvements from feedbackSilvan Mosberger1-14/+12
- Typo - Rename AttributeRatchet to ToNixpkgsProblem - Make the compare trait method into a RatchetState method Co-Authored-By: Philip Taron <philip.taron@gmail.com>
2024-01-09Merge remote-tracking branch 'origin/master' into staging-nextK9001-1/+1
2024-01-08cudaPackages.cuda-library-samples: Only enable on Linux, fix channelSilvan Mosberger1-1/+1
This very weirdly broke the channel evaluation: https://hydra.nixos.org/build/245871962/nixlog/1 It appears that this attribute is only evaluated by Hydra, _not_ by ofborg. So this wouldn't have been detected by CI anyways in the PR that introduced the problem: https://github.com/NixOS/nixpkgs/pull/276800. However, due to https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594, the channel only broke once that was fixed with https://github.com/NixOS/nixpkgs/pull/278777 Whether the fix is good, I don't know, but the failing-on-darwin attribute doesn't exist anymore with this commit, making the tarball build succeed again: nix-build pkgs/top-level/release.nix -A tarball
2024-01-08checkpointBuildTools: mkCheckpointedBuild -> mkCheckpointBuildBryan Lai2-3/+3
All other functions are in the form of `*{c,C}heckpointBuild*`, so we deprecate the `mkCheckpointedBuild` function in favor of `mkCheckpointBuild`. Also address some inconsistencies in the docs: some `buildOutput` should actually be `incrementalBuildArtifacts`.
2024-01-08Merge master into staging-nextgithub-actions[bot]1-4/+4
2024-01-07tests.checkpoint-build: Fix evaluation with allowAliases falseSilvan Mosberger1-4/+4
Was broken since introduced, but not caught due to https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594
2024-01-05tests.nixpkgs-check-by-name: Internal strip nixpkgs prefixSilvan Mosberger2-3/+5
Strips the Nixpkgs prefix from the callPackage paths, makes future error messages using this path be deterministic.
2024-01-05tests.nixpkgs-check-by-name: Deterministic orderingSilvan Mosberger3-13/+16
Makes errors for attributes deterministic so it's easier to test (also, reproducibility is always nice)
2024-01-05tests.nixpkgs-check-by-name: Re-usable ratchet logicSilvan Mosberger2-22/+55
This makes the attribute ratchet check logic more re-usable, which will be used in a future commit. It also renames the ratchet states to something more intuitive
2024-01-05tests.nixpkgs-check-by-name: Make --base requiredSilvan Mosberger4-36/+18
CI now passes the flag, so it doesn't have to be optional anymore
2024-01-05tests.nixpkgs-check-by-name: Set evaluation system to x86_64-linuxSilvan Mosberger3-0/+7
This was previously a checking impurity that could produce different results when run on different systems.
2024-01-03tests.nixpkgs-check-by-name: Refactor eval code and improve commentsSilvan Mosberger2-119/+152
Does a bunch of cleanups to the eval.{rs,nix} code to make future changes easier, no functionality is changed.
2024-01-02Merge remote-tracking branch 'origin/master' into staging-nextK9001-2/+2
2024-01-01haskellPackages: Fix eval errorsmaralorn1-2/+2
2024-01-01haskellPackages: Fix eval errorsmaralorn1-1/+1
2023-12-21Merge pull request #272752 from ↵Connor Baker3-0/+104
ConnorBaker/feat/autoPatchelf-support-structuredAttrs auto-patchelf: add support for __structuredAttrs
2023-12-22Merge pull request #274591 from tweag/by-name-reproducibleSilvan Mosberger3-0/+140
`pkgs/by-name`: Enable gradual migration checks and add `run-local.sh`
2023-12-22pkgs/test/nixpkgs-check-by-name/scripts: Various improvementsSilvan Mosberger2-40/+43
- trace function, avoids littering `echo >&2` all throughout - Avoid `eval`, remove unneeded shellcheck Co-Authored-By: Victor Engmark <victor@engmark.name>
2023-12-21Test __structuredAttrs support in autoPatchelfYann Hamdaoui3-0/+104
This commit adds a test for the newly added support for __structuredAttrs in autoPatchelf(hook). It copied a reasonably small-closure binary derivation that makes use of autoPatchelf, stripped it down for the purpose of the test, and check that autoPatchelf correctly set the interpreter and runpath whether __structuredAttrs is set to true or not.
2023-12-20check-by-name: Pass --base in CI and local running scriptSilvan Mosberger1-1/+1
This enables the ratchet checks for pkgs/by-name, allowing gradual migrations!
2023-12-20tests.nixpkgs-check-by-name: Add documentation for scriptsSilvan Mosberger1-0/+26
2023-12-20tests.nixpkgs-check-by-name: Create script to run locallySilvan Mosberger1-0/+66
Due to the check soon depending on the base branch (see `--base`), the CI check can't reasonably share all code with a local check. We can still make a script to run it locally, just not sharing all code.
2023-12-19workflows/check-by-name: Move tool fetching into scriptSilvan Mosberger1-0/+45
This part of the CI can also be reproduced locally
2023-12-19Merge pull request #167670 from messemar/incremental-buildsJanne Heß5-0/+219
incremental builds: add derivation override functions
2023-12-15Merge pull request #272395 from tweag/by-name-migrate-empty-argSilvan Mosberger17-106/+271
tests.nixpkgs-check-by-name: Implement gradual empty arg check migration
2023-12-15tests.nixpkgs-check-by-name: Improve check claritySilvan Mosberger1-4/+5
2023-12-15pkgs/test/release/default.nix: initAdam Joseph1-0/+46
This derivation verifies that all jobset attributes can be evaluated under tryEval without producing any non-catchable errors or causing infinite recursion.
2023-12-15treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobsAdam Joseph2-2/+4
2023-12-15tests.nixpkgs-check-by-name: Move interface description into codeSilvan Mosberger2-23/+21
This would be duplicated otherwise
2023-12-15tests.nixpkgs-check-by-name: Improve docs, introduce "ratchet" termSilvan Mosberger4-55/+74
2023-12-15tests.nixpkgs-check-by-name: Minor improvements from reviewSilvan Mosberger4-19/+24
2023-12-15tests.nixpkgs-check-by-name: Fix and document behavior without --baseSilvan Mosberger5-11/+33
Previously, not passing `--base` would enforce the most strict checks. While there's currently no actual violation of these stricter checks, this does not match the previous behavior. This won't matter once CI passes `--base`, the code handling the optionality can be removed then.
2023-12-14tests.nixpkgs-check-by-name: Test for gradual transitionSilvan Mosberger9-1/+22
This implements the ability to test gradual transitions in check strictness, and adds one such test for the empty non-auto-called arguments check.
2023-12-14tests.nixpkgs-check-by-name: Gradual migration from base NixpkgsSilvan Mosberger4-57/+47
This implements the option for a gradual migration to stricter checks. For now this is only done for the check against empty non-auto-called callPackage arguments, but in the future this can be used to ensure all new packages make use of `pkgs/by-name`. This is implemented by adding a `--base <BASE_NIXPKGS>` flag, which then compares the base nixpkgs against the main nixpkgs version, making sure that there are no regressions. The `--version` flag is removed. While it was implemented, it was never used in CI, so this is fine.
2023-12-14tests.nixpkgs-check-by-name: Intermediate refactorSilvan Mosberger3-40/+139
This prepares the code base for the removal of the `--version` flag, to be replaced with a flag that can specify a base version to compare the main Nixpkgs against, in order to have gradual transitions to stricter checks. This refactoring does: - Introduce the `version` module that can house the logic to increase strictness, with a `version::Nixpkgs` struct that contains the strictness conformity of a single Nixpkgs version - Make the check return `version::Nixpkgs` - Handle the behavior of the still-existing `--version` flag with `version::Nixpkgs` - Introduce an intermediate `process` function to handle the top-level logic, especially useful in the next commit
2023-12-14tests.nixpkgs-check-by-name: Introduce result_mapSilvan Mosberger2-7/+11
Convenience function to run another validation over a successful validation result. This will be usable in more locations in future commits, making the code nicer.
2023-12-14tests.nixpkgs-check-by-name: Minor refactor, allow more simultaneous problemsSilvan Mosberger3-20/+26
This makes it such that these two errors can both be thrown for a single package: - The attribute value not being a derivation - The attribute not being a proper callPackage The tests had to be adjusted to only throw the error they were testing for
2023-12-07cudaPackages: move derivations to cuda-modules & support aarch64Connor Baker5-112/+165
cudaPackages.cuda_compat: ignore missing libs provided at runtime cudaPackages.gpus: Jetson should never build by default cudaPackages.flags: don't build Jetson capabilities by default cudaPackages: re-introduce filter for pre-existing CUDA redist packages in overrides cudaPackages: only recurseIntoAttrs for the latest of each major version cudaPackages.nvccCompatabilities: use GCC 10 through CUDA 11.5 to avoid a GLIBC incompatability cudaPackages.cutensor: acquire libcublas through cudatoolkit prior to 11.4 cudaPackages.cuda_compat: mark as broken on aarch64-linux if not targeting Jetson cudaPackages.cutensor_1_4: fix build cudaPackages: adjust use of autoPatchelfIgnoreMissingDeps cudaPackages.cuda_nvprof: remove unecessary override to add addOpenGLRunpath cudaPackages: use getExe' to avoid patchelf warning about missing meta.mainProgram cudaPackages: fix evaluation with Nix 2.3 cudaPackages: fix platform detection for Jetson/non-Jetson aarch64-linux python3Packages.tensorrt: mark as broken if required packages are missing Note: evaluating the name of the derivation will fail if tensorrt is not present, which is why we wrap the value in `lib.optionalString`. cudaPackages.flags.getNixSystem: add guard based on jetsonTargets cudaPackages.cudnn: use explicit path to patchelf cudaPackages.tensorrt: use explicit path to patchelf
2023-12-07rename: incremental -> checkpointed buildsMartin Messer5-9/+9
2023-12-07doc: add section about checkpointed buildMartin Messer1-5/+5
2023-12-07checkpointedBuild: fix tests for checkpointedBuild functionsMartin Messer3-44/+54
2023-12-07checkpointedBuild: add checkpointed build test based on pkgs helloMartin Messer5-0/+209
2023-12-04llvmPackages_7: remove at 7.1.0sternenseemann1-4/+0