about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
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-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
2023-11-30test.cuda: fix broken evalAdam Joseph1-2/+2
2023-11-21makeHardcodeGsettingsPatch: Support applying patchesJan Tojnar4-2/+66
This is useful for replacing code that cannot be easily handled by the generator, such as the tentative settings constructor in e-d-s.
2023-11-21Merge pull request #267048 from narang99/hariom/257748/check-by-name-msgSilvan Mosberger2-5/+13
fix long error messages in nix-instantiate
2023-11-21made EXPR_PATH point to local instead of storeHariom Narang2-4/+5
- we need this behavior in dev shell - the main build still uses the store file
2023-11-19Merge pull request #268224 from tweag/by-name-reloadSilvan Mosberger1-0/+6
tests.nixpkgs-check-by-name: More reliable .envrc reloading
2023-11-19Merge pull request #268018 from amjoseph-nixpkgs/pr/testcase/267859Artturi1-0/+3
2023-11-18tests.nixpkgs-check-by-name: More reliable .envrc reloadingSilvan Mosberger1-0/+6
See also https://github.com/nix-community/nix-direnv/issues/408 and https://github.com/nix-community/nix-direnv/pull/407
2023-11-17llvmPackages_5: dropRaito Bezarius1-1/+0
While using very old compilers is a fair usecase, it induces a maintenance churn as we collect more and more LLVM versions for the LLVM maintainers. Especially when we need to backport uniform changes to the whole tree, furthermore, it consumes and waste CI resources.
2023-11-16tests.cross.sanity: add test case for #267859Adam Joseph1-0/+3
This commit adds pkgs.spike, which internally uses pkgsCross.riscv64-embedded.stdenv.cc, as a test case for the issue reported in https://github.com/NixOS/nixpkgs/issues/267859
2023-11-16Merge branch 'master' into staging-nextVladimír Čunát3-18/+37
2023-11-16tests.cc-wrapper.supported: make it actually build the testsArtturin1-17/+19
it was building the stdenv only
2023-11-16tests.cc-wrapper: add atomics testArtturin2-1/+18
`-std=c++17` is for clang 5
2023-11-14pass eval.nix as a file instead of expressionHariom Narang2-5/+12
- passing it as expression gives large error messages which are not very readable - this commits puts the file in nix-store and patches the final program to have access to the path to the file as env. - We simply pass this file to nix-instantiate
2023-11-09Merge master into staging-nextgithub-actions[bot]2-25/+36
2023-11-09cudaPackages.cuda-samples: alphabetize argumentsConnor Baker1-6/+6
2023-11-07cudaPackages.cuda-samples: fix CMake build error on 12.2+Connor Baker1-1/+15
2023-11-07cudaPackages.cuda-samples: don't list package for unsupported CUDA versionConnor Baker1-4/+4
2023-11-07cudaPackages_12_2.cuda-samples: init at 12.2Connor Baker1-0/+1
2023-11-07cudaPackages_12_1.cuda-samples: init at 12.1Connor Baker1-0/+1
2023-11-07cudaPackages.cuda-samples: use packages from cudaPackages scope; not top-levelConnor Baker1-4/+5
2023-11-07cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual ↵Connor Baker1-8/+2
addOpenGLRunpath
2023-11-07cudaPackages.cuda-samples: add CUDA team as maintainersConnor Baker1-1/+1
2023-11-07cudaPackages.cuda-samples: use finalAttrs instead of recConnor Baker1-5/+5
2023-11-07Merge master into staging-nextgithub-actions[bot]1-22/+19