Alpine City Sprint 2016
See also original posting at community.plone.org
Report After Alpine City Strategic Sprint 2016
Last week of January we sprinted at our (Klein & Partner KG, BlueDynamics Alliance) office in Innsbruck, Tyrol, Austria.
After five long days of talking, coding, poking into the depth of Zope2 and also after 5 days of fun, wine, beer and delicious food, great views on and from our mountains, some culture, lots of WTF and opening of pandoras boxes we have to report a lot on what was titled with "Plone - dig deep, tidy up".
But first a big thanks also to all the sprinters who were here and to our sponsor of the lunch-break, the Flying Circus. Also thanks a lot to my wife and business partner @chrimba who did all the organization of the sprint.
Before I start with the technical report: @thet took some pictures.
Zope 4
@thet and @pbauer worked (with partial help of the whole group) on the task of levering Plone to the so called Zope4. Zope4 is about updating Plone's framework dependencies (ZCA, ZTK and Zope) to the latest possible versions. Lots of this latest versions are already Python 3 compatible. In order to make Plone Python 3 compatible this step is essential.
This was hard work with some nuts to crack. It is not all finished, but the majority of problems are solved and the remaining are identified.
For a more details best read the PLIP 1351: Zope 4 / Update Dependencies
PluggableAuthenticationService (PAS)
Jens Vagelpohl (@dataflake) and Jens Klein (@jensens) worked on the PAS. Jens Vagelpohl is one of the authors of Products.PluggableAuthService and so his input was (not only here) very valuable.
I must say that touching user-authentication-story is like opening pandoras box. The whole code is influenced by backward compatibility to GRUF (Group-User-Folder, was kicked out with Plone 3 release) and the 4 tools (portal_groupdata, portal_groups, portal_memberdata and portal_membership). This started all as an add-on: PlonePAS. Now this code does lots of patches to PAS itself. It also provides PAS-plugins which then use the tools, while the tools are using PAS/PlonePAS. The problem is, that PAS itself has no convenient API and so the BBB code for GRUF is used as convenience API everywhere. And much more.
First we picked the low hanging fruits and moved plugins, some patches and the events down to a forked Products.PluggableAuthenticationService. The tools were moved up to Products.CMFPlone. Interfaces were moved as well. So since this are often persistent elements in ZODB we provided deprecated BBB imports at the old places.
This is still work in progress. I think we also need to move forward in iterative steps.
- The first step is to cleanup everything that does not break using the GRUF API.
- The second step is to write a PAS API providing the convinience needed to work with users, groups, (local)roles.
- The third step is then to use the PAS API everywhere in Plone core and provided still deprecated calls at the old places. Provide migration steps for moved persistent information. At this step also solve the portrait-image problem.
- With a major Plone release remove the deprecated API and the 4 tools.
This is a lot of work, but if we can do this step by step its doable.
We also created a PLIP (that will be adjusted soon to only cover step one) PLIP 1334: Cleanup PlonePAS patches and tools
Assimilate Collective Indexing
collective.indexing increases indexing performance and makes indexers pluggable (to support third party indexing serives like Solr). @gforcada and @MrTango worked on moving all functionality to existing packages (Products.ZCatalog, Products.CMFCore and Products.CMFPlone) and apply all monkey patches directly to the packages they belong to, like Products.CMFCore or Products.Archetypes.
Some tests in Plone core will need to be updated to work around the indexing optimizations (as tests expect that objects are indexed/reindexed/unindexed right away).
Follow the state of this task at the PLIP 1343: assimilate collective.indexing
Get rid of CMFQuickinstaller
There are two ways of installing products: GenericSetup and CMFQuickInstaller. Checking if a package is currently installed, means having to check portal_setup and portal_quickinstaller, or having code that makes sure those two are in sync. The syncing is mostly in place, with some recent changes, but supporting both remains tricky. Cleanup would make this code much easier to understand
@mauritsvanrees worked on this, read the PLIP 1340 for details
AccessControl/ RestrictedPython on Python 3
@loechel worked on making AccessControl and RestrictedPython work on Python 3. In order to make Plone in future run on Python 3 this is an important task. It is everything but trivial. Good news: it is possible. But: its a lot of work.
Alexander analysed and documented the steps and background.
We may need a dedicated sprint on this topic and it could help to have persons there with deep knowledge of Python AST, C-Python and compilers.
Testing
@do3cc dug deep into our test and tried to bump zope.testrunner to the latest release. In the minor release update of zope.testrunner the order of test execution was optimized which may speedup the tests and also run unit tests before all others, so failures on this level appear earlier.
But this was a disappointing job, since he figured out that this is not that easy and needs rewrites/updates of lots of tests. Mixing ZopeTestCase and plone.app.testing within the same distribution renders all its tests unstable. This also is a possible cause of our current test isolation problems. Also PloneMockTestCase and mocker usage in plone.dexterity is a source of problems. We need to rewrite all the plone.dexterity tests using the mock packages (addon in Python 2.7, stdlib in Python 3).
For details read the buildout.coredev ticket #155: Bump zope.testrunner / fix test isolation problems
Other testing related work:
- created a jenkins job template to run code analysis on specific distributions that report back to github (@gforcada)
- brought back jenkins node4 (@gforcada)
- update jenkins jobs here and there, create a Zope tab for ZODB, ZTK, Zope and CMF tests. Highly untested (@gforcada)
- created jenkins jobs for PLIP cfg files (@gforcada)
Documentation
- Investigated and documented how to do deprecation warnings (@jensens and @dataflake) - WIP, see https://github.com/plone/documentation/blob/802c1c91fb74748722535f037817e38d38fe0a93/develop/styleguide/deprecation.rst
- update z3c.form documentation (get rid of plone.directives.form which is evil! plone.autoform is the good one!) (@fredvd)
Various/ Core
- @staeff was going through ticket merge translations into plone.app.locales. Done for plone.formwidget.recurrence, plone.formwidget.namedfile, plone.formwidget.datetime
- @fredvd and @staeff removed/investigated the usage of collective.monkeypatcher in core packages.
- pull request for z3c.form (@fredvd)
Various/ Other
- @mauritsvanrees did some improvements on zest.releaser
- @loechel made plone.versioncheck2 Python 3 (and Python 2) compatible
- discuss about make the conference more approachable (all ,lead by @fredvd)
- looked for apartments/hotels for Boston (all)
- @theuni worked on batou (automating web-application deployments), improved documentation and released v1.2 http://batou.readthedocs.org/en/latest/
Add-Ons
- @agitator upgraded sc.social.like to Plone 5
- @agitator, @fredvd and @MrTango worked on Products.EasyNewsletter: Bugfixing and upgrade to Plone 5
I hope I catched all topics, thanks to all sprinters and supporters!
We indeed need more sprints like this to make progress. @gforcada would like to sprint in Berlin later this year. This would be a great opportunity to push the cleanup/zope4 work forward.