gomez
(Steffen Lindner)
February 8, 2017, 9:20am
1
We use Robotframework tests in our CI testing pipline, for integration tests we have nice tracebacks in our CI server output. Unfortunately robot tests don't show this tracebacks.
Our idea was to connect a sentry server to the CI server. Does this makes sense?
To get this working we need to inject the sentry DSN into zope configuration:
event-log-custom =
%import raven.contrib.zope
<logfile>
path ${buildout:logdir}/${:_buildout_section_name_}.log
level INFO
</logfile>
<sentry>
dsn https://dsn.de/dddd
string_max_length 100000
list_max_length 500
level ERROR
</sentry>
I found some configuration for test in zope, but cant figure out how to get the config injected:
##############################################################################
#
# Copyright (c) 2003 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
import os
_config = None
This file has been truncated. show original
davisagli
(David Glick)
February 8, 2017, 3:50pm
2
See collective.beaker for an example of a product that gets custom configuration from a product-config
section in zope.conf
hvelarde
(hvelarde)
February 8, 2017, 5:23pm
3
collective.fingerpointing also does that:
# read configuration from zope.conf
zopeConf = getConfiguration()
product_config = getattr(zopeConf, 'product_config', {})
fingerpointing_config = product_config.get(PROJECTNAME, {})
gomez
(Steffen Lindner)
February 10, 2017, 3:49pm
4
Thanks for the answers. I will report back!