Test failures on buildbot

0 views
Skip to first unread message

Remy Blank

unread,
Nov 23, 2009, 6:45:42 PM11/23/09
to trac...@googlegroups.com
I have noticed that Tim's buildbot fails on trunk since I merged [8831]
(the timezone fix). For example:

http://buildbot.timhatch.com/trac/builders/Ubuntu%20py25%20amd64/builds/38/steps/unit%20tests/logs/stdio

Unfortunately, all tests pass on all my machines (Linux + OS X), both
with and without pytz. Any ideas what could be wrong?

Tim, what version of pytz do you have on your test machines?

-- Remy

signature.asc

Christian Boos

unread,
Nov 24, 2009, 6:18:46 AM11/24/09
to trac...@googlegroups.com
None I guess, as I see <FixedOffset "GMT +1:00" 1:00:00> in the test
results, which is our own tzinfo subclass.

-- Christian

Remy Blank

unread,
Nov 24, 2009, 10:20:12 AM11/24/09
to trac...@googlegroups.com
Christian Boos wrote:
>> Tim, what version of pytz do you have on your test machines?
>
> None I guess, as I see <FixedOffset "GMT +1:00" 1:00:00> in the test
> results, which is our own tzinfo subclass.

That was also my guess, but I could reproduce the issue neither with nor
without pytz.

If pytz is not installed, how could two Linux platforms have different
behaviors for this, if we only use our own timezone classes (which don't
use local TZ info)? It would basically mean that the datetime module, in
particular datetime.replace(), behaves differently.

-- Remy

signature.asc

Christian Boos

unread,
Nov 25, 2009, 6:28:12 AM11/25/09
to trac...@googlegroups.com
Right, look at time.daylight usage in the code. Tim's buildbot must live
in a non-DST timezone.
I suppose the test has to take this into account, for choosing an
appropriate expected value.

-- Christian

Remy Blank

unread,
Nov 25, 2009, 8:09:57 PM11/25/09
to trac...@googlegroups.com
Christian Boos wrote:
> Right, look at time.daylight usage in the code. Tim's buildbot must live
> in a non-DST timezone.

Correct, I could finally reproduce the issue by switching my timezone to
PST. Actually, any timezone different from the one used in that
particular test (which happens to be mine) reproduces the issue.

> I suppose the test has to take this into account, for choosing an
> appropriate expected value.

No, actually some of the changes in [8831] were wrong. The issue is
fixed with [8857]. I guess we now have enough reasons to make a second
release candidate...

-- Remy

signature.asc

Tim Hatch

unread,
Nov 30, 2009, 5:53:15 PM11/30/09
to trac...@googlegroups.com
On 11/25/09 5:09 PM, Remy Blank wrote:
> Christian Boos wrote:
>> Right, look at time.daylight usage in the code. Tim's buildbot must live
>> in a non-DST timezone.
>
> Correct, I could finally reproduce the issue by switching my timezone to
> PST. Actually, any timezone different from the one used in that
> particular test (which happens to be mine) reproduces the issue.

Glad you were able to sort this out while I was away.

In other testing news, it looks like the minimum Genshi version has
increased again (beyond what I had on the OS X box), causing
strange-looking failures running trac-admin. At some point we need to
make a test for that to get an understandable failure.

There was a single recent failure on the Ubuntu builder because it
required an edit to not be made by "anonymous" but "anonymous" was
contained in one of the words in my dictionary file which happened to be
chosen for the edit text -- a re-run fixed it. Eventually we should
trim out such words in trac/tests/contentgen.py

There was a single recent failure on the Windows 7 builder because it
couldn't rename a file. This was likely related to this builder being
virtualized, and it being windows. A re-run fixed it.

There's an issue running the tests on Windows Vista and Windows 7 in
certain circumstances, and the stdlib needs a one-line patch being
discussed in http://bugs.python.org/issue6906

Tim

Remy Blank

unread,
Nov 30, 2009, 6:47:31 PM11/30/09
to trac...@googlegroups.com
Thanks for the update, Tim!

Tim Hatch wrote:
> In other testing news, it looks like the minimum Genshi version has
> increased again (beyond what I had on the OS X box), causing
> strange-looking failures running trac-admin. At some point we need to
> make a test for that to get an understandable failure.

Yes, Christopher has merged the advanced-i18n branch back into trunk,
and we now require at least that revision. When you say "strange-looking
failures running trac-admin", I assume you mean that trac-admin refuses
to run because Genshi>=0.6dev-r1072 is not provided, right?

> There was a single recent failure on the Ubuntu builder because it
> required an edit to not be made by "anonymous" but "anonymous" was
> contained in one of the words in my dictionary file which happened to be
> chosen for the edit text -- a re-run fixed it. Eventually we should
> trim out such words in trac/tests/contentgen.py

I have also seen spurious failures due to random words being too long.
Some tests choose 5 random words e.g. for ticket summaries, and if all
words are relatively long, format_to_oneliner() shortens the summary
with an ellipsis, which makes some tests fail.

-- Remy

signature.asc

Tim Hatch

unread,
Dec 1, 2009, 9:43:26 PM12/1/09
to trac...@googlegroups.com
> Tim Hatch wrote:
>> In other testing news, it looks like the minimum Genshi version has
>> increased again (beyond what I had on the OS X box), causing
>> strange-looking failures running trac-admin. At some point we need to
>> make a test for that to get an understandable failure.
>
> Yes, Christopher has merged the advanced-i18n branch back into trunk,
> and we now require at least that revision. When you say "strange-looking
> failures running trac-admin", I assume you mean that trac-admin refuses
> to run because Genshi>=0.6dev-r1072 is not provided, right?

Yes, the unit test output shows 74 failures, none of which imply that
it's a version issue. Functional test output is much better, containing
a single failure with the traceback from the failed
pkg_resources.require(). We should either skip the trac-admin tests
when this requirement isn't met, or fail the whole test since running
Trac without current Genshi isn't supported as far as I know.

Unit:
http://buildbot.timhatch.com/trac/builders/OS%20X%2010.5%20py26%20intel/builds/50/steps/unit%20tests/logs/stdio

Functional:
http://buildbot.timhatch.com/trac/builders/OS%20X%2010.5%20py26%20intel/builds/50/steps/functional%20tests/logs/stdio

> I have also seen spurious failures due to random words being too long.
> Some tests choose 5 random words e.g. for ticket summaries, and if all
> words are relatively long, format_to_oneliner() shortens the summary
> with an ellipsis, which makes some tests fail.

Whoops. I've made patches locally for that, will test further and push
up. Let me know of any other issues you notice.

Tim

Remy Blank

unread,
Dec 2, 2009, 2:54:21 AM12/2/09
to trac...@googlegroups.com
Tim Hatch wrote:
> We should either skip the trac-admin tests
> when this requirement isn't met, or fail the whole test since running
> Trac without current Genshi isn't supported as far as I know.

I'd suggest the latter. There may be other spurious failures due to an
insufficient version of Genshi, so we had better exit early with an
explicit error message.

-- Remy

signature.asc
Reply all
Reply to author
Forward
0 new messages