Skip to content

Validate cloudpickle content hash#5103

Open
schustmi wants to merge 1 commit into
developfrom
feature/validate-cloudpick-content-hash
Open

Validate cloudpickle content hash#5103
schustmi wants to merge 1 commit into
developfrom
feature/validate-cloudpick-content-hash

Conversation

@schustmi

@schustmi schustmi commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Record the SHA-256 of the stored file when the cloudpickle materializer saves an artifact and validate it before loading the artifact back.

@schustmi schustmi added enhancement New feature or request release-notes Release notes will be attached and used publicly for this PR. labels Jul 20, 2026
@github-actions github-actions Bot added the internal To filter out internal PRs and issues label Jul 20, 2026
@schustmi
schustmi requested a review from bcdurak July 20, 2026 15:30
@schustmi
schustmi force-pushed the feature/validate-cloudpick-content-hash branch from f03ecbc to 1bf1316 Compare July 20, 2026 15:33

@bcdurak bcdurak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a small nitpick comment, otherwise looks good.


# Content hash recorded for the artifact version, set by the loading
# machinery before `load` so materializers can validate the stored data.
expected_content_hash: Optional[str] = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit surprised to see this as a class attribute. Wouldn't it be more consistent to treat this as an instance variable like the uri that is dependent on the artifact version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request internal To filter out internal PRs and issues release-notes Release notes will be attached and used publicly for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants