Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(artifacts): add optional timeout parameter to artifacts wait() #4181

Merged
merged 14 commits into from Aug 31, 2022

Conversation

estellazx
Copy link
Contributor

@estellazx estellazx commented Aug 25, 2022

Fixes WB-8590

Description

Add optional timeout parameter to Artifact.wait()

Testing

Unit tests testing that the wait() fails if the timeout runs out and wait() successes when there is no timeout or wait is finished faster than timeout

Checklist

@estellazx estellazx changed the title artifact wait timeout code feat(artifacts): add optional timeout parameter to artifacts wait() Aug 25, 2022
Copy link
Contributor

@KyleGoyette KyleGoyette left a comment

Choose a reason for hiding this comment

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

Generally LGTM, concerned about just how big the array is for the test failure with the 2 second timeout. Maybe we should just test the 0 second time out?

tests/unit_tests/test_wandb_run.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_run.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_artifacts.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_run.py Outdated Show resolved Hide resolved
tests/unit_tests/test_wandb_run.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_run.py Outdated Show resolved Hide resolved
tests/unit_tests/test_wandb_run.py Outdated Show resolved Hide resolved
tests/unit_tests/test_wandb_artifacts_full.py Outdated Show resolved Hide resolved
tests/unit_tests/test_wandb_artifacts_full.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_run.py Outdated Show resolved Hide resolved
wandb/sdk/wandb_artifacts.py Outdated Show resolved Hide resolved
Copy link
Contributor

@speezepearson speezepearson left a comment

Choose a reason for hiding this comment

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

🚀

@estellazx estellazx enabled auto-merge (squash) August 30, 2022 16:56
wandb/sdk/wandb_run.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 31, 2022

Codecov Report

Merging #4181 (dcc273b) into master (1aa0e5a) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4181      +/-   ##
==========================================
- Coverage   82.64%   82.63%   -0.02%     
==========================================
  Files         256      256              
  Lines       32569    32574       +5     
==========================================
  Hits        26918    26918              
- Misses       5651     5656       +5     
Flag Coverage Δ
functest 55.95% <88.88%> (+0.01%) ⬆️
unittest 73.34% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
wandb/errors/__init__.py 92.85% <100.00%> (+0.35%) ⬆️
wandb/sdk/wandb_artifacts.py 81.79% <100.00%> (ø)
wandb/sdk/wandb_run.py 90.88% <100.00%> (+0.01%) ⬆️
wandb/agents/pyagent.py 70.80% <0.00%> (-1.61%) ⬇️
wandb/sdk/lib/sock_client.py 93.12% <0.00%> (-1.06%) ⬇️
wandb/sdk/internal/internal_api.py 86.46% <0.00%> (-0.52%) ⬇️
wandb/sdk/wandb_setup.py 88.44% <0.00%> (-0.51%) ⬇️
wandb/sdk/interface/interface_shared.py 85.88% <0.00%> (-0.31%) ⬇️
wandb/sdk/lib/git.py 79.01% <0.00%> (ø)
wandb/integration/tensorboard/monkeypatch.py 90.12% <0.00%> (ø)
... and 3 more

@estellazx estellazx merged commit 07de99d into master Aug 31, 2022
@estellazx estellazx deleted the artifactWait branch August 31, 2022 04:24
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.

None yet

5 participants