Working KGS tool! (was Re: IRC discussion about testing)
On Thu, Aug 13, 2009 at 2:26 AM, Wolfgang Schnerring<ws@gocept.com> wrote:
* Jim Fulton <jim@zope.com> [2009-08-12 20:56]: ...
Here's an alternative:
[versions] zope.foo = 1.2.3 zope.bar = 1.2.3 zope.app.baz = 1.2.3 grok.bar = 1.1.0 thirdparty.dependency = 4.4
[ztk] projects = zope.foo zope.bar zope.app.baz also-tested = grok.bar
Yup, that looks much better. As far as I'm concerned, let's use this. (I'll leave it to Martijn to explain whether/which/why additional information should be stored in the KGS in computer-readable form.)
I've just updated z3c.recipe.compattest to support exactly this: ... Would you give it a try?
Yup. Works great. I've updated: svn://svn.zope.org/repos/main/zopetoolkit/branches/jim-kgs/kgs to use it. I created ztk.cfg that looks like: [ztk] libraries = ... under-review = ... projects = ${ztk:libraries} ${ztk:under-review} [buildout] versions = versions allow-picked-versions = false [versions] ... and a buildout.cfg: [buildout] parts = test-ztk extends = ztk.cfg [test-ztk] recipe = z3c.recipe.compattest include = ${ztk:projects} This gives me the test files I expect that use the specified versions. One minor quibble is that the recipe uses the part name as a test file prefix for the individual tests (e.g. test-ztk-zope.proxy). But the combined test runner has "test-" in front of the part name, so I get "test-test-ztk". I'd like to use the part name for the combined test name, "test-ztk". Thanks. Thanks too to Fabio for helping to move this forward! So, I think we now have a tool that will let us take the next steps. Can we all agree on this? Jim -- Jim Fulton
Hello, * 2009-08-13 13:06, Jim Fulton wrote:
So, I think we now have a tool that will let us take the next steps. Can we all agree on this?
Yey, great! I will update my buildbot instance to use this system. Fabio
Jim Fulton wrote:
Would you give it a try?
Yup. Works great. I've updated: svn://svn.zope.org/repos/main/zopetoolkit/branches/jim-kgs/kgs
to use it.
I created ztk.cfg that looks like:
[ztk] libraries = ... under-review = ... projects = ${ztk:libraries} ${ztk:under-review}
[buildout] versions = versions allow-picked-versions = false
[versions] ...
and a buildout.cfg:
[buildout] parts = test-ztk extends = ztk.cfg
[test-ztk] recipe = z3c.recipe.compattest include = ${ztk:projects}
This gives me the test files I expect that use the specified versions.
One question, and I know I'm late in on this so feel free to point me at previous discussions, but say the KGS uses some.egg 1.0.0, a bug gets fixed in some.egg and 1.0.1 is released. Does a whole new KGS need to be cut or is there some process for testing and supporting, says, 1.0.0 <= some.egg < 1.1.0 ? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Fabio Tranchitella -
Jim Fulton