Skip to content

Bring back tests #4512

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

Merged
merged 4 commits into from
Mar 9, 2021
Merged

Conversation

michaelosthege
Copy link
Member

This PR re-enables large parts of the test suite.

Tests that are very broken are still ignored. Many of them use APIs that were completely removed; others have just too many errors to go in and XFAIL them right now.

One job runs test files that pass without a single XFAIL 🎉

And another job runs those that have some XFAILs.

I also added a config setting for pytest to treat XPASS as failures. This way we'll know when things get fixed! For example a lot of tests will turn green as soon as MvNormal got refactored.

@michaelosthege michaelosthege self-assigned this Mar 8, 2021
@michaelosthege michaelosthege added this to the vNext (4.0.0) milestone Mar 8, 2021
@michaelosthege michaelosthege changed the title Bing back tests Bring back tests Mar 8, 2021
@michaelosthege michaelosthege force-pushed the bing-back-tests branch 2 times, most recently from 6c7b715 to 89206da Compare March 8, 2021 23:02
@@ -323,6 +325,7 @@ def system(y, t, p):
assert trace["y0"].size > 0
assert trace["sigma"].size > 0

@pytest.mark.xfail(reason="HalfCauchy was not yet refactored")
Copy link
Member

Choose a reason for hiding this comment

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

Why "was"? Shouldn't that be "is"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess you're right 🙃
But for the sake of moving forward I'd like to not rebase/force-push again, unless something else comes up.

@@ -271,7 +272,7 @@ def test_full_adapt_sampling(seed=289586):
L[np.triu_indices_from(L, 1)] = 0.0

with pymc3.Model() as model:
pymc3.MvNormal("a", mu=np.zeros(len(L)), chol=L, shape=len(L))
pymc3.MvNormal("a", mu=np.zeros(len(L)), chol=L, size=len(L))
Copy link
Member

Choose a reason for hiding this comment

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

Do we not support shape anymore?!

Copy link
Member Author

Choose a reason for hiding this comment

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

@michaelosthege michaelosthege marked this pull request as ready for review March 9, 2021 10:47
@brandonwillard brandonwillard merged commit c7af3ff into pymc-devs:v4 Mar 9, 2021
@michaelosthege michaelosthege deleted the bing-back-tests branch March 9, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants