Skip to content
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

Remove quick installer code [6.0] #3189

Merged
merged 6 commits into from Oct 3, 2020
Merged

Remove quick installer code [6.0] #3189

merged 6 commits into from Oct 3, 2020

Conversation

mauritsvanrees
Copy link
Sponsor Member

@mauritsvanrees mauritsvanrees commented Oct 2, 2020

Part of PLIP #1775.

I think this can be tested and merged on its own.
Maybe the related plone.app.upgrade branch is needed.

With the Products.CMFQuickInstallerTool package gone,
the bare bones fallback in this file did not work correctly.
You get an error like this when viewing the Plone Site in the ZMI,
or even just loading the root ZMI:

```
2020-04-24 23:29:39,113 ERROR   [ZODB.Connection:809][waitress] Couldn't load state for Products.CMFPlone.Portal.PloneSite 0x9f8a
Traceback (most recent call last):
  File "/Users/maurits/shared-eggs/cp37m/ZODB-5.5.1-py3.7.egg/ZODB/Connection.py", line 795, in setstate
    self._reader.setGhostState(obj, p)
  File "/Users/maurits/shared-eggs/cp37m/ZODB-5.5.1-py3.7.egg/ZODB/serialize.py", line 637, in setGhostState
    state = self.getState(pickle)
  File "/Users/maurits/shared-eggs/cp37m/ZODB-5.5.1-py3.7.egg/ZODB/serialize.py", line 630, in getState
    return unpickler.load()
  File "/Users/maurits/shared-eggs/cp37m/ZODB-5.5.1-py3.7.egg/ZODB/serialize.py", line 492, in _persistent_load
    return self.load_persistent(*reference)
  File "/Users/maurits/shared-eggs/cp37m/ZODB-5.5.1-py3.7.egg/ZODB/serialize.py", line 535, in load_persistent
    self._cache.new_ghost(oid, obj)
TypeError: Cache values must be persistent objects.
```

I am creating an alias in plone.app.upgrade.
These were already copied to controlpanel/tests/ and adapted.
You cannot upgrade a Plone 4.0 or 5.1 site to 5.2 or higher when you are on Python 3.
You must first migrate to 5.2 with Python 2.7.
Also, this avoids a test failure on 6.0 because the 5.0alpha upgrade calls qi.isProductInstalled, which has been removed.
@mauritsvanrees
Copy link
Sponsor Member Author

@jenkins-plone-org please run jobs

@mauritsvanrees
Copy link
Sponsor Member Author

I don't know why the tests fail. Maybe the other package merges were needed anyway, or it was too crowded on Jenkins. The other PRs are merged now. Let's try again. I have started the jobs manually.

@mauritsvanrees
Copy link
Sponsor Member Author

Jenkins keeps having the same test failures. This is on Plone 6.0 with Python 3.6, 3.7 and 3.8. Locally, with 3.8, all is fine.
Test failures are in:

  • Products.CMFPlone csrf.txt
  • plone.stringinterp.tests.wrapperTests.txt
  • Several tests in plone.app.content.tests.test_widgets

Does anyone know what causes this?
Maybe some test isolation issue?

@mauritsvanrees
Copy link
Sponsor Member Author

I am trying it with a slightly cleaned up coredev in plone/buildout.coredev#683

@mauritsvanrees
Copy link
Sponsor Member Author

The coredev PR with this branch worked. I will merge both.

@mauritsvanrees mauritsvanrees merged commit c3c7ec9 into master Oct 3, 2020
@mauritsvanrees mauritsvanrees deleted the maurits/no-qi branch October 3, 2020 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants