phpchunkit icon indicating copy to clipboard operation
phpchunkit copied to clipboard

Add phpchunkit release

Open joesaunderson opened this issue 6 years ago • 9 comments

Can a version of this be released, when installing via

composer require jwage/phpchunkit

I get the message:

[InvalidArgumentException] Could not find a version of package jwage/phpchunkit matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

joesaunderson avatar Jun 11 '19 10:06 joesaunderson

Hi @joesaunderson. I think I would rather see this get included directly in phpunit https://github.com/sebastianbergmann/phpunit/pull/3605

I am not currently actively working on this and don't have the capacity at the moment to do anything with it. Although if I can't get this functionality built in to PHPUnit then I will pick this back up then and get it ready for 1.0 and release it.

jwage avatar Jun 11 '19 23:06 jwage

Have you had any feedback from Sebastian as to whether this would be possible?

Out of interest, do you know of any solution that handles multiple docker stacks for unit testing in PHP, i.e DB, Web service and other micro-services that are scalable for each test suite?

joesaunderson avatar Jun 12 '19 06:06 joesaunderson

I have built that kind of setup multiple times, but nothing that is shareable/reusable right now.

jwage avatar Jun 12 '19 07:06 jwage

Anywhere you can point in the right direction? Struggling here.

Got a docker-compose bash wrapper that sets up what we need and puts data in the right places, but how to distribute tests and consolidate the results is proving difficult.

joesaunderson avatar Jun 13 '19 07:06 joesaunderson

A Jenkins cluster might be easier to get going. Do a 2 or 3 node cluster and create multiple jobs that run each chunk/group of tests. Before I built phpchunkit I just manually chunked tests in to groups by using group1, group2, etc. and I just ran several groups in parallel.

jwage avatar Jun 14 '19 01:06 jwage

We already do something similar to this. The solution we wanted was with multiple docker stacks on one node.

joesaunderson avatar Jun 14 '19 12:06 joesaunderson

Why? Do you have things parallelized in that setup?

jwage avatar Jun 14 '19 13:06 jwage

We have 9 applications that we want to be able to build independently of eachother... this potentially includes PR branches too.

There are selenium tests, so each stack has a selenium node and Firefox / chrome node. With a DB node and a web node.

We want to be able to spin up as many stacks of each application as we can, agnostic of what host they are on.

joesaunderson avatar Jun 15 '19 08:06 joesaunderson

Hello, i think this ticket is diverted from its original point which making an official release.

It has been already 6 months since the original request, and at work we would like to give this a try, but it conflicts with the minimum stability requirement.

@jwage is it possible you tag it and release soon?

Thanks.

mnsami avatar Jan 10 '20 10:01 mnsami