feat(train): SnapshotDataset folds the Icechunk snapshot id into content_hash
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 56/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- data-engineering
Research direction
Start with pipekit_train/dataset.py, especially hash_config and CachedDataset, and read the linked Recipe registries design page for context. Use a local Icechunk repository with two commits to verify that a newly built dataset gets a different hash after the branch advances while the existing dataset remains pinned. Done also includes a doctested docstring example, a package README line, and an updated design-page status.
Written by the indexing model from the issue text.
Description
Problem / Request
content_hash hashes the config, so the same path after the data changed gives the same hash and caches go stale silently.
Proposed API
import pipekit_train as pkt
# proposed (J)
dataset = pkt.SnapshotDataset(repo_uri, ref="main", group="train")
dataset.snapshot_id # resolved at construction
dataset.content_hash # hash_config(config, snapshot_id)
References & Existing Code
hash_configpipekit_train/dataset.py:37;CachedDatasetpipekit_train/dataset.py:461- Design page: Recipe registries (source until jejjohnson/geostack#164 merges:
recipe-registries.html)
Implementation Steps
- Resolve
refto a snapshot id at construction. content_hash=hash_config(config, snapshot_id).- Reads go through the pinned snapshot only.
Definition of Done
- A new commit on the branch changes the hash of a newly built dataset and not of the existing one.
Testing
Local Icechunk repo; two commits.
Documentation
- Docstring with a doctested example; a line in the package README.
- Update the design page's status for this workstream.
Relationships
- Parent: #234
Pins checked: geostack 343d60e, geotoolz 640670c, pipekit 9e86a56.
Generated by Claude Code
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 3h 50m
- Merged PRs (30d)
- 143
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/pipekit
-
area:code layer:0-primitives priority:p2 type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jejjohnson/pipekit#296 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 57/100
jejjohnson/pipekit#411 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
jejjohnson/pipekit#410 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 5/5 Over a week Newbie friendliness 38/100
jejjohnson/pipekit#409 ·
Maintainers usually reply within 1 day
-
area:code type:feature
Difficulty 3/5 1-2 days Newbie friendliness 75/100
jejjohnson/pipekit#408 ·
Maintainers usually reply within 1 day
All issues in jejjohnson/pipekit
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day