Jörg Thalheim
812093b551
rework cache to use json instead of pickle
...
Pickle can silently break if migrate our data layout and also introduces
unwanted behaviour such as code injection that we want to avoid.
2025-04-15 07:00:00 +00:00
Johannes Kirschbauer
f7d15215ea
feat(clanLib): expose clanInternals.clanLib
...
This is usefully for:
- As api via python
- for testing clanLib downstream
2025-03-30 17:07:11 +02:00
Jonathan Thiessen
1b8974d167
Fix cached None support in FlakeCacheEntry
...
Previously, you could cache None values; however,
insertion wasn't idempotent/identical reinsertion
would lead to errors due to missing None checks.
2025-03-30 04:33:30 +00:00
Jonathan Thiessen
5e2b5fe213
Add overlapping (consistent) flake cache insert test
...
* Additionally, update `insert`'s input type hint to support None values
(as they are already selectable and (one shot) insertable).
This is necessary to appease the linter wrt the added test.
2025-03-30 04:33:30 +00:00
Qubasa
dc8bfab65d
clan-cli: Fix templates not downloading template, Make templates use Flake cache, Fix flake cache exception on conditional attribute, add more tests
2025-03-19 10:30:52 +00:00
Jörg Thalheim
f882c86fb0
don't log cache miss by default
...
This is expected and happens regular, so there is no value in logging
this.
2025-03-11 12:03:55 +01:00
Qubasa
468a25034e
clan-cli: Make Lix compatible again
2025-03-07 14:06:35 +01:00
lassulus
cb13e7fab8
clan-cli: check if paths exist in cache check
2025-02-27 02:53:41 +01:00
Qubasa
b82a3b6085
clan-cli: Fix flake.py missing cache eviction if there is a garbage collected path
2025-02-27 01:01:50 +01:00
lassulus
5ac629f549
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
lassulus
d5e391ecc8
clan-cli flake caching: fix selectors not merging
2025-02-15 09:59:41 +00:00
lassulus
2a3bc7b31b
clan-cli: hash the flake_hash to remove unwanted character from path
2025-02-15 09:59:41 +00:00
lassulus
0872b781d7
clan-cli: add persistant flake caching
2025-02-10 13:29:01 +00:00
lassulus
718e553211
clan_cli flake caching: support outPath
2025-02-10 04:33:37 +00:00
lassulus
32748c14f4
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
lassulus
51d65873a7
clan-cli: test_flake_caching: add actual flake caching test
2025-02-05 10:17:37 +00:00
a-kenji
11468c42af
pkgs/clan: Remove select debug prints
2025-02-04 07:32:55 +00:00
lassulus
3811aef9b2
clan_cli: add select command
2025-02-04 07:32:55 +00:00
a-kenji
1694f8b3a8
pkgs/clan: Fix typos
2025-02-02 23:20:39 +07:00
lassulus
fe2cfd3b37
clan-cli: add a Flake class with caching
2025-02-02 11:52:36 +00:00