lix/src/libstore/tests
Robert Hensing fb94d5cabd NarInfoDiskCache: Keep BinaryCache.id stable and improve test
Fixes #3898

The entire `BinaryCaches` row used to get replaced after it became
stale according to the `timestamp` column. In a concurrent scenario,
this leads to foreign key conflicts as different instances of the
in-process `state.caches` cache now differ, with the consequence that
the older process still tries to use the `id` number of the old record.

Furthermore, this phenomenon appears to have caused the cache for
actual narinfos to be erased about every week, while the default
ttl for narinfos was supposed to be 30 days.
2023-02-07 23:34:36 +01:00
..
test-data Add error reporting to machine spec paser 2021-10-17 12:45:56 +04:00
derived-path.cc Make per-variant Arbitrary impls too 2023-01-30 10:56:00 -05:00
derived-path.hh Make per-variant Arbitrary impls too 2023-01-30 10:56:00 -05:00
libstore.hh Allow unit test infra to be reused across libs' tests 2023-01-29 13:52:57 -05:00
local.mk More property tests 2023-01-29 17:09:59 -05:00
machines.cc Add error reporting to machine spec paser 2021-10-17 12:45:56 +04:00
nar-info-disk-cache.cc NarInfoDiskCache: Keep BinaryCache.id stable and improve test 2023-02-07 23:34:36 +01:00
outputs-spec.cc More property tests 2023-01-29 17:09:59 -05:00
outputs-spec.hh More property tests 2023-01-29 17:09:59 -05:00
path.cc More property tests 2023-01-29 17:09:59 -05:00
path.hh More property tests 2023-01-29 17:09:59 -05:00
references.cc Add a test for RefScanSink and clean up the code 2021-10-04 14:29:42 +02:00