mergify[bot]
3f3feae33e
Merge pull request #12071 from Mic92/clang-tidy
...
Prepare nix to run with clang-tidy
2024-12-17 21:53:35 +00:00
Jörg Thalheim
3392a96901
ca-fd-leak: fix various unsafe c handling
2024-12-17 22:00:34 +01:00
Jörg Thalheim
b9bbdbeb0b
ca-fd-leak: add missing c casts
2024-12-17 22:00:34 +01:00
Eelco Dolstra
757ea70644
Add a test
2024-12-17 13:13:39 +01:00
Jörg Thalheim
20ee83fffd
tests/nixos: disable nixos-option
2024-12-16 16:50:59 +01:00
Eelco Dolstra
08361f031d
EvalState::realiseContext(): Allow access to the entire closure
...
Fixes #11030 .
2024-12-16 16:16:36 +01:00
Eelco Dolstra
bdf579d018
Merge pull request #12051 from Mic92/ci-follow-up
...
Skip tests on systems with restricted usernamespaces
2024-12-16 15:19:17 +01:00
mergify[bot]
2baab6412f
Merge pull request #12028 from DeterminateSystems/fail-on-unlocked
...
nix flake lock: Fail if there is an unlocked input
2024-12-16 08:55:40 +00:00
Jörg Thalheim
da7f7ba810
functional-tests: skip tests if the kernel restricts unprivileged user namespaces
...
Update tests/functional/common/functions.sh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-12-15 16:07:27 +01:00
mergify[bot]
77e391b39d
Merge pull request #12012 from wh0/patch-1
...
tests: derivation-advanced-attributes unset NIX_STORE
2024-12-14 16:11:16 +00:00
mergify[bot]
f1187cb696
Merge pull request #12039 from DeterminateSystems/gitignore
...
Prune unneeded .gitignore entries
2024-12-12 02:37:50 +00:00
Eelco Dolstra
da2c2547a9
Merge pull request #12033 from Mic92/various-picks
...
Various packaging improvements
2024-12-11 17:01:39 +01:00
Eelco Dolstra
6d97d57dc7
Prune unneeded .gitignore entries
2024-12-11 16:20:29 +01:00
Eelco Dolstra
50ba85167c
Merge pull request #12024 from NaN-git/null-char
...
fromJSON/fromTOML: throw if string contains null byte
2024-12-10 12:29:48 +01:00
Philipp Otterbein
3a9d64b8e3
fromJSON/fromTOML: throw if string contains null byte
2024-12-09 22:04:21 +01:00
Jörg Thalheim
9b40618d2e
tests/nixos: disable documentation to improve eval speed
...
we are not testing any nixos modules, so we don't need to generate
documentation. This will give us a bit of speed up.
2024-12-09 21:19:48 +01:00
Leandro Emmanuel Reina Kiperman
140b34b7ed
Apply suggestions from code review
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-12-09 19:02:50 +01:00
Robert Hensing
c783cd22ac
tests: Make unusual logging test conditional on fixed daemon version
2024-12-09 17:29:45 +01:00
Robert Hensing
1421420e86
test: Move unusual-logging to run only in logging test case
2024-12-09 17:19:47 +01:00
Robert Hensing
1485937b89
tests/functional/dependencies.nix: Check that we tolerate syntax and type errors
2024-12-09 15:59:59 +01:00
Linus Heckemann
ee03fd478e
libutil: handle json builder log messages with unexpected format
...
Before this change, expressions like:
with import <nixpkgs> {};
runCommand "foo" {} ''
echo '@nix {}' >&$NIX_LOG_FD
''
would result in Lix crashing, because accessing nonexistent fields of
a JSON object throws an exception.
Rather than handling each field individually, we just catch JSON
exceptions wholesale. Since these log messages are an unusual
circumstance, log a warning when this happens.
Fixes #544 .
Change-Id: Idc2d8acf6e37046b3ec212f42e29269163dca893
(cherry picked from commit e55cd3beea710db727fd966f265a1b715b7285f3)
2024-12-09 15:59:59 +01:00
Robert Hensing
e82ff51726
tests/functional/dependencies.nix: Refactor, replace arcane let
2024-12-09 15:59:59 +01:00
Eelco Dolstra
8b9e0f86e4
nix flake lock: Fail if there is an unlocked input
...
Since the only purpose of `nix flake lock` is to write a new lock
file, it should be a fatal error if we can't write the lock file.
2024-12-09 14:03:12 +01:00
Eelco Dolstra
33b645cedf
nix hash convert: Don't fail on uppercase base-16 hashes
2024-12-05 16:19:21 +01:00
Eelco Dolstra
52f1cd0595
nix hash convert: Support SRI hashes that lack trailing '=' characters
...
Fixes #11996 .
2024-12-05 16:02:35 +01:00
wh0
d1894f3456
tests: derivation-advanced-attributes unset NIX_STORE
...
when built by nix, NIX_STORE is set, which breaks $got when it
is not the default /nix/store
2024-12-04 23:21:07 -08:00
Leandro Reina
9a7b14c233
Fix flake path in test
2024-12-04 16:39:57 +01:00
Brian Camacho
169d62a382
Merge branch 'master' into lfs
2024-12-02 15:06:28 -05:00
Brian Camacho
85d6efb40d
trim storepath in test
2024-12-02 14:52:51 -05:00
Ryan Hendrickson
8034589d7e
parser-state: fix attribute merging
2024-11-27 21:41:47 +01:00
Sergei Trofimovich
2679e55232
tests/functional/meson.build: always look up ls
as a coreutils
proxy
...
Without the change `meson setup` fails on `Gentoo or Debian as those
don't use multicall binary:
$ meson setup ..
...
Executing subproject nix-functional-tests
...
../src/nix-functional-tests/meson.build:24:14: ERROR: Program 'coreutils' not found or not executable
The change always uses `ls` to look `coreutils` up.
Closes: https://github.com/NixOS/nix/issues/11975
2024-11-26 23:08:10 +00:00
Leandro Reina
6778d24a27
Add (currently failing) test for flake inputs
2024-11-25 23:56:32 +01:00
Eelco Dolstra
0b00bf7c09
Merge remote-tracking branch 'origin/master' into relative-flakes
2024-11-22 14:44:32 +01:00
Eelco Dolstra
b767987942
Merge pull request #11926 from DeterminateSystems/split-flake-tests
...
Break up tests/functional/flakes/flakes.sh
2024-11-20 23:41:09 +01:00
Eelco Dolstra
e122acef97
Fix VM test
2024-11-20 23:03:31 +01:00
Eelco Dolstra
671df02bf7
shellcheck
2024-11-20 23:03:31 +01:00
Eelco Dolstra
d002324f1b
Merge remote-tracking branch 'origin/master' into nix-copy-gc
2024-11-20 21:05:52 +01:00
Eelco Dolstra
6832ee5d6f
Move non-flake input tests into a separate file
2024-11-20 19:51:04 +01:00
Eelco Dolstra
4cafea7c7b
Add a utility function for creating/registering a simple flake
2024-11-20 18:51:23 +01:00
Eelco Dolstra
e1cb905aca
Move --commit-lock-file-summary tests into a separate file
2024-11-20 18:42:33 +01:00
Eelco Dolstra
fd2df5f02f
Rename nonFlakeDir -> scriptDir
2024-11-20 18:23:20 +01:00
Eelco Dolstra
5533b0c735
Move shebang flake tests into a separate test
2024-11-20 18:08:31 +01:00
Leandro Reina
79d41062d0
Fix some errors, and add tests for them
2024-11-20 17:53:06 +01:00
Eelco Dolstra
af07f33d37
resolveLookupPathPath(): Return a SourcePath instead of a string
...
Cherry-picked from lazy-trees.
2024-11-19 18:03:31 +01:00
Robert Hensing
6b0aceedc5
Merge pull request #11902 from roberth/fix-issue-11892
...
Fix issue #11892
2024-11-18 22:20:01 +01:00
Robert Hensing
c4b95dbdd1
Fix issue 11892
...
It seems that I copied the expression for baseDir thoughtlessly and
did not come back to it.
- `baseDir` was only used in the `fromArgs` branch.
- `fromArgs` is true when `packages` is true.
2024-11-18 21:04:04 +01:00
Eelco Dolstra
428af8c66f
tests/functional/flakes/develop.sh: Don't hang
...
The bash shell started by `nix develop` waited forever for stdin
input.
Fixes #11827 .
2024-11-18 16:28:12 +01:00
Robert Hensing
d8d59298e5
Merge pull request #9854 from the-sun-will-rise-tomorrow/docker-user
...
docker: Allow building for non-root user
2024-11-18 14:55:51 +01:00
Brian Camacho
6d0043902a
Merge remote-tracking branch 'origin/master' into lfs
2024-11-17 12:16:15 -05:00
Brian Camacho
9a6388dce6
logs around getFingerprint
2024-11-12 02:17:06 -05:00