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

[WB-4896] Fixing Audio Reference and Making Artifact Test Better #1937

Merged
merged 14 commits into from
Mar 9, 2021

Conversation

tssweeney
Copy link
Contributor

https://wandb.atlassian.net/browse/WB-4896

Description

Allows artifacts to resolve local paths to named entries and uses that functionality to fix audio reference bug detected by the regression suite: https://wandb.atlassian.net/browse/WB-4896. Also, added more debuggablity to regression suite.

Testing

How was this PR tested?

@codecov
Copy link

codecov bot commented Mar 8, 2021

Codecov Report

Merging #1937 (30a33b7) into master (9652aea) will increase coverage by 0.05%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1937      +/-   ##
==========================================
+ Coverage   74.87%   74.93%   +0.05%     
==========================================
  Files         233      233              
  Lines       28754    28821      +67     
==========================================
+ Hits        21530    21596      +66     
- Misses       7224     7225       +1     
Impacted Files Coverage Δ
wandb/apis/public.py 73.02% <50.00%> (-0.17%) ⬇️
wandb/data_types.py 79.48% <54.54%> (+0.10%) ⬆️
tests/test_data_types.py 100.00% <100.00%> (ø)
wandb/sdk/lib/git.py 73.68% <0.00%> (ø)
wandb/sdk/interface/interface.py 88.66% <0.00%> (+0.18%) ⬆️
wandb/filesync/dir_watcher.py 81.68% <0.00%> (+1.48%) ⬆️
wandb/sdk/internal/meta.py 88.59% <0.00%> (+3.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9652aea...30a33b7. Read the comment docs.

@tssweeney
Copy link
Contributor Author

Local artifact_object_reference_test.py completes end to end

@tssweeney tssweeney marked this pull request as ready for review March 8, 2021 19:25
@@ -389,6 +386,7 @@ def test_get_artifact_obj_by_name():
assert actual_table.columns == columns
assert actual_table.data[0][columns.index("Image")] == image
assert actual_table.data[1][columns.index("Image")] == _make_wandb_image("2")
actual_table._eq_debug(_make_wandb_table(), True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these debug calls still supposed to be here? I thought they were for dropping in temporarily on a misbehaving test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, since they will give a better error description.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. What about the == below, then -- is that redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well i figured there is a non zero chance something get borked in implementation between _eq_debug and eq so i kept both for good measure.

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