about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
2024-04-24tests.config: Simplify exampleRobert Hensing1-11/+8
authy was about to be removed, so this test had to be updated.
2024-04-15stdenv: make inputDerivation never fixed-outputJade Lovelace1-0/+22
This fixes using inputDerivation on derivations that are fixed-output. Previously: ``` nix-repl> drv = runCommand "huh" { outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; outputHashAlgo = "sha256"; outputHashType = "flat"; } "touch $out" nix-repl> drv.inputDerivation «derivation /nix/store/d8mjs6cmmvsr1fv7psm6imis5pmh9bcs-huh.drv» nix-repl> :b drv.inputDerivation error: fixed output derivation 'huh' is not allowed to refer to other store paths. You may need to use the 'unsafeDiscardReferences' derivation attribute, see the manual for more details. ``` Fixes: https://github.com/NixOS/nixpkgs/issues/304209
2024-04-10nixpkgs-check-by-name: 0.1.0 -> 0.1.1infinixbot1-1/+1
https://github.com/NixOS/nixpkgs-check-by-name/releases/tag/0.1.1
2024-04-08llvmPackages_9: remove due to ageTristan Ross1-0/+1
2024-03-31Merge pull request #294826 from xworld21/texlive-install-tlDmitry Kalinkin1-12/+8
texlive.withPackages: replace postBuild with install-tl like script
2024-03-29tests.texlive.context: check that the PDF has been createdVincenzo Mantova1-0/+8
2024-03-29tests.texlive.fmtutilCnf: removeVincenzo Mantova1-12/+0
The fmtutilCnf test does not fit the new way of generating fmtutil.cnf.
2024-03-26tests.nixpkgs-check-by-name: Remove now that a separate repo is usedSilvan Mosberger228-4173/+1
Since https://github.com/NixOS/nixpkgs/pull/297901, the tool is fetched from https://github.com/NixOS/nixpkgs-check-by-name, so there's no need to keep it around in Nixpkgs anymore
2024-03-26check-by-name: Remove now-unnecessary scripts/pinned-tool.jsonSilvan Mosberger1-4/+0
It was not removed in https://github.com/NixOS/nixpkgs/pull/297901 so that CI for that PR itself would not fail since CI runs from the base branch.
2024-03-26workflows/check-by-name.yml: Switch to new separate repoSilvan Mosberger5-66/+33
The nixpkgs-check-by-name tooling is [being moved](https://github.com/NixOS/nixpkgs/issues/286559#issuecomment-2000466124) to a [separate repo](https://github.com/NixOS/nixpkgs-check-by-name). This commit updates Nixpkgs CI to use it instead of the tree inside Nixpkgs No changes have been made to the tooling locally since it was moved: - [Exported history](https://github.com/NixOS/nixpkgs/commits/55bf02190ee57fcf83490fd7b6bf7834e28c9c86/pkgs/test/nixpkgs-check-by-name) - [Imported history](https://github.com/NixOS/nixpkgs-check-by-name/commits/d579e1821d56c79fd90dab34b991cc7bdab7a5c6/)
2024-03-19treewide: drop LLVM11annalee1-0/+1
2024-03-18Merge pull request #296324 from willbush/by-name-update-envcSilvan Mosberger1-6/+0
check-by-name: Update .envrc to avoid using deprecated command
2024-03-16check-by-name: Update .envrc to remove deprecated commandWill Bush1-6/+0
Noticed the following warning: ``` direnv: `nix_direnv_watch_file` is deprecated - use `watch_file` ``` Which seems to come from here: https://github.com/nix-community/nix-direnv/blob/6455f38a8dcf731dccd69aabef3f85ac962bfa8d/direnvrc#L207 Seems this check is no longer needed check-by-name: Remove check from .envrc Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-03-12Merge master into haskell-updatesgithub-actions[bot]1-2/+2
2024-03-06check-by-name: Update pinned toolingSilvan Mosberger1-2/+2
Includes https://github.com/NixOS/nixpkgs/pull/290743
2024-03-03Merge master into haskell-updatesgithub-actions[bot]70-312/+872
2024-03-02Merge pull request #290743 from tweag/by-name-better-errorsSilvan Mosberger70-312/+872
2024-03-01tests.nixpkgs-check-by-name: More inline format! argumentsSilvan Mosberger1-112/+76
Now that the previous commit removed all the .display()'s that were previously necessary for PathBuf's, but now aren't for RelativePathBuf, we can also inline the format! arguments
2024-03-01tests.nixpkgs-check-by-name: Use RelativePath for relative pathsSilvan Mosberger6-153/+158
Makes the code easier to understand and less error-prone
2024-03-01tests.nixpkgs-check-by-name: Better empty argument errorSilvan Mosberger4-0/+12
2024-03-01tests.nixpkgs-check-by-name: Fix absolute path in errorsSilvan Mosberger5-23/+43
2024-03-01tests.nixpkgs-check-by-name: Various minor improvementsSilvan Mosberger38-213/+262
Co-Authored-By: Philip Taron <philip.taron@gmail.com>
2024-02-29Merge master into haskell-updatesgithub-actions[bot]4-0/+142
2024-02-29substitute: Deprecate `replacements`, introduce `replacementsList`Silvan Mosberger2-0/+98
Also: - Add tests - Treewide update - Improve docs
2024-02-27Merge pull request #290946 from ju1m/systemd-option-listWill Fancher3-0/+44
nixos/systemd: merge unit options as lists when at least one value is a list
2024-02-25nixos/systemd: merge unit options as lists when at least one value is a listJulien Moutinho3-0/+44
2024-02-25Merge master into haskell-updatesgithub-actions[bot]1-1/+16
2024-02-23tests.nixpkgs-check-by-name: Fix internal docsSilvan Mosberger1-2/+5
2024-02-23tests.nixpkgs-check-by-name: Improve errors for new packagesSilvan Mosberger6-23/+75
Or rather, make it more consistent
2024-02-23tests.nixpkgs-check-by-name: More spaces in errorsSilvan Mosberger9-5/+19
2024-02-23tests.nixpkgs-check-by-name: Better error for empty second argSilvan Mosberger7-25/+77
2024-02-23tests.nixpkgs-check-by-name: More consistent errorsSilvan Mosberger6-8/+8
2024-02-23tests.nixpkgs-check-by-name: Evaluate base and main branch in parallelSilvan Mosberger1-7/+13
2024-02-23tests.nixpkgs-check-by-name: Improve errors relating to the base branchSilvan Mosberger55-37/+110
2024-02-23tests.nixpkgs-check-by-name: Improve more errorsSilvan Mosberger10-54/+134
2024-02-22tests.nixpkgs-check-by-name: Improve non-syntactic callPackage error moreSilvan Mosberger6-14/+79
2024-02-22tests.nixpkgs-check-by-name: Improve error for wrong package fileSilvan Mosberger6-31/+106
2024-02-19tests.nixpkgs-check-by-name: Better error for non-syntactic callPackageSilvan Mosberger5-53/+111
2024-02-19tests.nixpkgs-check-by-name: Fix allowing non-path overridesSilvan Mosberger5-18/+26
An edge case was allowed when it shouldn't be: A package defined in `pkgs/by-name` could be overridden in `all-packages.nix` if it was of the form `callPackage (<expr>) { <non-empty> }`. This is not right, it's required that the first argument be the path matching the package to be overridden.
2024-02-19tests.nixpkgs-check-by-name: Improve inherit detectionSilvan Mosberger1-6/+30
Detect inherit's better, such that a future commit can use this information in an error message
2024-02-18Merge master into haskell-updatesgithub-actions[bot]1-0/+1
2024-02-17Merge staging-next into staginggithub-actions[bot]1-0/+1
2024-02-17fetchPypiLegacy: add testDavHau1-0/+1
2024-02-16Merge pull request #255463 from ↵Rick van Schijndel1-1/+16
emilylange/stdenv/patch-shebangs-trailing-newline patch-shebangs: fix crash with shebang without trailing newline
2024-02-13Merge master into haskell-updatesgithub-actions[bot]1-2/+2
2024-02-12check-by-name: Update pinned toolingSilvan Mosberger1-2/+2
Includes https://github.com/NixOS/nixpkgs/pull/287083
2024-02-10Merge master into haskell-updatesgithub-actions[bot]1-2/+2
2024-02-09check-by-name: Update pinned toolSilvan Mosberger1-2/+2
Includes https://github.com/NixOS/nixpkgs/pull/285089
2024-02-09Merge master into haskell-updatesgithub-actions[bot]14-220/+351
2024-02-08tests.nixpkgs-check-by-name: Test against sbcl-like regressionSilvan Mosberger4-0/+9
This adds a test to check that a commit like 0a3dab4af34e4d086931d82827bfc8760c3e3150 would fail CI After doing some improvements to the `pkgs/by-name` check I discovered that sbcl shouldn't have been allowed in `pkgs/by-name` after all as is. Specifically, the requirement is that if `pkgs/by-name/sb/sbcl` exists, the definition of the `sbcl` attribute must look like sbcl = callPackage ../by-name/sb/sbcl/package.nix { ... }; However it currently is an alias like sbcl = sbcl_2_4_1; This wasn't detected before because `sbcl_2_4_1` was semantically defined using `callPackage`: sbcl_2_4_1 = wrapLisp { pkg = callPackage ../development/compilers/sbcl { version = "2.4.1"; }; faslExt = "fasl"; flags = [ "--dynamic-space-size" "3000" ]; }; However this doesn't syntactically match what is required. In https://github.com/NixOS/nixpkgs/pull/285089 I introduced syntactic checks for exactly this, but they were only used for packages not already in `pkgs/by-name`. Only now that I'm doing the refactoring to also use this check for `pkgs/by-name` packages this problem is noticed. While introducing this new check is technically an increase in strictness, and therefore would justify adding a new ratchet, I consider this case to be rare enough that we don't need to do that. This commit introduces a test to prevent such regressions in the future Moving sbcl back out of `pkgs/by-name` will be done when the pinned CI is updated