Repository navigation
docs: XDG_CACHE_HOME moves the calibration folder; set it to a mounted path in a container - #57
Merged
Vasyl-Trefilov merged 1 commit intoNov 19, 2026
Conversation
…d path in a container (RustingStudio#52)
Aletheore Flash reviewNo issues found in this diff. |
🔍 Aletheore evidence diffWhat changed
Aggregate deltas
|
pberenyi
pushed a commit
to pberenyi/RustingStrata
that referenced
this pull request
Nov 20, 2026
Co-authored-by: Andrew Pavlov <100561417+andrew-pavlov-ua@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #52.
What
#52 reports that
calibratewrites to$HOME/.cache/rusting_strata, so adocker run --rmcontainer loses the file on exit and the next container runs uncalibrated. The reporter worked around it with-e HOME=/data/cc.The code already has a narrower way:
expert_cache::cache_dir()readsXDG_CACHE_HOMEfirst, andcalibration_pathinsrc/main.rsbuilds on it. The docs only name~/.cache/rusting_strata, so nobody finds it. This PR documents it in the two places that name the folder:docs/USAGE.md, at--chunk/calibrate:XDG_CACHE_HOMEmoves the folder; in a container set it to a mounted path.docs/HOSTING.md, after "Runcalibrateas the service user": the same for a container, with an example (-v /srv/strata-cache:/cache -e XDG_CACHE_HOME=/cache).Docs only, no code change. It covers the first of the three fixes suggested in #52 as far as it already exists; a
--calibration-outflag and a louder start-up line are left for you to decide, so this does not close the issue.How I checked
In a
rust:latestcontainer, againstmainat 5675724, a one-line example that printsrusting_strata::expert_cache::cache_dir():I did not run
calibrateorservethemselves (no GPU in that container); that they use this folder is from readingcalibration_path(src/main.rs) andcache_dir(src/expert_cache.rs).