-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
migrate-cache currently only handles */terms.csv files (curie, label, retrieved_at). It does not touch the enum membership cache files in cache/enums/*.csv (curie-only format).
These enum cache files suffer from the same ordering instability — they're written in non-deterministic order depending on which code path generated them (_save_enum_cache sorts, but _add_to_enum_cache appends). Existing files on disk may be unsorted even though newer code paths produce sorted output.
Expected
migrate-cache --sort-only should also find and sort enums/*.csv files by CURIE, so that a single command normalizes all cache artifacts.
Current workaround
for f in cache/enums/*.csv; do
head -1 "$f" > /tmp/header.csv
tail -n+2 "$f" | sort > /tmp/sorted.csv
cat /tmp/header.csv /tmp/sorted.csv > "$f"
doneContext
- Discovered while testing v0.3.0rc1 in the dismech repo
- Related to term cache files should be free of spurious diffs #9 (cache stability)
- The enum caches have a simpler format (just
curiecolumn) so normalization is straightforward
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request