bzrlib.tests.test_import_tariff.TestImportTariffs.test_simple_local failure

Bug #690563 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil
bzr-guess
Fix Released
Undecided
Vincent Ladeuil

Bug Description

bzr selftest -s bzrlib.tests.test_import_tariff.TestImportTariffs.test_simple_local

fails in various environments:

- http://babune.ladeuil.net:24842/job/selftest-osx-10.6/lastCompletedBuild/testReport/ for a yet unknown reason
- if bzr-guess is installed as a user plugin (because it imports bzr.patiencediff)

Related branches

Vincent Ladeuil (vila)
Changed in bzr-guess:
assignee: nobody → Vincent Ladeuil (vila)
status: New → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: New → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
importance: Undecided → Medium
Revision history for this message
Martin Pool (mbp) wrote :

We need some kind of general approach for the case where we think it's reasonable for more code to be imported when particular plugins are installed. Indeed, even more generally, some underlying bzr behaviour may be changed by plugins....

Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.3b5
status: In Progress → Fix Released
Changed in bzr-guess:
status: In Progress → Fix Released
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 690563] Re: bzrlib.tests.test_import_tariff.TestImportTariffs.test_simple_local failure

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

On 12/15/2010 7:43 PM, Martin Pool wrote:
> We need some kind of general approach for the case where we think it's
> reasonable for more code to be imported when particular plugins are
> installed. Indeed, even more generally, some underlying bzr behaviour
> may be changed by plugins....
>

That is true, but at the same time, the check is also there explicitly
to tell us that something is loading something we don't think we'll need.

In the case of bzr-guess, it wasn't making use of patience-diff for this
command. So the test *actually caught* that we wanted bzr-guess to be lazy.

John
=:->

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

iEYEARECAAYFAk0KQU8ACgkQJdeBCYSNAAMeHwCglZuAUhP0027z5umw2lG9bXqB
ZVEAn1lMJiBb9l+rTkuPjD1wADDkOEw0
=jJl8
-----END PGP SIGNATURE-----

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 690563] Re: bzrlib.tests.test_import_tariff.TestImportTariffs.test_simple_local failure

On 17/12/2010 3:42 AM, "John Arbash Meinel" <email address hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12/15/2010 7:43 PM, Martin Pool wrote:
>> We need some kind of general approach for the case where we think it's
>> reasonable for more code to be imported when particular plugins are
>> installed. Indeed, even more generally, some underlying bzr behaviour
>> may be changed by plugins....
>>
>
> That is true, but at the same time, the check is also there explicitly
> to tell us that something is loading something we don't think we'll need.
>
> In the case of bzr-guess, it wasn't making use of patience-diff for this
> command. So the test *actually caught* that we wanted bzr-guess to be
lazy.

Yes, indeed, it's great that it trapped it and made us think "is it really
reasonable to be forcing patiencediff to be loaded?"

If, as in this case, we don't want it loaded, it's fine, we just update the
plugin. Of course we normally want to aim for this.

But there might be some other cases where it actually is reasonable for the
plugin to change the behaviour that we would have expected to see without
it. One case that came up elsewhere is a plugin that adds information to
the output of `bzr st` and tends to break all the builtin tests for it.

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.