← Back to team overview

ufl team mailing list archive

Re: UFL and buildbot

 

On Mon, March 9, 2009 16:03, Martin Sandve Alnæs wrote:
> I checked in a failing test, but nothing seems to be happening? How
> long should it usually take?

The buildbot starts to build UFL three minutes after a commit. The test
did fail as you can see from the log:

http://fenics.org:8080/builders/ufl-hardy-i386/builds/2/steps/ufl%20check/logs/stdio

The problem in this case is that test/test.py always exits with 0
(success) even if some tests failed. You should modify the test script to
return an exit code different from 0 on failure, e.g. replace the bottom
loop with this:

# Run tests
failed_tests = []
for test in tests:
    print "Running tests: %s" % test
    failure = system("python %s.py" % test)
    if failure:
        failed_tests.append(test)
    print ""

sys.exit(len(failed_tests))

Johannes

> Martin
>
>
>
> On Mon, Mar 9, 2009 at 3:55 PM, Johannes Ring <johannr@xxxxxxxxx> wrote:
>> On Mon, March 9, 2009 15:45, Martin Sandve Alnæs wrote:
>>> On Mon, Mar 9, 2009 at 3:31 PM, Johannes Ring <johannr@xxxxxxxxx>
>>> wrote:
>>>> Hi,
>>>>
>>>> I have a couple of issues regarding UFL and the buildbot:
>>>>
>>>> 1. The Windows buildslave failed during build. The following patch
>>>> should
>>>> fix this:
>>>>
>>>> --- a/setup.py  Sun Mar 08 20:18:58 2009 +0100
>>>> +++ b/setup.py  Mon Mar 09 15:19:26 2009 +0100
>>>> @@ -41,5 +41,5 @@
>>>>                  "scripts/ufl-convert",
>>>>                  "scripts/form2ufl"],
>>>>       packages = ["ufl", "ufl.algorithms"],
>>>> -      package_dir = {"ufl": "ufl/"},
>>>> +      package_dir = {"ufl": "ufl"},
>>>>       data_files = [("lib/pkgconfig", ["ufl-%d.pc" % major])])
>>>
>>> Done.
>>>
>>>> 2. The buildbot is not currently triggered by a commit. To fix this,
>>>> add
>>>> the following line under the [hooks] section in .hg/hgrc:
>>>>
>>>> changegroup.jhbuildbot = hg-notify UFL jhbuildbot@xxxxxxxxxx
>>>
>>> Done.
>>>
>>>> 3. Let me know if you want the buildbot to send an email to ufl-dev
>>>> if/when the build or tests fails.
>>>
>>> Yes please. We should keep it stable now.
>>
>> Done.
>>
>> Johannes
>>
>>
>>
>




Follow ups

References