-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Testing matrix #256
Testing matrix #256
Conversation
062b9e3
to
8fc3b52
Compare
first quick test give me an error:
|
8fc3b52
to
dd07ff4
Compare
@1letter oh, sorry, it was not meant to be tested still, but indeed, there is some polishing needed. Thanks for the heads up. After the next meeting I will fix it |
20c665b
to
cb0f066
Compare
cb0f066
to
f1ed7d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions and a question. I didn't bother to submit multiple suggestions for a single sentence or concept. Narrative docs should follow the one sentence per line guideline of Plone Documentation, and not break up concepts for semantic line breaks or PEP8 line length. Semantic line breaks are harmful, and documentation is not code.
news/234.breaking
Outdated
@@ -0,0 +1 @@ | |||
Allow to define multiple plone and python versions in tox @gforcada |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow to define multiple plone and python versions in tox @gforcada | |
Support combinations of multiple versions of Plone and Python in tox. @gforcada |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though it is not only tox
, it's being used in GHA and GitLab as well, that's why I kept it generic
f1ed7d7
to
70d4a83
Compare
@gforcada I run into an error trying this. I ran this on a branch of But when I run
I did not yet edit |
@gforcada The problem is that if I have this change locally and then it works:
I am not sure this is the best way, but it helps. And all jobs on my PR are green, for example this one. So looking good! |
Ah, but the job called "6.0 on py3.13" actually has Products.CMFPlone 6.1.0. The other jobs are correct. tox runs a Locally, Strange. There is some magic in tox that is not yet obvious to me. |
I don't know why those versions are higher than they should be. |
Tox configuration was getting too big to handle in a single file. While doing that, take the time to reduce the duplication between the test sections, as the differences are only on the requirements and the commands, but everything else is the same.
70d4a83
to
433946e
Compare
ea22067
to
5e81050
Compare
@stevepiercy fixes all applied, hopefully this time is all good from your side 🤞🏾 @mauritsvanrees the |
Somehow the In |
I found the problem: The -deps = {[test_runner]deps}
+deps = {[base]deps} I'm fixing it right away |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few grammar and proper noun tweaks, and a few semantic line break habits to break, and it's good to go.
This allows running any combination of Plone and Python versions that are configured on the repository itself, or the defaults provided by `plone.meta` itself.
As the default `[testenv]` is taken over for the generated environments, we need to set the settings which were defined there in the environments that need it.
Otherwise, the testing matrix is pointless! Add a new setting for the other tox environments that also need a constraints file, but not multiple.
Like in Jenkins, for each plone version, run the tests against the python versions upper and lower bounds.
5e81050
to
9728e0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs LGTM. Needs a technical review from someone more knowledgeable. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, with your last fix it works on my collective.faq
PR.
This is very helpful. Many thanks!
Part of #234
So far:
tox.ini.j2
into more sizeable chunkstox
environments' names are generated correctlytox
picks the correct python version.meta.toml
(if we had not enough configuration options 😓 )