New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new bbb layer for Archetypes #51

merged 2 commits into from Sep 27, 2018


None yet
2 participants

pbauer commented Sep 24, 2018

This is in preparation to changes in #49.

For Plone 5.2 the bbb.PloneTestCase will use Dexterity instead of Arcetypes which makes it much easier to fix all the failing tests in CMFPlone but also breaks most tests in Archetypes and related packages. This change allows to keep the AT tests working and allowing CMFPlone test to always use Dexterity even before #49 is merged.

pbauer added some commits Sep 22, 2018


This comment has been minimized.


pbauer commented Sep 24, 2018

When combining all these PRs thes tests all pass except for a weird issue in archetypes.schemaextender:

Here is the traceback:

Running tests:
  Tear down in 0.000 seconds.
  Tear down in 0.010 seconds.
  Set up in 0.896 seconds.
  Set up in 0.000 seconds.

Failure in test /home/jenkins/workspace/pull-request-5.2/src/archetypes.schemaextender/archetypes/schemaextender/usage.txt
Failed doctest test for usage.txt
  File "/home/jenkins/workspace/pull-request-5.2/src/archetypes.schemaextender/archetypes/schemaextender/usage.txt", line 0

File "/home/jenkins/workspace/pull-request-5.2/src/archetypes.schemaextender/archetypes/schemaextender/usage.txt", line 257, in usage.txt
Failed example:
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest usage.txt[65]>", line 1, in <module>
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/", line 256, in open
        self._processRequest(url, make_request)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/", line 280, in _processRequest
        resp = make_request(reqargs)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/", line 254, in make_request
        return self.testapp.get(url, **args)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py2.7.egg/webtest/", line 331, in get
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/", line 94, in do_request
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py2.7.egg/webtest/", line 625, in do_request
        res = req.get_response(app, catch_exc_info=True)
      File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py2.7.egg/webob/", line 1309, in send
        application, catch_exc_info=True)
      File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py2.7.egg/webob/", line 1277, in call_application
        app_iter = application(self.environ, start_response)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py2.7.egg/webtest/", line 200, in lint_app
        iterator = application(environ, start_response_wrapper)
      File "/home/jenkins/workspace/pull-request-5.2/src/plone.testing/src/plone/testing/", line 38, in wrapped_func
        return func(*args, **kw)
      File "/home/jenkins/workspace/pull-request-5.2/src/plone.testing/src/plone/testing/", line 65, in __call__
        wsgi_result = publish(environ, start_response)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/ZPublisher/", line 270, in publish_module
        response = _publish(request, new_mod_info)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/ZPublisher/", line 210, in publish
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/ZPublisher/", line 85, in mapply
        return debug(object, args, context)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/ZPublisher/", line 57, in call_object
        return obj(*args)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Shared/DC/Scripts/", line 330, in __call__
        return self._bindAndExec(args, kw, None)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Shared/DC/Scripts/", line 367, in _bindAndExec
        return self._exec(bound_data, args, kw)
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/", line 241, in _exec
        result = self.pt_render(extra_context=bound_names)
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/", line 181, in pt_render
        self, source, extra_context
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Products/PageTemplates/", line 83, in pt_render
      File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py2.7.egg/zope/pagetemplate/", line 134, in pt_render
        strictinsert=0, sourceAnnotations=sourceAnnotations
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Products/PageTemplates/", line 85, in __call__
        return self.template.render(**kwargs)
      File "/home/jenkins/.buildout/eggs/", line 158, in render
        return base_renderer(**context)
      File "/home/jenkins/.buildout/eggs/Chameleon-3.2-py2.7.egg/chameleon/zpt/", line 297, in render
        return super(PageTemplate, self).render(**_kw)
      File "/home/jenkins/.buildout/eggs/Chameleon-3.2-py2.7.egg/chameleon/", line 191, in render
        raise_with_traceback(exc, tb)
      File "/home/jenkins/.buildout/eggs/Chameleon-3.2-py2.7.egg/chameleon/", line 171, in render
        self._render(stream, econtext, rcontext)
      File "", line 1977, in render
      File "", line 636, in render_master
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Products/PageTemplates/", line 98, in __call__
        base = self.traverse(base, request, path_items)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Products/PageTemplates/", line 65, in traverse
        traverser = getattr(base, method)
      File "/home/jenkins/.buildout/eggs/ZODB-5.3.0-py2.7.egg/ZODB/", line 790, in setstate
        raise ConnectionStateError(msg)
    ConnectionStateError: Shouldn't load state for Products.CMFPlone.PropertiesTool.PropertiesTool 0x208e85585898da42 when the connection is closed

     - Expression: "operties context/portal_properties/site_p"
     - Filename:   ... one/Products/CMFPlone/browser/templates/
     - Location:   (line 17: col 17)
     - Source:     site_properties context/portal_properties/site_properties;
     - Expression: "context/main_template/macros/master"
     - Filename:   ... ts/ATContentTypes/skins/ATContentTypes/
     - Location:   (line 6: col 23)
     - Source:     ... etal:use-macro="context/main_template/macros/master"
     - Arguments:  repeat: {...} (0)
                   template: <ImplicitAcquisitionWrapper folder_listing at 0x7f4e3b405500>
                   modules: <_SecureModuleImporter - at 0x7f4e4755a6d0>
                   here: <ImplicitAcquisitionWrapper test_user_1_ at 0x7f4e3a0a8230>
                   user: <ImplicitAcquisitionWrapper - at 0x7f4e3a0a8be0>
                   nothing: <NoneType - at 0x5625c2859ae0>
                   container: <ImplicitAcquisitionWrapper plone at 0x7f4e3a575c30>
                   default: <object - at 0x7f4e4b920ab0>
                   root: <ImplicitAcquisitionWrapper  at 0x7f4e3a134910>
                   request: <HTTPRequest - at 0x7f4e2bbd5b50>
                   wrapped_repeat: <SafeMapping - at 0x7f4e36707b48>
                   traverse_subpath: <list - at 0x7f4e3aa0e758>
                   loop: {...} (0)
                   context: <ImplicitAcquisitionWrapper test_user_1_ at 0x7f4e3a0a8230>
                   translate: <function translate at 0x7f4e3689e320>
                   macroname: master
                   options: {...} (1)
                   target_language: <NoneType - at 0x5625c2859ae0>

@jensens jensens merged commit 340a19c into master Sep 27, 2018

3 checks passed

Changelog verifier Entry found
Plone Contributors Agreement verifier All users have signed it
Plone Jenkins CI - pull-request-5.2 Job finished with success status

@jensens jensens deleted the add_copy_of_at_layer branch Sep 27, 2018

pbauer added a commit to plone/buildout.coredev that referenced this pull request Sep 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment