Skip to content
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

Recent Travis fail test under PYTHON_VERSION=2.7 FLOATX='float32' #3018

Closed
junpenglao opened this issue Jun 9, 2018 · 1 comment · Fixed by #3026
Closed

Recent Travis fail test under PYTHON_VERSION=2.7 FLOATX='float32' #3018

junpenglao opened this issue Jun 9, 2018 · 1 comment · Fixed by #3026
Labels

Comments

@junpenglao
Copy link
Member

junpenglao commented Jun 9, 2018

See eg https://travis-ci.org/pymc-devs/pymc3/jobs/389721897

  • test_sqlite_backend.py::TestSQlite1dSampling::test_clean_interrupt <- pymc3/tests/backend_fixtures.py FAILED
self = <pymc3.tests.test_sqlite_backend.TestSQlite1dSampling object at 0x7f561ef35810>
    def test_clean_interrupt(self):
        self.record_point(0)
>       self.strace.close()
pymc3/tests/backend_fixtures.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pymc3/backends/sqlite.py:167: in close
    self._execute_queue()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <pymc3.backends.sqlite.SQLite object at 0x7f561ed61e90>
    def _execute_queue(self):
        with self.db.con:
            for varname in self.varnames:
                if not self._queue[varname]:
                    continue
                self.db.cursor.executemany(self.var_inserts[varname],
>                                          self._queue[varname])
E               InterfaceError: Error binding parameter 2 - probably unsupported type.
pymc3/backends/sqlite.py:163: InterfaceError
  • test_text_backend.py::TestText1dSelection::test_dtypes <- pymc3/tests/backend_fixtures.py FAILED
self = <pymc3.tests.test_text_backend.TestText1dSelection object at 0x7f561c368e50>
    def test_dtypes(self):
        for varname in self.test_point.keys():
            assert self.expected[0][varname].dtype == \
>                            self.mtrace.get_values(varname, chains=0).dtype
E           AssertionError
pymc3/tests/backend_fixtures.py:294: AssertionError
  • test_text_backend.py::TestText2dSelection::test_dtypes <- pymc3/tests/backend_fixtures.py FAILED
self = <pymc3.tests.test_text_backend.TestText2dSelection object at 0x7f561c2f4890>
    def test_dtypes(self):
        for varname in self.test_point.keys():
            assert self.expected[0][varname].dtype == \
>                            self.mtrace.get_values(varname, chains=0).dtype
E           AssertionError
pymc3/tests/backend_fixtures.py:294: AssertionError
  • test_text_backend.py::TestNDArrayTextEquality::test_dtype <- pymc3/tests/backend_fixtures.py FAILED
self = <pymc3.tests.test_text_backend.TestNDArrayTextEquality object at 0x7f56122940d0>
    def test_dtype(self):
        for varname in self.test_point.keys():
            assert self.mtrace0.get_values(varname, chains=0).dtype == \
>                            self.mtrace1.get_values(varname, chains=0).dtype
E           AssertionError
pymc3/tests/backend_fixtures.py:498: AssertionError
@junpenglao
Copy link
Member Author

Additional Travis error output:

                strace0.record(point=point0)
                strace1.record(point=point1)
>       strace0.close()
pymc3/tests/backend_fixtures.py:184: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pymc3/backends/sqlite.py:167: in close
    self._execute_queue()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <pymc3.backends.sqlite.SQLite object at 0x7f5623f1cf50>
    def _execute_queue(self):
        with self.db.con:
            for varname in self.varnames:
                if not self._queue[varname]:
                    continue
                self.db.cursor.executemany(self.var_inserts[varname],
>                                          self._queue[varname])
E               OperationalError: table x has no column named v__0
pymc3/backends/sqlite.py:163: OperationalError
                strace0.record(point=point0)
                strace1.record(point=point1)
>       strace0.close()
pymc3/tests/backend_fixtures.py:184: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pymc3/backends/sqlite.py:167: in close
    self._execute_queue()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <pymc3.backends.sqlite.SQLite object at 0x7f5623f44e90>
    def _execute_queue(self):
        with self.db.con:
            for varname in self.varnames:
                if not self._queue[varname]:
                    continue
                self.db.cursor.executemany(self.var_inserts[varname],
>                                          self._queue[varname])
E               OperationalError: table x has no column named v__0_0
pymc3/backends/sqlite.py:163: OperationalError

junpenglao pushed a commit that referenced this issue Jun 14, 2018
* Mark xfail for few trace backend tests

close #3018

* Make posterior tests more stable

cherry picked from c7b43b4

* Mark all sql backend test as xfail

under py27 32bit

* mark text backend test dtype xfail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant