Skip to content

Fix conda test failing#3607

Merged
MichaelFu512 merged 18 commits into
mainfrom
3600-Undo-3.9-Testskips
Jul 13, 2022
Merged

Fix conda test failing#3607
MichaelFu512 merged 18 commits into
mainfrom
3600-Undo-3.9-Testskips

Conversation

@MichaelFu512
Copy link
Copy Markdown
Contributor

@MichaelFu512 MichaelFu512 commented Jul 11, 2022

Pull Request Description

I changed some things in component_tests/test_utils.py and it made the conda build fail when pushed to main with this error:
"FAILED evalml/tests/component_tests/test_utils.py::test_all_components - Asse...
WARNING:conda_build.build:Tests failed for evalml-0.54.0-hd8ed1ab_2.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
3300
TESTS FAILED: evalml-0.54.0-hd8ed1ab_2.tar.bz2".

So I just reverted the changes I did to test_utils.py and conftest.py. and hopefully that fixes it


After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:123.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 11, 2022

Codecov Report

Merging #3607 (ea92168) into main (57a12e7) will decrease coverage by 0.1%.
The diff coverage is 80.0%.

@@           Coverage Diff           @@
##            main   #3607     +/-   ##
=======================================
- Coverage   99.7%   99.7%   -0.0%     
=======================================
  Files        335     335             
  Lines      33503   33505      +2     
=======================================
+ Hits       33382   33383      +1     
- Misses       121     122      +1     
Impacted Files Coverage Δ
evalml/tests/component_tests/test_utils.py 98.9% <80.0%> (-1.1%) ⬇️

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 57a12e7...ea92168. Read the comment docs.

@MichaelFu512 MichaelFu512 marked this pull request as ready for review July 12, 2022 17:49
# No prophet, ARIMA, and vowpalwabbit
expected_components = all_requirements_set.difference(not_supported_in_conda)

elif is_using_windows and not is_running_py_39_or_above:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if the issue was conda - can we test dropping these windows + py 39 cases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably! I did it earlier but wasn't sure if that was the right approach. I'll change it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if the purpose of your previous PR was to increase coverage for py39 (and these test cases still pass under those scenarios) I would say to drop these cases but keep the conda case because that is still needed. Thank you!

Copy link
Copy Markdown
Collaborator

@jeremyliweishih jeremyliweishih left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the quick fix! @chukarsten will need you to merge due to coverage.

Comment thread evalml/tests/conftest.py Outdated
"markers",
"skip_during_conda: mark test to be skipped if running during conda build",
)
config.addinivalue_line(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we need this still?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oops I should've caught that, thanks!

Comment thread docs/source/release_notes.rst Outdated
* Testing Changes
* Pinned GraphViz version for Windows CI Test :pr:`3596`
* Removed ``pytest.mark.skip_if_39`` pytest marker :pr:`3602`
* Removed ``pytest.mark.skip_if_39`` pytest marker :pr:`3607`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would list both PRs for history:
"Removed pytest.mark.skip_if_39 pytest marker :pr:3602, :pr:3607"

@MichaelFu512 MichaelFu512 enabled auto-merge (squash) July 12, 2022 20:29
Copy link
Copy Markdown
Contributor

@eccabay eccabay left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this!

@MichaelFu512 MichaelFu512 merged commit 1b27e45 into main Jul 13, 2022
@MichaelFu512 MichaelFu512 deleted the 3600-Undo-3.9-Testskips branch July 13, 2022 14:19
@chukarsten chukarsten mentioned this pull request Jul 24, 2022
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