Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20

2013-01-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/29/2013 08:00 PM, Zope tests summarizer wrote:
 [1]FAILED  winbot / ZODB_dev py_270_win64 
 https://mail.zope.org/pipermail/zope-tests/2013-January/071764.html

I'm not terribly certain, but this looks like a timeout / race condition
on a test, perhaps due to load on the machine?


 Failure in test
c:\buildslave\zodb_dev_py_270_win64\build\src\ZODB\historical_connections.txt

 --
 File
c:\buildslave\zodb_dev_py_270_win64\build\src\ZODB\historical_connections.txt,
line 220, in historical_connections.txt
 Failed example:
 [c in conns1 for c in conns2]
 Expected:
 [False, False, True, True]
 Got:
 [False, False, False, True]

The text above the failed example seems to expect that the first two
connections would have timed out / been garbage collected, but that the
second two would be fresh enough to be reused.


 [2]FAILED  winbot / z3c.recipe.paster_py_265_32 
 https://mail.zope.org/pipermail/zope-tests/2013-January/071765.html

The same failure.  I reiterate that somebody who knows / cares about the
'zc.recipe.paster' project needs to step in an fix this failure, or else
we need to retire its nightly test run.



Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlEIftQACgkQ+gerLs4ltQ5scgCdESe9ZLgWyKZwYPVxxKzvnPcN
diMAoKj/JEfukaFwUO9O9KzcsMo5go+T
=9qq4
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1

2012-12-09 Thread Gediminas Paulauskas
2012/12/7 Tres Seaver tsea...@palladion.com:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 12/07/2012 01:11 PM, Gediminas Paulauskas wrote:
 2012/12/7 Tres Seaver tsea...@palladion.com:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 On 12/07/2012 01:52 AM, Marius Gedminas wrote:
 [3]FAILED  winbot / zope.app.i18n_py_265_32
 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html




 Error in test testNoTargetLanguage
 (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain)
 Traceback (most recent call last): File
 c:\Python26_32\lib\unittest.py, line 279, in run testMethod()
 File
 c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py,


 line 99, in testNoTargetLanguage eq(translate('short_greeting',
 context=context, default=42), 42) File
 c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py,


 line 74, in translate catalog_names =
 self._catalogs.get(target_language, []) TypeError: Object has
 default comparison

 Here, the 'target_langeage' returned by the negotiator is None,
 which the OOBTree is refusing to treat as a key (because its
 comparison semantics are undefined across process boundaries /
 Python versions)::

 from BTrees.OOBTree import OOBTree x = OOBTree() x[None] = 1
 Traceback (most recent call last): File stdin, line 1, in
 module TypeError: Object has default comparison

 Such keys haven't been allowed since::

 r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7
 lines

 Bug Fixed - BTrees allowed object keys with insane comparison.
 (Comparison inherited from object, which compares based on
 in-process address.) Now BTrees raise TypeError is an attempt is
 made to save a key with comparison inherited from object. (This
 doesn't apply to old-style class instances.)

 The error happens in get, not set, should it?

 The C code throws the error whenever dealing with a user-supplied key
 which cannot be safely compared to existing keys.

 Otherwise, a patch for zope.app.i18n to fix this case is attached
 (not committed).

 +1 for your patch.

ok, committed.

-- 
Gediminas
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1

2012-12-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/07/2012 01:52 AM, Marius Gedminas wrote:
 [3]FAILED  winbot / zope.app.i18n_py_265_32 
 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html

 
Error in test testNoTargetLanguage
(zope.app.i18n.tests.test_translationdomain.TestTranslationDomain)
 Traceback (most recent call last): File
 c:\Python26_32\lib\unittest.py, line 279, in run testMethod() File
 c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py,
 line 99, in testNoTargetLanguage eq(translate('short_greeting',
 context=context, default=42), 42) File
 c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py,
 line 74, in translate catalog_names =
 self._catalogs.get(target_language, []) TypeError: Object has default
 comparison

Here, the 'target_langeage' returned by the negotiator is None, which the
OOBTree is refusing to treat as a key (because its comparison semantics
are undefined across process boundaries / Python versions)::

  from BTrees.OOBTree import OOBTree
  x = OOBTree()
  x[None] = 1
 Traceback (most recent call last):
   File stdin, line 1, in module
 TypeError: Object has default comparison

Such keys haven't been allowed since::

 r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7 lines

 Bug Fixed
 - BTrees allowed object keys with insane comparison. (Comparison
   inherited from object, which compares based on in-process address.)
   Now BTrees raise TypeError is an attempt is made to save a key with
   comparison inherited from object. (This doesn't apply to old-style
   class instances.)




Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDCD/wACgkQ+gerLs4ltQ4ZNgCdHTNC8Z0u5wRYsDUVUzSrZACi
YCEAoM1VOupQN9VlyLOdrxcypuQtOWZ/
=bVKN
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1

2012-12-07 Thread Gediminas Paulauskas
2012/12/7 Tres Seaver tsea...@palladion.com:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 12/07/2012 01:52 AM, Marius Gedminas wrote:
 [3]FAILED  winbot / zope.app.i18n_py_265_32
 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html


 Error in test testNoTargetLanguage
 (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain)
 Traceback (most recent call last): File
 c:\Python26_32\lib\unittest.py, line 279, in run testMethod() File
 c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py,
 line 99, in testNoTargetLanguage eq(translate('short_greeting',
 context=context, default=42), 42) File
 c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py,
 line 74, in translate catalog_names =
 self._catalogs.get(target_language, []) TypeError: Object has default
 comparison

 Here, the 'target_langeage' returned by the negotiator is None, which the
 OOBTree is refusing to treat as a key (because its comparison semantics
 are undefined across process boundaries / Python versions)::

   from BTrees.OOBTree import OOBTree
   x = OOBTree()
   x[None] = 1
  Traceback (most recent call last):
File stdin, line 1, in module
  TypeError: Object has default comparison

 Such keys haven't been allowed since::

  r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7 lines

  Bug Fixed
  - BTrees allowed object keys with insane comparison. (Comparison
inherited from object, which compares based on in-process address.)
Now BTrees raise TypeError is an attempt is made to save a key with
comparison inherited from object. (This doesn't apply to old-style
class instances.)

The error happens in get, not set, should it?

Otherwise, a patch for zope.app.i18n to fix this case is attached (not
committed).

-- 
Gediminas


zopeappi18n-with-zodb4.diff
Description: Binary data
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1

2012-12-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/07/2012 01:11 PM, Gediminas Paulauskas wrote:
 2012/12/7 Tres Seaver tsea...@palladion.com:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 12/07/2012 01:52 AM, Marius Gedminas wrote:
 [3]FAILED  winbot / zope.app.i18n_py_265_32 
 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html



 
Error in test testNoTargetLanguage
 (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain)
 Traceback (most recent call last): File 
 c:\Python26_32\lib\unittest.py, line 279, in run testMethod()
 File 
 c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py,

 
line 99, in testNoTargetLanguage eq(translate('short_greeting',
 context=context, default=42), 42) File 
 c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py,

 
line 74, in translate catalog_names =
 self._catalogs.get(target_language, []) TypeError: Object has
 default comparison
 
 Here, the 'target_langeage' returned by the negotiator is None,
 which the OOBTree is refusing to treat as a key (because its
 comparison semantics are undefined across process boundaries /
 Python versions)::
 
 from BTrees.OOBTree import OOBTree x = OOBTree() x[None] = 1
 Traceback (most recent call last): File stdin, line 1, in
 module TypeError: Object has default comparison
 
 Such keys haven't been allowed since::
 
 r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7
 lines
 
 Bug Fixed - BTrees allowed object keys with insane comparison.
 (Comparison inherited from object, which compares based on
 in-process address.) Now BTrees raise TypeError is an attempt is
 made to save a key with comparison inherited from object. (This
 doesn't apply to old-style class instances.)
 
 The error happens in get, not set, should it?

The C code throws the error whenever dealing with a user-supplied key
which cannot be safely compared to existing keys.

 Otherwise, a patch for zope.app.i18n to fix this case is attached
 (not committed).

+1 for your patch.



Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDCQqMACgkQ+gerLs4ltQ7boACgjbWfWCKTMl0eTKDjkcbCcHKi
OZkAoNIFpN2PGERjLRnXhk/IHK9cK7iD
=ug61
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1

2012-12-06 Thread Marius Gedminas
On Fri, Dec 07, 2012 at 01:00:02AM +, Zope tests summarizer wrote:
 [1]UNKNOWN FAILED (failures=1) : Zope-2.13 Python-2.7.3 : Linux
https://mail.zope.org/pipermail/zope-tests/2012-December/069804.html

Failure in test test_scored_search 
(Products.ZCatalog.tests.test_catalog.TestScoring)
Traceback (most recent call last):
  File /usr/local/python2.7/lib/python2.7/unittest/case.py, line 327, in run
testMethod()
  File 
/home/stefan/autotest/temp/python27-zope213all/eggs/Products.ZCatalog-2.13.23-py2.7.egg/Products/ZCatalog/tests/test_catalog.py,
 line 731, in test_scored_search
self.assertEqual(brains[0].title, '111')
  File /usr/local/python2.7/lib/python2.7/unittest/case.py, line 511, in 
assertEqual
assertion_func(first, second, msg=msg)
  File /usr/local/python2.7/lib/python2.7/unittest/case.py, line 504, in 
_baseAssertEqual
raise self.failureException(msg)
AssertionError: '1' != '111'

 [2]FAILED  winbot / z3c.recipe.paster_py_265_32
https://mail.zope.org/pipermail/zope-tests/2012-December/069797.html

buildout (inside a doctest) failed because

  Error: Couldn't find a distribution for 'BTrees=4.0.0dev,4.1dev'.

which is interesting, since BTrees 4.0.1 was released to PyPI on 2012-10-21.

I'm trying to reproduce, but it looks like the buildout spawned by that test
acts as a forkbomb and never finishes:

  ├─bash
  │   └─test -S bin/test -cvv
  │   └─sh -c bin/buildout
  │   └─buildout bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  │   └─python bin/buildout
  ...

Linux has gotten better at process management recently -- I waited for maybe 5
minutes thinking it was a network timeout and didn't notice one CPU core was
pegged and all my RAM was gone.

 [3]FAILED  winbot / zope.app.i18n_py_265_32
https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html

Error in test testNoTargetLanguage 
(zope.app.i18n.tests.test_translationdomain.TestTranslationDomain)
Traceback (most recent call last):
  File c:\Python26_32\lib\unittest.py, line 279, in run
testMethod()
  File 
c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py, 
line 99, in testNoTargetLanguage
eq(translate('short_greeting', context=context, default=42), 42)
  File 
c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py, 
line 74, in translate
catalog_names = self._catalogs.get(target_language, [])
TypeError: Object has default comparison


Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development


signature.asc
Description: Digital signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )