Skip to content

fix(artifacts): raise on unsupported +Infinity/-Infinity values in artifact metadata#10845

Merged
tonyyli-wandb merged 2 commits intomainfrom
tonyyli/fix-artifacts-raise-on-unsupported-infinity--infinity-values-in-artifact-metadata
Nov 7, 2025
Merged

fix(artifacts): raise on unsupported +Infinity/-Infinity values in artifact metadata#10845
tonyyli-wandb merged 2 commits intomainfrom
tonyyli/fix-artifacts-raise-on-unsupported-infinity--infinity-values-in-artifact-metadata

Conversation

@tonyyli-wandb
Copy link
Copy Markdown
Contributor

@tonyyli-wandb tonyyli-wandb commented Nov 7, 2025

Description

Raises a ValueError on attempting to assign a dict to Artifact.metadata that contains infinite values, or on attempting to log an Artifact with such metadata values.

Infinite values will serialize to JS-compatible +Infinity/-Infinity constants, but these do not currently play well with Go's standard json encoder/decoder. For now, raising a defensive client-side ValueError is preferable to a response timeout.

Note that NaN values are allowed, as prior behavior already serializes them to null.

  • I updated CHANGELOG.unreleased.md, or it's not applicable

Testing

How was this PR tested?

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tonyyli-wandb tonyyli-wandb marked this pull request as ready for review November 7, 2025 21:21
@tonyyli-wandb tonyyli-wandb requested review from a team as code owners November 7, 2025 21:21
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix-artifacts-raise-on-unsupported-infinity--infinity-values-in-artifact-metadata branch from dee602a to c43f787 Compare November 7, 2025 23:27
@tonyyli-wandb tonyyli-wandb enabled auto-merge (squash) November 7, 2025 23:28
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix-artifacts-raise-on-unsupported-infinity--infinity-values-in-artifact-metadata branch 2 times, most recently from ddbb93f to 14215b1 Compare November 7, 2025 23:47
@tonyyli-wandb tonyyli-wandb merged commit b81594c into main Nov 7, 2025
25 checks passed
@tonyyli-wandb tonyyli-wandb deleted the tonyyli/fix-artifacts-raise-on-unsupported-infinity--infinity-values-in-artifact-metadata branch November 7, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants