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

Handle corner case when upgrade step for 1008 found a collection with no query defined #187

Merged
merged 1 commit into from Jan 26, 2017

Conversation

hvelarde
Copy link
Member

closes #186

@hvelarde hvelarde self-assigned this Jan 26, 2017
@idgserpro
Copy link
Member

A test having a collection without query would be nice, but I don't know if it's worth the hassle. What do you think?

@makelli did you do exactly what @hvelarde said here (added if query is None: in your snippet) to solve your problem?

@hvelarde
Copy link
Member Author

I'm not going to add that test, but feel free to do it ;-)

@idgserpro
Copy link
Member

Just a brainstorm: we've seen too many packages pinning coverage as coverage = in it's buildouts. Do you think it's possible to handle this in https://github.com/collective/buildout.plonetest?

@hvelarde
Copy link
Member Author

yes, but we need to pin a specific version; which one is used in Plone 5?

@makelli
Copy link

makelli commented Jan 26, 2017 via email

@idgserpro
Copy link
Member

Your buildout extends https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg, which extends https://raw.githubusercontent.com/collective/buildout.plonetest/master/plone-4.3.x.cfg, which extends http://dist.plone.org/release/4.3-latest/versions.cfg, which extends http://dist.plone.org/versions/zope-2-13-24-versions.cfg which extends http://dist.plone.org/versions/zopetoolkit-1-0-8-ztk-versions.cfg that pins coverage to 3.5.2.

Your build broke because someone is asking for coverage > 3.7: it's createcoverage from https://github.com/collective/buildout.plonetest/blob/master/qa.cfg, since 1.4.1 it asks for coverage > 3.7.

In Plone 5, Plone overrides zope (which uses 3.5.2) to use 3.7.1 instead.

IMHO, we have three options:

  • Pin createcoverage in buildout.plonetest to 1.4 (don't know if it's feasible);
  • Pin coverage in buildout.plonetest to 3.7.1, putting a comment fingerpointing this discussion;
  • Ask Plone folks if it wouldn't be the case to add coverage 3.7.1 pin to http://dist.plone.org/release/4.3-latest/versions.cfg since they do the same to Plone 5. This would solve the problem to everyone that is using buildout.plonetest and those not using it that may try to use createcoverage in the future.

Strange enough, Plone 5.1 uses 3.5.2 again. Don't know why.

@idgserpro idgserpro merged commit 1fbb44a into 1.x Jan 26, 2017
@idgserpro idgserpro deleted the issue_186 branch January 26, 2017 14:15
@idgserpro
Copy link
Member

Since it's the 1.x branch and not master, I think the test here is not worth the hassle, so it's merged.

Copy link
Member

@idgserpro idgserpro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@hvelarde
Copy link
Member Author

I think the third option is the best one.

@idgserpro
Copy link
Member

Me too.

Do you know how http://dist.plone.org/release/4.3-latest/versions.cfg is created? Who should we talk too, can @esteele help us?

@hvelarde
Copy link
Member Author

I have no idea.

@idgserpro
Copy link
Member

https://community.plone.org/t/how-http-dist-plone-org-release-4-3-latest-versions-cfg-is-generated/3357

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

Successfully merging this pull request may close these issues.

None yet

3 participants