Skip to content

fix(artifacts): fetch artifactManifest more lazily and use manifest metadata from GraphQL#10680

Merged
tonyyli-wandb merged 7 commits intomainfrom
tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql
Oct 15, 2025
Merged

fix(artifacts): fetch artifactManifest more lazily and use manifest metadata from GraphQL#10680
tonyyli-wandb merged 7 commits intomainfrom
tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql

Conversation

@tonyyli-wandb
Copy link
Copy Markdown
Contributor

@tonyyli-wandb tonyyli-wandb commented Oct 9, 2025

Description

PR:

  • updates handling of Artifact.manifest so that we delay downloading and generating the download URL for the artifact manifest until they are first used.
  • ensures that if the manifest has not been locally set or modified, Artifact.size and Artifact.digest can return without (re-)fetching it.
  • I updated CHANGELOG.unreleased.md, or it's not applicable

Testing

How was this PR tested?

@tonyyli-wandb tonyyli-wandb requested review from a team as code owners October 9, 2025 21:25
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 Oct 9, 2025

Codecov Report

❌ Patch coverage is 96.77419% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
wandb/sdk/artifacts/artifact.py 92.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@tonyyli-wandb tonyyli-wandb marked this pull request as draft October 9, 2025 22:46
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch from 2facd01 to ef8d813 Compare October 9, 2025 23:35
@tonyyli-wandb tonyyli-wandb changed the title fix(artifacts): fetch artifactManifest more lazily and manifest metadata via GraphQL fix(artifacts): fetch artifactManifest more lazily and use manifest metadata from GraphQL Oct 9, 2025
@tonyyli-wandb tonyyli-wandb marked this pull request as ready for review October 9, 2025 23:52
Comment thread wandb/apis/public/api.py Outdated
Comment thread wandb/sdk/artifacts/artifact.py
Comment thread wandb/sdk/artifacts/artifact.py
Comment thread wandb/sdk/artifacts/artifact.py Outdated
Comment thread wandb/sdk/artifacts/artifact.py
Comment thread wandb/sdk/artifacts/artifact_manifests/artifact_manifest_v1.py Outdated
Comment thread tools/graphql_codegen/artifacts/artifacts.toml Outdated
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch from 89178b7 to 7b74c37 Compare October 10, 2025 00:22
Comment thread wandb/sdk/artifacts/artifact.py Outdated
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch 7 times, most recently from ed00b1e to 9ddcde1 Compare October 13, 2025 01:19
Comment thread tools/graphql_codegen/artifacts/artifacts.graphql
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch from 9ddcde1 to 24b83b9 Compare October 15, 2025 16:32
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch from 899c276 to a676003 Compare October 15, 2025 23:16
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch from a676003 to a5a8df5 Compare October 15, 2025 23:24
@tonyyli-wandb tonyyli-wandb enabled auto-merge (squash) October 15, 2025 23:25
@tonyyli-wandb tonyyli-wandb merged commit 7f4ab78 into main Oct 15, 2025
34 checks passed
@tonyyli-wandb tonyyli-wandb deleted the tonyyli/fix_artifacts_fetch_artifactmanifest_more_lazily_and_manifest_metadata_via_graphql branch October 15, 2025 23:38
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.

2 participants