Skip to content

fix(artifacts): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors#10591

Merged
tonyyli-wandb merged 2 commits intomainfrom
tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors
Sep 26, 2025
Merged

fix(artifacts): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors#10591
tonyyli-wandb merged 2 commits intomainfrom
tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors

Conversation

@tonyyli-wandb
Copy link
Copy Markdown
Contributor

@tonyyli-wandb tonyyli-wandb commented Sep 26, 2025

Description

Api.artifact_exists() and Api.artifact_collection_exists() should raise on timeout errors, rather than (potentially erroneously) returning False.

  • 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 September 26, 2025 20:00
Copy link
Copy Markdown
Contributor Author

@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch from 352799b to 1710ed7 Compare September 26, 2025 20:03
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2025

Codecov Report

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

Files with missing lines Patch % Lines
wandb/apis/public/api.py 66.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch from 1710ed7 to 19e3819 Compare September 26, 2025 20:27
@tonyyli-wandb tonyyli-wandb changed the title fix(sdk): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors fix(artifacts): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors Sep 26, 2025
@tonyyli-wandb tonyyli-wandb changed the title fix(artifacts): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors fix(artifacts): Api.artifact_exists and Api.artifact_collection_exists should raise on timeout errors Sep 26, 2025
Comment thread wandb/apis/public/api.py
Comment thread wandb/errors/errors.py Outdated
Comment thread wandb/util.py Outdated
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch from 19e3819 to e1a19ed Compare September 26, 2025 21:31
Comment thread wandb/sdk/data_types/bokeh.py
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch from e1a19ed to 1ba09d4 Compare September 26, 2025 21:39
@tonyyli-wandb tonyyli-wandb enabled auto-merge (squash) September 26, 2025 21:40
@tonyyli-wandb tonyyli-wandb force-pushed the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch from 57d3d24 to 8640d04 Compare September 26, 2025 22:16
@tonyyli-wandb tonyyli-wandb merged commit 7ed8474 into main Sep 26, 2025
25 of 26 checks passed
@tonyyli-wandb tonyyli-wandb deleted the tonyyli/fix_sdk_api.artifact_exists_and_api.artifact_collection_exists_should_raise_on_timeout_errors branch September 26, 2025 22:29
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