[users at bb.net] Html Status ImportError
Chris Spencer
chrisspen at gmail.com
Wed Feb 15 15:11:57 UTC 2017
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/9f855832/attachment.html>
More information about the users
mailing list