name paths for purity, preventing double-hash store paths #346

Closed
kiara wants to merge 3 commits from kiara/fediversity:purge-double-hash into main
Owner
see https://github.com/NixOS/nix/issues/10627
name paths for purity, preventing double-hash store paths
Some checks failed
/ check-pre-commit (pull_request) Failing after 9s
/ check-peertube (pull_request) Successful in 17s
/ check-panel (pull_request) Failing after 10s
/ check-deployment-basic (pull_request) Failing after 39s
/ check-deployment-cli (pull_request) Failing after 37s
196d4e1540
https://github.com/NixOS/nix/issues/10627

Is this solving some issue we had?

Is this solving some issue we had?
Author
Owner

@fricklerhandwerk this should be noticeable only after #92; the impurity makes it less cacheable as the hash would depend on the root directory name.
so no more urgent than that.

@fricklerhandwerk this should be noticeable only after #92; the impurity makes it less cacheable as the hash would depend on the root directory name. so no more urgent than that.
restore path for place that needed path over string
Some checks failed
/ check-pre-commit (pull_request) Successful in 13s
/ check-peertube (pull_request) Successful in 18s
/ check-panel (pull_request) Successful in 1m7s
/ check-deployment-basic (pull_request) Successful in 29m39s
/ check-deployment-cli (pull_request) Failing after 29m37s
0930a8b75b
fricklerhandwerk force-pushed purge-double-hash from d4cbc915cd
Some checks failed
/ check-pre-commit (pull_request) Failing after 10s
/ check-peertube (pull_request) Successful in 19s
/ check-panel (pull_request) Successful in 1m5s
/ check-deployment-cli (pull_request) Failing after 14m3s
/ check-deployment-basic (pull_request) Failing after 14m5s
to 0c30914acb
Some checks failed
/ check-pre-commit (pull_request) Failing after 8s
/ check-peertube (pull_request) Successful in 17s
/ check-panel (pull_request) Successful in 1m9s
/ check-deployment-cli (pull_request) Failing after 11m57s
/ check-deployment-basic (pull_request) Failing after 11m59s
2025-06-11 18:27:55 +02:00
Compare
fricklerhandwerk force-pushed purge-double-hash from 0c30914acb
Some checks failed
/ check-pre-commit (pull_request) Failing after 8s
/ check-peertube (pull_request) Successful in 17s
/ check-panel (pull_request) Successful in 1m9s
/ check-deployment-cli (pull_request) Failing after 11m57s
/ check-deployment-basic (pull_request) Failing after 11m59s
to 43c64debfc
Some checks failed
/ check-pre-commit (pull_request) Failing after 8s
/ check-peertube (pull_request) Successful in 16s
/ check-deployment-cli (pull_request) Failing after 11m37s
/ check-deployment-basic (pull_request) Failing after 11m39s
/ check-panel (pull_request) Failing after 11m41s
2025-06-11 18:28:16 +02:00
Compare
fricklerhandwerk force-pushed purge-double-hash from 43c64debfc
Some checks failed
/ check-pre-commit (pull_request) Failing after 8s
/ check-peertube (pull_request) Successful in 16s
/ check-deployment-cli (pull_request) Failing after 11m37s
/ check-deployment-basic (pull_request) Failing after 11m39s
/ check-panel (pull_request) Failing after 11m41s
to 5e887094c3
Some checks failed
/ check-pre-commit (pull_request) Failing after 7s
/ check-peertube (pull_request) Successful in 16s
/ check-deployment-cli (pull_request) Failing after 11m5s
/ check-deployment-basic (pull_request) Failing after 11m7s
/ check-panel (pull_request) Failing after 11m9s
2025-06-11 18:28:48 +02:00
Compare

I really don't know whether the decrease in readability is worth the questionable increase in caching. I see that for shell.nix it would slightly improve the situation if a contributor happened to change the containing directory's name, but otherwise? @Niols Is the double-hashed-storepath actually a thing for the deployment test? Or could the explicit store path name be isolated to just the test code? Would it maybe get solved by moving the test flakes to the VM test rather than re-using the main flake?

I really don't know whether the decrease in readability is worth the questionable increase in caching. I see that for `shell.nix` it would slightly improve the situation if a contributor happened to change the containing directory's name, but otherwise? @Niols Is the double-hashed-storepath actually a thing for the deployment test? Or could the explicit store path name be isolated to just the test code? Would it maybe get solved by moving the test flakes to the VM test rather than re-using the main flake?
Author
Owner

i do suppose even if top-level caching is beaten by this, caching of dependency derivations should be fine still, so i'd be okay with closing if preferred

i do suppose even if top-level caching is beaten by this, caching of dependency derivations should be fine still, so i'd be okay with closing if preferred
fricklerhandwerk closed this pull request 2025-06-11 21:30:03 +02:00
Some checks failed
/ check-pre-commit (pull_request) Failing after 7s
/ check-peertube (pull_request) Successful in 16s
/ check-deployment-cli (pull_request) Failing after 11m5s
/ check-deployment-basic (pull_request) Failing after 11m7s
/ check-panel (pull_request) Failing after 11m9s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
fediversity/fediversity!346
No description provided.