CI/CD is cheap, human work is expensive.

If you avoid testing it PR, you will allow introduction of changes that break 
the master branch.

For small projects it does not make sense to avoid testing anything before 
merge (PR), only for big projects where testing takes many hours and days it 
makes sense to use promotion pipelines.

That is what we do on OpenStack, but for pytest & co, there are no reasons to 
optimize testing strategy especially as any regression that slips into master 
is likely to be extra load for the project maintainer (as opposed to the PR 
OP). It is not uncommon for me to find broken jobs when I propose PR, and also 
raise one or two other PRs for fixing those, just to get everything green 
before my patch is ready. 

By lower PR testing coverage, you loose the opportunity to spread the 
maintenance burden with occasional contributors.

> On 29 Jul 2020, at 15:11, Florian Bruhin <m...@the-compiler.org> wrote:
> 
> On Wed, Jul 29, 2020 at 02:59:24PM +0100, Thomas Grainger wrote:
>>> Why? Something like a tox environment running against the latest pytest
>>> prerelease (or pytest master even) plus a scheduled build job should totally
>>> suffice, no?
>> 
>> -1 on depending on unpined deps in CI this causes the default branch
>> to fail and blocks all contributions until it is resolved
>> Creating a pr (in pyup.io) gives one point of discussion if a release
>> fails and does not block any other prs
> 
> Agreed! Just because the environment exists, it doesn't mean it has to run for
> PRs. Similarly, it doesn't make sense to run e.g. linters periodically.
> 
> In other words, run environments with pinned versions for PRs/branches, run an
> environment with unpinned (and prerelease/VCS) dependencies periodically.
> 
> Florian
> 
> -- 
> m...@the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org 
>       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
>       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>             I love long mails! | https://email.is-not-s.ms/

_______________________________________________
pytest-dev mailing list
pytest-dev@python.org
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to