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

[4.2] Drone: Parallelizing tasks #37831

Merged
merged 7 commits into from
May 23, 2022
Merged

[4.2] Drone: Parallelizing tasks #37831

merged 7 commits into from
May 23, 2022

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented May 19, 2022

Summary of Changes

A downside of our current Drone setup is the long build time for even the few tests we have right now. The tests currently take about 33 minutes to run completely, mainly because large parts of it are executed sequentially instead of in parallel. This PR tries to parallelize the system tests where possible. The codeception "build" step is executed just once and before all other system and api tests. Afterwards, all system and api tests are executed first with the minimal PHP version for the given RDBMS and then with the maximum PHP version. That means that different RDBMS versions are executed in parallel and the same RDBMS versions with different PHP versions are run sequentially.
To separate the tests properly from each other, the whole setup is copied each time from the common folder to a folder inside of each docker instance and the tests are then executed from there. That prevents the tests from interfering with each other.

Since the whole site has been copied from the common folder to the docker instances internal folder, the default _output folder for screenshots wont work. I tried to set the common folder as target again, but couldn't honestly test this yet, since the tests didn't fail for me...

The PHPUnit PHP8 patch which we added some time ago has been removed again, since it has been failing for months already and has been obsolete.

@Hackwar Hackwar marked this pull request as ready for review May 20, 2022 19:37
@Hackwar Hackwar requested a review from rdeutz as a code owner May 20, 2022 19:37
@rdeutz rdeutz merged commit 3da674c into joomla:4.2-dev May 23, 2022
@Hackwar Hackwar deleted the 4.2-drone-2 branch May 23, 2022 09:42
@zero-24 zero-24 added this to the Joomla 4.2.0 milestone May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants