Skip to content

CI process mysteriously fails #4264

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
MarcoGorelli opened this issue Nov 27, 2020 · 1 comment · Fixed by #4265
Closed

CI process mysteriously fails #4264

MarcoGorelli opened this issue Nov 27, 2020 · 1 comment · Fixed by #4265

Comments

@MarcoGorelli
Copy link
Contributor

See here

=================================== FAILURES ===================================
______________ TestMarginalKron.testMarginalKronvsMarginalpredict ______________
[gw1] linux -- Python 3.6.11 /usr/share/miniconda/envs/testenv/bin/python

self = <pymc3.tests.test_gp.TestMarginalKron object at 0x7f5cf6c46240>

    def testMarginalKronvsMarginalpredict(self):
        with pm.Model() as kron_model:
            kron_gp = pm.gp.MarginalKron(mean_func=self.mean, cov_funcs=self.cov_funcs)
            f = kron_gp.marginal_likelihood("f", self.Xs, self.y, sigma=self.sigma, shape=self.N)
            p = kron_gp.conditional("p", self.Xnew)
            mu, cov = kron_gp.predict(self.Xnew)
        npt.assert_allclose(mu, self.mu, atol=0, rtol=1e-2)
Unable to revert mtime: /usr/share/fonts
>       npt.assert_allclose(cov, self.cov, atol=0, rtol=1e-2)
Unable to revert mtime: /usr/share/fonts/cMap
E       AssertionError: 
Unable to revert mtime: /usr/share/fonts/cmap
E       Not equal to tolerance rtol=0.01, atol=0
Unable to revert mtime: /usr/share/fonts/truetype
Unable to revert mtime: /usr/share/fonts/type1
Unable to revert mtime: /usr/share/fonts/cmap/adobe-cns1
Unable to revert mtime: /usr/share/fonts/cmap/adobe-gb1
Unable to revert mtime: /usr/share/fonts/cmap/adobe-japan1
Unable to revert mtime: /usr/share/fonts/cmap/adobe-japan2
Unable to revert mtime: /usr/share/fonts/cmap/adobe-korea1
Unable to revert mtime: /usr/share/fonts/truetype/dejavu
Unable to revert mtime: /usr/share/fonts/truetype/droid
Unable to revert mtime: /usr/share/fonts/truetype/lato
Unable to revert mtime: /usr/share/fonts/truetype/liberation
Unable to revert mtime: /usr/share/fonts/truetype/noto
Unable to revert mtime: /usr/share/fonts/type1/gsfonts
E       
E       Mismatched elements: 2 / 25 (8%)
E       Max absolute difference: 1.04653081e-06
E       Max relative difference: 0.04904542
E        x: array([[ 9.779797e-01,  3.392796e-22,  3.950869e-06, -2.558771e-12,
E                1.137622e-06],
E              [ 3.392796e-22,  1.000000e+00,  4.022414e-21,  7.814298e-33,...
E        y: array([[ 9.779807e-01,  3.393030e-22,  3.950869e-06, -2.558771e-12,
E                1.137622e-06],
E              [ 3.393030e-22,  1.000001e+00,  4.022414e-21,  7.448961e-33,...

pymc3/tests/test_gp.py:1147: AssertionError

This test passes when run locally, and it also passed when the PR was opened. Can't figure out what these (seemingly spurious?) Unable to revert mtime errors are

@MarcoGorelli
Copy link
Contributor Author

MarcoGorelli commented Nov 27, 2020

Looking around, it seems that the Unable to revert mtime messages can be ignored

If the absolute difference here is just of 1e-6, maybe the test can simply be made a little less strict

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 a pull request may close this issue.

1 participant