Skip to content

Flaky test_profile.py::TestProfile::test_profile_variable #6091

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

Closed
ricardoV94 opened this issue Sep 1, 2022 · 1 comment · Fixed by #6196
Closed

Flaky test_profile.py::TestProfile::test_profile_variable #6091

ricardoV94 opened this issue Sep 1, 2022 · 1 comment · Fixed by #6196

Comments

@ricardoV94
Copy link
Member

I have seen this one fail repeatedly recently, such as in https://github.com/pymc-devs/pymc/runs/8135110596?check_suite_focus=true

 ================================== FAILURES ===================================
______________________ TestProfile.test_profile_variable ______________________

self = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>

    def test_profile_variable(self):
        rv = self.model.basic_RVs[0]
>       assert self.model.profile(self.model.logp(vars=[rv], sum=False)).fct_call_time
E       assert 0.0
E        +  where 0.0 = <aesara.compile.profiling.ProfileStats object at 0x0000020C729943D0>.fct_call_time
E        +    where <aesara.compile.profiling.ProfileStats object at 0x0000020C729943D0> = <bound method Model.profile of <pymc.model.Model object at 0x0000020C728B4130>>([Elemwise{mul,no_inplace}.0])
E        +      where <bound method Model.profile of <pymc.model.Model object at 0x0000020C728B4130>> = <pymc.model.Model object at 0x0000020C728B4130>.profile
E        +        where <pymc.model.Model object at 0x0000020C728B4130> = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>.model
E        +      and   [Elemwise{mul,no_inplace}.0] = <bound method Model.logp of <pymc.model.Model object at 0x0000020C728B4130>>(vars=[x], sum=False)
E        +        where <bound method Model.logp of <pymc.model.Model object at 0x0000020C728B4130>> = <pymc.model.Model object at 0x0000020C728B4130>.logp
E        +          where <pymc.model.Model object at 0x0000020C728B4130> = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>.model

pymc\tests\test_profile.py:27: AssertionError
@ricardoV94
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant