"Failed to load compiled extensions" warning breaks the test suite

Bug #430749 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Vincent Ladeuil

Bug Description

Caught by the test botnet.

We support running without extensions anyway so the test suite should pass without them.

per_repository.test_repository.TestRepository.test_clone_to_hpss(RepositoryFormatCHK1) OK 0ms
/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:
    No module named _chunks_to_lines_pyx
    cannot import name _btree_serializer_pyx
    No module named _rio_pyx
    No module named _dirstate_helpers_pyx
    No module named _known_graph_pyx
    No module named _bencode_pyx
    No module named _chk_map_pyx
    No module named _annotator_pyx
    No module named _knit_load_data_pyx
    No module named _groupcompress_pyx
    Bazaar can run, but performance may be reduced.
    Check Bazaar is correctly installed or set ignore_missing_extensions
  % '\n '.join(_extension_load_failures,))

======================================================================
FAIL: bzrlib.tests.blackbox.test_cat.TestCat.test_cat_different_id (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_cat.py", line 103, in test_cat_different_id
    self.assertEqual('', err)
AssertionError: not equal:
a = ''
b = "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _rio_pyx\n No module named _dirstate_helpers_pyx\n No module named _chk_map_pyx\n No module named _bencode_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_diff.TestExternalDiff.test_external_diff (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_diff.py", line 370, in test_external_diff
    self.assertEqual('', err)
AssertionError: not equal:
a = ''
b = "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _rio_pyx\n No module named _dirstate_helpers_pyx\n No module named _chk_map_pyx\n No module named _bencode_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n No module named _readdir_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_locale.TestLocale.test_log_C (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_locale.py", line 48, in test_log_C
    self.assertEqual('', err)
AssertionError: not equal:
a = ''
b = "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _rio_pyx\n No module named _dirstate_helpers_pyx\n No module named _chk_map_pyx\n No module named _bencode_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_serve.TestBzrServe.test_bzr_serve_inet_readonly (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 114, in test_bzr_serve_inet_readonly
    self.assertInetServerShutsdownCleanly(process)
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 54, in assertInetServerShutsdownCleanly
    self.assertEqual('', result[1])
AssertionError: not equal:
a = ''
b = "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _bencode_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_serve.TestBzrServe.test_bzr_serve_inet_readwrite (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 125, in test_bzr_serve_inet_readwrite
    self.assertInetServerShutsdownCleanly(process)
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 54, in assertInetServerShutsdownCleanly
    self.assertEqual('', result[1])
AssertionError: not equal:
a = ''
b = "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _bencode_pyx\n No module named _chk_map_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_serve.TestBzrServe.test_bzr_serve_port_readonly (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 132, in test_bzr_serve_port_readonly
    self.assertServerFinishesCleanly(process)
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 62, in assertServerFinishesCleanly
    self.assertEqual('bzr: interrupted\n', result[1])
AssertionError: not equal:
a = 'bzr: interrupted\n'
b = "bzr: interrupted\n/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _bencode_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_serve.TestBzrServe.test_bzr_serve_port_readwrite (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 143, in test_bzr_serve_port_readwrite
    self.assertServerFinishesCleanly(process)
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 62, in assertServerFinishesCleanly
    self.assertEqual('bzr: interrupted\n', result[1])
AssertionError: not equal:
a = 'bzr: interrupted\n'
b = "bzr: interrupted\n/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _bencode_pyx\n No module named _chk_map_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.blackbox.test_serve.TestBzrServe.test_bzr_serve_supports_protocol (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 155, in test_bzr_serve_supports_protocol
    self.assertServerFinishesCleanly(process)
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/blackbox/test_serve.py", line 62, in assertServerFinishesCleanly
    self.assertEqual('bzr: interrupted\n', result[1])
AssertionError: not equal:
a = 'bzr: interrupted\n'
b = "bzr: interrupted\n/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n No module named _bencode_pyx\n No module named _chk_map_pyx\n No module named _known_graph_pyx\n No module named _annotator_pyx\n No module named _knit_load_data_pyx\n No module named _groupcompress_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

======================================================================
FAIL: bzrlib.tests.test_selftest.TestActuallyStartBzrSubprocess.test_start_and_stop_bzr_subprocess_send_signal (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/tests/test_selftest.py", line 2378, in test_start_and_stop_bzr_subprocess_send_signal
    self.assertEqual('bzr: interrupted\n', result[1])
AssertionError: not equal:
a = 'bzr: interrupted\n'
b = "bzr: interrupted\n/Users/vila/buildbot/bzr/slaves/leopard/tests/leopard/build/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:\n No module named _chunks_to_lines_pyx\n cannot import name _btree_serializer_pyx\n Bazaar can run, but performance may be reduced.\n Check Bazaar is correctly installed or set ignore_missing_extensions\n % '\\n '.join(_extension_load_failures,))\n"

Related branches

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Vincent Ladeuil (vila)
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 430749] [NEW] "Failed to load compiled extensions" warning breaks the test suite

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vincent Ladeuil wrote:
> Public bug reported:
>
> Caught by the test botnet.
>
> We support running without extensions anyway so the test suite should
> pass without them.
>

... probably

I think the bulk of the test suite should pass without extensions.

I'm actually thinking that we should have tests that the extensions are
loaded and *those tests* should fail if they are not.

This bug is still reasonable, as generic tests shouldn't fail as a
side-effect.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqxHuwACgkQJdeBCYSNAAP1UwCbBAYEBI1D14BsPLdirACnaHek
t9MAnRL6eqWTmK4l80uahI9Xes6TclLU
=p19e
-----END PGP SIGNATURE-----

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 430749] [NEW] "Failed to load compiled extensions" warning breaks the test suite

2009/9/17 John A Meinel <email address hidden>:

>> We support running without extensions anyway so the test suite should
>> pass without them.
>>
>
> ... probably
>
> I think the bulk of the test suite should pass without extensions.
>
> I'm actually thinking that we should have tests that the extensions are
> loaded and *those tests* should fail if they are not.

What's meant to happen is that the failures are accumulated across the
whole bzr process running selftest, then it generates a warning at the
end which is turned into an error by -Werror. I did test this, but
not on the whole suite and it may be that some tests interfere with
it.

> This bug is still reasonable, as generic tests shouldn't fail as a
> side-effect.

+1

--
Martin <http://launchpad.net/~mbp/>

Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
status: Fix Committed → Fix Released
milestone: none → 2.1.0b1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.