Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

How to test changes to ZTK packages?

 

 

First page Previous page 1 2 Next page Last page  View All Zope dev RSS feed   Index | Next | Previous | View Threaded


tseaver at palladion

Jul 5, 2009, 10:56 AM

Post #26 of 28 (534 views)
Permalink
Re: How to test changes to ZTK packages? [In reply to]

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

Tim Cook wrote:
> On Tue, 2009-06-30 at 14:35 -0400, Tres Seaver wrote:
>
>> While I know that Mac people often report problems building lxml, I
>> never have issues building lxml on Linux: the '--static-deps' option is
>> a sufficient workaround for variants with too-old versions of libxml2 /
>> libxslt.
>
> I do not know what platform you are running but I have had my share of
> frustrations with lxml on Fedora and Ubuntu on x86_64.

I haven't had issues with lxml on 32- or 64-bit versions of either
Fedora or Ubuntu any time within the last eighteen months or so. I just
easy_installed it into a fresh virtualenv on Ubuntu x86_64:

$ gunzip -c /usr/share/doc/ubuntu-standard/changelog.gz | head -1
ubuntu-meta (1.124) intrepid; urgency=low
$ uname -a
Linux mred 2.6.27-14-generic #1 SMP Wed Apr 15 19:29:46 UTC 2009 \
x86_64 GNU/Linux
$ /opt/Python-2.6.2/bin/virtualenv --no-site-packages /tmp/lxml
...
$ /tmp/lxml/bin/easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.2
Downloading http://codespeak.net/lxml/lxml-2.2.2.tgz
Processing lxml-2.2.2.tgz
Running lxml-2.2.2/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-Gyfz1B/lxml-2.2.2/egg-dist-tmp-xMuOwQ
Building lxml version 2.2.2.
NOTE: Trying to build without Cython, pre-generated \
'src/lxml/lxml.etree.c' needs to be available.
Using build configuration of libxslt 1.1.24
Building against libxml2/libxslt in the following directory: /usr/lib
Adding lxml 2.2.2 to easy-install.pth file

Installed \
/tmp/lxml/lib/python2.6/site-packages/lxml-2.2.2-py2.6-linux-x86_64.egg
Processing dependencies for lxml
Finished processing dependencies for lxml


Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver [at] palladion
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKUOk8+gerLs4ltQ4RAguOAJ4qj5NuKwV3K5K8HMU8lFBFkmBIlQCZAaWO
uZ3Zqj0rtXmZpSYp4/cDJ58=
=Slt4
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


ct at gocept

Jul 7, 2009, 2:03 PM

Post #27 of 28 (510 views)
Permalink
Re: How to test changes to ZTK packages? [In reply to]

Hi,

On 07/01/2009 11:12 AM, Jim Fulton wrote:
>
>> [...]
>>
>> You can specify include and exclude options; the default is to
>> include a
>> list of zope.* packages that we pulled out of thin air at the sprint,
>> it'd probably be better to use the KGS as a default instead -- but
>> that
>> would duplicate even more zope.release functionality.
>
> Where is this list? In the recipe?

The recipe takes two arguments:

- a list of regular expressions to describe packages that should be
included
- a list of regular expressions to describe packages that should be
excluded

There is currently a builtin list for each of them that gets appended to
the ones you specify when using the recipe in your buildout.

>> I think it would be useful to standardize on *one* compatibility
>> testing
>> method for the ZTK (and then document it).
>
> Yes.
>
>> My instinct would be to separate KGS handling from tarball creation
>> from
>> testing, that is, remove the test-business from zope.release and use
>> the
>> compattest recipe instead. (Alternatively, retire compattest and have
>> zope.release gain the ability to use trunks so it could be used for
>> continuous integration purposes as well -- but that doesn't feel quite
>> right, to be honest)
>>
>> Thoughts?
>
>
> I agree we need one way to do this. I think the KGS concept is right.
> I think there should be a known good configuration of packages and a
> way to evolve it. The configuration should be changed only after
> testing changes. The configuration needs to include Python versions
> that it is tested with. Beyond that, I don't care what the process is
> as long as it is documented.

The compattest is intended to check the trunks of packages located in
one repository like svn.zope.org against the development version of the
package you're working on so you can see whether your changes will cause
others that depend on you to break.

I think it's one of the issues we need to solve in our process and it
was actually very valuable when doing the large dependency refactoring
at the sprint.

If you have a multi-core machine, you can also ask it to run the various
test runners in parallel. I was able to execute the 100+ package tests
in less than 10 minutes on an 8-core machine.

Christian

--
Christian Theune · ct [at] gocept
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


ct at gocept

Jul 7, 2009, 2:03 PM

Post #28 of 28 (511 views)
Permalink
Re: How to test changes to ZTK packages? [In reply to]

Hi,

On 07/01/2009 11:12 AM, Jim Fulton wrote:
>
>> [...]
>>
>> You can specify include and exclude options; the default is to
>> include a
>> list of zope.* packages that we pulled out of thin air at the sprint,
>> it'd probably be better to use the KGS as a default instead -- but
>> that
>> would duplicate even more zope.release functionality.
>
> Where is this list? In the recipe?

The recipe takes two arguments:

- a list of regular expressions to describe packages that should be
included
- a list of regular expressions to describe packages that should be
excluded

There is currently a builtin list for each of them that gets appended to
the ones you specify when using the recipe in your buildout.

>> I think it would be useful to standardize on *one* compatibility
>> testing
>> method for the ZTK (and then document it).
>
> Yes.
>
>> My instinct would be to separate KGS handling from tarball creation
>> from
>> testing, that is, remove the test-business from zope.release and use
>> the
>> compattest recipe instead. (Alternatively, retire compattest and have
>> zope.release gain the ability to use trunks so it could be used for
>> continuous integration purposes as well -- but that doesn't feel quite
>> right, to be honest)
>>
>> Thoughts?
>
>
> I agree we need one way to do this. I think the KGS concept is right.
> I think there should be a known good configuration of packages and a
> way to evolve it. The configuration should be changed only after
> testing changes. The configuration needs to include Python versions
> that it is tested with. Beyond that, I don't care what the process is
> as long as it is documented.

The compattest is intended to check the trunks of packages located in
one repository like svn.zope.org against the development version of the
package you're working on so you can see whether your changes will cause
others that depend on you to break.

I think it's one of the issues we need to solve in our process and it
was actually very valuable when doing the large dependency refactoring
at the sprint.

If you have a multi-core machine, you can also ask it to run the various
test runners in parallel. I was able to execute the 100+ package tests
in less than 10 minutes on an 8-core machine.

Christian

--
Christian Theune · ct [at] gocept
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

First page Previous page 1 2 Next page Last page  View All Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.