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

Test failures with Products.MailHost 4.10 #3178

Closed
7 tasks done
mauritsvanrees opened this issue Sep 17, 2020 · 3 comments
Closed
7 tasks done

Test failures with Products.MailHost 4.10 #3178

mauritsvanrees opened this issue Sep 17, 2020 · 3 comments

Comments

@mauritsvanrees
Copy link
Sponsor Member

mauritsvanrees commented Sep 17, 2020

Plone 5.2.2 uses Products.MailHost 4.9. When I change the core development buildout to use 4.10, as in this PR, there are 26 failures.

  • The tests on Python 2.7 are fine
  • The tests on Python 3.6 fail
  • The tests on Python 3.7 fail

Errors are like this:

initial_value must be str or None, not bytes

  File "/srv/python3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/home/jenkins/workspace/pull-request-5.2-3.7/src/Products.CMFPlone/Products/CMFPlone/tests/testRegistrationTool.py", line 212, in testMailPassword
    msg = message_from_string(mails.messages[0])
  File "/srv/python3.7/lib/python3.7/email/__init__.py", line 38, in message_from_string
    return Parser(*args, **kws).parsestr(s)
  File "/srv/python3.7/lib/python3.7/email/parser.py", line 67, in parsestr
    return self.parse(StringIO(text), headersonly=headersonly)

See zopefoundation/Products.MailHost#33 and especially this comment where @d-maurer says we should fix the tests.

I see failures in these packages, so they likely need fixes:

Maybe also:

  • collective.mockmailhost. No action seems needed, but I opened an issue for good measure.

Help is welcome.
Probably best to use the maurits/mailhost-410 coredev branch from PR plone/buildout.coredev#679 and add branches there so we can test them all in combination.

Note that on Plone 5.2 the Python 2.7 tests pass just fine, it is only Python 3 that needs fixes.

@mauritsvanrees
Copy link
Sponsor Member Author

I have made a mailhost-410 branch for all above packages, added this to sources.cfg and made sure all those packages are in checkouts.cfg. This is ready for testing.

@jenkins-plone-org please run jobs

mauritsvanrees added a commit to plone/plone.restapi that referenced this issue Sep 24, 2020
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 25, 2020
Branch: refs/heads/master
Date: 2020-09-24T10:05:12+02:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.restapi@4306c6d

Fix tests with Products.MailHost 4.10.

Part of plone/Products.CMFPlone#3178

Files changed:
A news/3178.bugfix
M src/plone/restapi/tests/test_services_email_notification.py
M src/plone/restapi/tests/test_services_email_send.py
M src/plone/restapi/tests/test_services_users.py
Repository: plone.restapi

Branch: refs/heads/master
Date: 2020-09-25T12:15:59+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.restapi@9e6afae

Merge pull request #991 from plone/mailhost-410

Fix tests with Products.MailHost 4.10.

Files changed:
A news/3178.bugfix
M src/plone/restapi/tests/test_services_email_notification.py
M src/plone/restapi/tests/test_services_email_send.py
M src/plone/restapi/tests/test_services_users.py
mauritsvanrees added a commit to plone/buildout.coredev that referenced this issue Sep 25, 2020
Add packages to checkouts that have changes for this.
I will merge the relevant PRs immediately after this.
See also plone/Products.CMFPlone#3178
@mauritsvanrees
Copy link
Sponsor Member Author

All is merged. Jenkins might fail until all relevant changes have come through: they could not be done in the same second.
Let's leave this issue open until all is well on Jenkins 5.2.

@mauritsvanrees
Copy link
Sponsor Member Author

Jenkins is green.

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

No branches or pull requests

1 participant