about summary refs log tree commit diff
path: root/pkgs/test
Commit message (Collapse)AuthorAge
* haskellPackages: Fix eval errorsmaralorn2024-01-01
|
* haskellPackages: Fix eval errorsmaralorn2024-01-01
|
* Merge pull request #274591 from tweag/by-name-reproducibleSilvan Mosberger2023-12-22
|\ | | | | `pkgs/by-name`: Enable gradual migration checks and add `run-local.sh`
| * pkgs/test/nixpkgs-check-by-name/scripts: Various improvementsSilvan Mosberger2023-12-22
| | | | | | | | | | | | | | - trace function, avoids littering `echo >&2` all throughout - Avoid `eval`, remove unneeded shellcheck Co-Authored-By: Victor Engmark <victor@engmark.name>
| * check-by-name: Pass --base in CI and local running scriptSilvan Mosberger2023-12-20
| | | | | | | | | | This enables the ratchet checks for pkgs/by-name, allowing gradual migrations!
| * tests.nixpkgs-check-by-name: Add documentation for scriptsSilvan Mosberger2023-12-20
| |
| * tests.nixpkgs-check-by-name: Create script to run locallySilvan Mosberger2023-12-20
| | | | | | | | | | | | 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.
| * workflows/check-by-name: Move tool fetching into scriptSilvan Mosberger2023-12-19
| | | | | | | | This part of the CI can also be reproduced locally
* | Merge pull request #167670 from messemar/incremental-buildsJanne Heß2023-12-19
|\ \ | |/ |/| incremental builds: add derivation override functions
| * rename: incremental -> checkpointed buildsMartin Messer2023-12-07
| |
| * doc: add section about checkpointed buildMartin Messer2023-12-07
| |
| * checkpointedBuild: fix tests for checkpointedBuild functionsMartin Messer2023-12-07
| |
| * checkpointedBuild: add checkpointed build test based on pkgs helloMartin Messer2023-12-07
| |
* | Merge pull request #272395 from tweag/by-name-migrate-empty-argSilvan Mosberger2023-12-15
|\ \ | | | | | | tests.nixpkgs-check-by-name: Implement gradual empty arg check migration
| * | tests.nixpkgs-check-by-name: Improve check claritySilvan Mosberger2023-12-15
| | |
| * | tests.nixpkgs-check-by-name: Move interface description into codeSilvan Mosberger2023-12-15
| | | | | | | | | | | | This would be duplicated otherwise
| * | tests.nixpkgs-check-by-name: Improve docs, introduce "ratchet" termSilvan Mosberger2023-12-15
| | |
| * | tests.nixpkgs-check-by-name: Minor improvements from reviewSilvan Mosberger2023-12-15
| | |
| * | tests.nixpkgs-check-by-name: Fix and document behavior without --baseSilvan Mosberger2023-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | tests.nixpkgs-check-by-name: Test for gradual transitionSilvan Mosberger2023-12-14
| | | | | | | | | | | | | | | | | | This implements the ability to test gradual transitions in check strictness, and adds one such test for the empty non-auto-called arguments check.
| * | tests.nixpkgs-check-by-name: Gradual migration from base NixpkgsSilvan Mosberger2023-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | tests.nixpkgs-check-by-name: Intermediate refactorSilvan Mosberger2023-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | tests.nixpkgs-check-by-name: Introduce result_mapSilvan Mosberger2023-12-14
| | | | | | | | | | | | | | | | | | | | | 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.
| * | tests.nixpkgs-check-by-name: Minor refactor, allow more simultaneous problemsSilvan Mosberger2023-12-14
| |/ | | | | | | | | | | | | | | | | | | 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
* | pkgs/test/release/default.nix: initAdam Joseph2023-12-15
| | | | | | | | | | | | This derivation verifies that all jobset attributes can be evaluated under tryEval without producing any non-catchable errors or causing infinite recursion.
* | treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobsAdam Joseph2023-12-15
| |
* | cudaPackages: move derivations to cuda-modules & support aarch64Connor Baker2023-12-07
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* llvmPackages_7: remove at 7.1.0sternenseemann2023-12-04
|
* test.cuda: fix broken evalAdam Joseph2023-11-30
|
* makeHardcodeGsettingsPatch: Support applying patchesJan Tojnar2023-11-21
| | | | | This is useful for replacing code that cannot be easily handled by the generator, such as the tentative settings constructor in e-d-s.
* Merge pull request #267048 from narang99/hariom/257748/check-by-name-msgSilvan Mosberger2023-11-21
|\ | | | | fix long error messages in nix-instantiate
| * made EXPR_PATH point to local instead of storeHariom Narang2023-11-21
| | | | | | | | | | - we need this behavior in dev shell - the main build still uses the store file
| * pass eval.nix as a file instead of expressionHariom Narang2023-11-14
| | | | | | | | | | | | | | | | | | - 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
* | Merge pull request #268224 from tweag/by-name-reloadSilvan Mosberger2023-11-19
|\ \ | | | | | | tests.nixpkgs-check-by-name: More reliable .envrc reloading
| * | tests.nixpkgs-check-by-name: More reliable .envrc reloadingSilvan Mosberger2023-11-18
| | | | | | | | | | | | See also https://github.com/nix-community/nix-direnv/issues/408 and https://github.com/nix-community/nix-direnv/pull/407
* | | Merge pull request #268018 from amjoseph-nixpkgs/pr/testcase/267859Artturi2023-11-19
|\ \ \ | |/ / |/| |
| * | tests.cross.sanity: add test case for #267859Adam Joseph2023-11-16
| | | | | | | | | | | | | | | | | | 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
* | | llvmPackages_5: dropRaito Bezarius2023-11-17
|/ / | | | | | | | | | | | | | | 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.
* | Merge branch 'master' into staging-nextVladimír Čunát2023-11-16
|\ \
| * | tests.cc-wrapper.supported: make it actually build the testsArtturin2023-11-16
| | | | | | | | | | | | it was building the stdenv only
| * | tests.cc-wrapper: add atomics testArtturin2023-11-16
| |/ | | | | | | `-std=c++17` is for clang 5
* | Merge master into staging-nextgithub-actions[bot]2023-11-09
|\|
| * cudaPackages.cuda-samples: alphabetize argumentsConnor Baker2023-11-09
| |
| * cudaPackages.cuda-samples: fix CMake build error on 12.2+Connor Baker2023-11-07
| |
| * cudaPackages.cuda-samples: don't list package for unsupported CUDA versionConnor Baker2023-11-07
| |
| * cudaPackages_12_2.cuda-samples: init at 12.2Connor Baker2023-11-07
| |
| * cudaPackages_12_1.cuda-samples: init at 12.1Connor Baker2023-11-07
| |
| * cudaPackages.cuda-samples: use packages from cudaPackages scope; not top-levelConnor Baker2023-11-07
| |
| * cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual ↵Connor Baker2023-11-07
| | | | | | | | addOpenGLRunpath
| * cudaPackages.cuda-samples: add CUDA team as maintainersConnor Baker2023-11-07
| |