[Buildbot-devel] warnOnWarnings from Trigger build step

Barry Laffoy laffoyb at gmail.com
Wed Feb 4 08:49:57 UTC 2015


Hi

(Apologies if this is the wrong place for this sort of question.)

I have two two types of builders: Release and Test. Release builds my
projects, triggers Test to test them, and then releases them (to an
internal devpi server).

I would like for the release to only happen if all the tests pass. Also, I
would like for failing tests to set the status of the Test build to
Warnings (as distinct from Failure).

However, it seems that this doesn't work.

    test.addStep(ShellCommand(
        name="nose",
        description="nosing...",
        descriptionDone="nosed",
        env=env,
        command=[
            'nosetests', '.'
        ],
        warnOnFailure=True,
        flunkOnFailure=False,
    ))

    release.addStep(Trigger(
        name="Trigger tests",
        schedulerNames=["Test:{}".format(name)],
        updateSourceStamp=True,
        copy_properties=['name', 'version'],
        waitForFinish=True,
        warnOnWarnings=True,
    ))

While Test status will be set to "Warnings" when tests fail, the triggering
build doesn't seem to pick up on this status, and Release gets marked as
"Success". This would lead to possible regressions being introduced to the
production environment.

I can work around this by setting flunkOnFailure=True in the test step,
allowing failed tests to set the whole job status as failed. Then in the
Trigger, flunkOnFailure=True will correctly pick up the status of the
triggered job, and I can script to prevent the release from happening.

Is there a reason that the Trigger build step doesn't warn on warnings of
the child build? Have I misunderstood how this should work?

Thanks
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150204/5206bddc/attachment.html>


More information about the devel mailing list