[users at bb.net] Html Status ImportError

Pierre Tardy tardyp at gmail.com
Wed Feb 15 16:02:05 UTC 2017


Chris,
There is no strict equivalent to those options.
It is time to ask yourself what you really need, and then how would you
implement this with the endpoint matcher mechanisms.

Some of the features in the UI are different, you may also have some
endpoint matchers not yet written.
- There is no gracefull shutdown feature yet
- force all build is not a feature in buildbot nine
- ping builder is not available in nine
- stop all builds is using the Stop build endpoint
- cancel buildrequest has no endpoint matcher yet

Pierre

Le mer. 15 févr. 2017 à 16:11, Chris Spencer <chrisspen at gmail.com> a écrit :

> I guess my question is more about where some of the options went.
>
> For example, I assumed the line
> `util.StopBuildEndpointMatcher(role="admins")` in the example is equivalent
> to the old `stopBuild=True`.
>
> What I'm confused by is how to replace the old options that don't appear
> to have any current equivalent.
>
> How do I replace these options?
>
>         useHttpHeader=True,
>         gracefulShutdown=False,
>         forceAllBuilds='auth',
>         pingBuilder=False,
>         stopAllBuilds=True,
>         cancelPendingBuild=True,
>
>
>
>
> On Wed, Feb 15, 2017 at 3:41 AM, Pierre Tardy <tardyp at gmail.com> wrote:
>
> Hi Chris,
> The new buildbot authorization framework is much more powerful, but more
> complex than just setting some booleans.
> I suggest to spend a bit of time understanding how it works. The first
> example config is more or less similar to the eight authz config you pasted.
>
> Please come back with any specific question if something is still unclear.
> It is important for us to have very clear documentation so that people can
> be autonomous.
>
> Pierre
>
> Le mer. 15 févr. 2017 à 06:20, Chris Spencer <chrisspen at gmail.com> a
> écrit :
>
> Is there any documentation for translating the old
> buildbot.status.web.authz.Authz class to whatever the new alternative is?
> I'm assuming this is now a plugin, but it's unclear what the new call is
> like. I see some examples at:
>
>
> http://buildbot.readthedocs.io/en/latest/manual/cfg-www.html#example-configs
>
> but the new Authz class doesn't seem to share any of the same arguments.
>
> For example, how would I translate this?
>
>     authz_cfg=authz.Authz(
>         auth=auth.HTPasswdAprAuth('/usr/local/project/htpasswd'),
>         useHttpHeader=True,
>         gracefulShutdown=False,
>         forceBuild='auth',
>         forceAllBuilds='auth',
>         pingBuilder=False,
>         stopBuild=True,
>         stopAllBuilds=True,
>         cancelPendingBuild=True,
>     )
>     c['status'].append(html.WebStatus(
>          http_port=8010,
>          authz=authz_cfg,
>     ))
>
>
> On Wed, Jan 11, 2017 at 6:24 AM, Chris Spencer <chrisspen at gmail.com>
> wrote:
>
> Thanks.
>
> On Wed, Jan 11, 2017 at 3:10 AM, Pierre Tardy <tardyp at gmail.com> wrote:
>
> Hi Chris,
> Please see this section of the upgrade manual
>
> http://buildbot.readthedocs.io/en/latest/manual/installation/nine-upgrade.html#web-status
>
> Pierre
>
> Le mer. 11 janv. 2017 à 03:25, Chris Spencer <chrisspen at gmail.com> a
> écrit :
>
> I'm trying to test a Buildbot 0.8 config on the current Buildbot 0.9.2,
> and I'm getting the error:
>
>     Traceback (most recent call last):
>       File
> "/usr/local/myproject/.env/local/lib/python2.7/site-packages/twisted/python/threadpool.py",
> line 262, in <lambda>
>         inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
>       File
> "/usr/local/myproject/.env/local/lib/python2.7/site-packages/twisted/python/context.py",
> line 118, in callWithContext
>         return self.currentContext().callWithContext(ctx, func, *args,
> **kw)
>       File
> "/usr/local/myproject/.env/local/lib/python2.7/site-packages/twisted/python/context.py",
> line 81, in callWithContext
>         return func(*args,**kw)
>       File
> "/usr/local/myproject/.env/local/lib/python2.7/site-packages/buildbot/config.py",
> line 162, in loadConfig
>         self.basedir, self.configFileName)
>     --- <exception caught here> ---
>       File
> "/usr/local/myproject/.env/local/lib/python2.7/site-packages/buildbot/config.py",
> line 119, in loadConfigDict
>         exec(f, localDict)
>       File "/usr/local/myproject/src/buildbot/master/master.cfg", line
> 131, in <module>
>         from buildbot.status import html
>     exceptions.ImportError: cannot import name html
>
> Presumably, some functionality was removed or refactored. However, I can't
> find any documentation on the site or through Google to explain where the
> "html" status went. Where can I find this?
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170215/1dce3f4b/attachment.html>


More information about the users mailing list