Opened 4 years ago

Last modified 4 years ago

#3481 new defect

Following doc for WebStatus in 0.8.12 leads to configuration that won't load... incomplete port of plugins from master?

Reported by: dank Owned by:
Priority: major Milestone: 0.8.x
Version: 0.8.12 Keywords:
Cc:

Description (last modified by dustin)

As described in https://lists.buildbot.net/pipermail/devel/2015-August/011904.html

http://docs.buildbot.net/0.8.12/manual/cfg-statustargets.html#configuration claims this works:

    from buildbot.plugins import status
    c['status'].append(status.WebStatus(8080))

But it fails with

    exceptions.AttributeError: Plugin buildbot.status:WebStatus does not
    implement IStatusReceiver: An object has failed to implement
    interface <InterfaceClass buildbot...IStatusReceiver>

The workaround seems to be to ignore the docs and do

    import buildbot.status.html
    c['status'].append(buildbot.status.html.WebStatus(http_port=8080))

Shouldn't either the doc or the code should be fixed so the documented sequence works?

Change History (3)

comment:1 Changed 4 years ago by dank

well, foo. Sorry about saving before correcting the formatting... can one edit tickets?

comment:2 Changed 4 years ago by rutsky

  • Description modified (diff)

comment:3 Changed 4 years ago by dustin

  • Description modified (diff)
  • Milestone changed from undecided to 0.8.x
  • Type changed from undecided to defect

I suspect that just adding an implements(..) would be sufficient.

Note: See TracTickets for help on using tickets.