Skip to content

Make Dask transform test deterministic - #1070

Merged
thehomebrewnerd merged 2 commits into
mainfrom
codecov-fix
Jul 17, 2020
Merged

Make Dask transform test deterministic#1070
thehomebrewnerd merged 2 commits into
mainfrom
codecov-fix

Conversation

@thehomebrewnerd

Copy link
Copy Markdown
Contributor

The test test_dask_primitives.py::test_transform was not deterministic, causing a different set of features to be used from run to run. This resulted in small differences in code coverage between runs. This PR, updates this test to make sure the same set of features are always used.

Note: the root of this issue is that when using max_features, the same set of features are not always returned by dfs (see issue #833). The updates in this PR are only a needed as a temporary measure until #833 is fixed.

@codecov

codecov Bot commented Jul 17, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1070 into main will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1070   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         126      126           
  Lines       13082    13089    +7     
=======================================
+ Hits        12867    12874    +7     
  Misses        215      215           
Impacted Files Coverage Δ
...ools/tests/primitive_tests/test_dask_primitives.py 100.00% <100.00%> (ø)

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 8c434ff...1f2cdd0. Read the comment docs.

@thehomebrewnerd
thehomebrewnerd requested a review from rwedge July 17, 2020 14:20

@rwedge rwedge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@thehomebrewnerd
thehomebrewnerd merged commit 66afe7f into main Jul 17, 2020
@thehomebrewnerd
thehomebrewnerd deleted the codecov-fix branch July 17, 2020 14:25
@rwedge rwedge mentioned this pull request Jul 31, 2020
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