test_paths_from_ids_basic fails: ValueError: Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0x8f5b4ac>

Bug #461952 reported by Gary van der Merwe
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bzr search plugin
Fix Released
Critical
Unassigned
Declined for Trunk by Robert Collins

Bug Description

ERROR: test_paths_from_ids_basic (bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory)

vvvv[log from bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic]
5.052 creating repository in file:///tmp/testbzr-tQd4A7.tmp/bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic/work/foo/.bzr/.
5.061 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x935752c> in file:///tmp/testbzr-tQd4A7.tmp/bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic/work/foo/.bzr/
5.077 trying to create missing lock '/tmp/testbzr-tQd4A7.tmp/bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic/work/foo/.bzr/checkout/dirstate'
5.078 opening working tree '/tmp/testbzr-tQd4A7.tmp/bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic/work/foo'
5.096 preparing to commit
    INFO Committing to: /tmp/testbzr-tQd4A7.tmp/bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic/work/foo/
5.102 Selecting files for commit with filter None
    INFO added subdir
    INFO added subdir/nested-dir
    INFO added subdir/nested-dir/the file
    INFO Committed revision 1.
5.136 opening working tree '/tmp/testbzr-tQd4A7.tmp'

^^^^[log from bzrlib.plugins.search.tests.test_inventory.TestPathFromInventory.test_paths_from_ids_basic]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/garyvdm/.bazaar/plugins/search/tests/test_inventory.py", line 50, in test_paths_from_ids_basic
    inventory.paths_from_ids(xml, serializer, ['1file']))
  File "/home/garyvdm/.bazaar/plugins/search/inventory.py", line 49, in paths_from_ids
    raise ValueError("Cannot process with serializer %r" % serializer)
ValueError: Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0x8f5b4ac>

Related branches

Revision history for this message
jrenbaum (jrenbaum) wrote :
Download full text (3.1 KiB)

I have created a branch with a single perl file in it. I added this branch to the central repository using the --no-trees option and was able to branch off of this successfully. After modifying and commiting the file locally I attempted to push the change upstream, but got this error message:

bzr: ERROR: Server sent an unexpected error: ('error', 'Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0x935530c>')

Additionally, when running bzr index against this branch on the central server I got the following message:

Indexing: /srv/bzr/users/username/crontabs/trunk
bzr: ERROR: exceptions.ValueError: Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0xa354a0c>

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/commands.py", line 41, in run
    _mod_index.index_url(trans.base)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/index.py", line 129, in index_url
    index.index_revisions(branch, revs_to_index)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/index.py", line 296, in index_revisions
    outer_bar)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/index.py", line 332, in _index_revisions
    locked_branch.repository, terms, order_dict)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/index.py", line 676, in _terms_for_file_terms
    revision_ids[revision_id])
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/search/inventory.py", line 49, in paths_from_ids
    raise ValueError("Cannot process with serializer %r" % serializer)
ValueError: Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0xa354a0c>

bzr 2.0.1 on python 2.6.2 (Linux-2.6.28-15-server-i686-with-Ubuntu-9.04-jaunty)
arguments: ['/usr/bin/bzr', 'index', '/srv/bzr/users/username/crontabs/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.0.0]
  extmerge /usr/lib/python2.6/dist-packages/bzrlib/plugins/extmerge [unknown]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.98.0dev1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.1]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

This does not happen for any other branches in ou...

Read more...

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 461952] [NEW] test_paths_from_ids_basic fails: ValueError: Cannot process with serializer <bzrlib.chk_serializer.CHKBEncodeSerializer object at 0x8f5b4ac>

 importance critical
 status triaged

Changed in bzr-search:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Robert Collins (lifeless) wrote :

 status fixcommitted

jrenbaum - please open a new bug, Gary's report is entirely about the
test suite, but you seem to be running into something in the larger
world. bzr-search uses a whitelist for where it peeks inside storage
formats. Thanks

-Rob

Changed in bzr-search:
status: Triaged → Fix Committed
Changed in bzr-search:
status: Fix Committed → Fix Released
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.