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

Resolved test suite run in separated process executed one by one in separated process. #6063

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akotulu
Copy link
Contributor

@akotulu akotulu commented Nov 30, 2024

Second pass of resolving RunClassInSeparateProcess attribute issues running TestSuite tests one by one in a separated process and calling before and after class methods for each test in the suite. Also test suite in separated process called primary process before and after class methods.

Created separated branch, it contains first pass modifications as well.

*
* @throws Exception
*/
protected function addTestMethod(ReflectionClass $class, ReflectionMethod $method, array $groups): void
Copy link
Contributor

@staabm staabm Dec 1, 2024

Choose a reason for hiding this comment

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

why have this methods been moved in this file? this makes the actual diff hard to read (in case this has been done by CS-fixer, it might make sense todo the private->public transformation in a separate PR, so the rest gets readable)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was done by CS-fixer. Only changed the access type.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, thx. I have this CS-fixer rule :)

Copy link
Contributor

@staabm staabm Dec 2, 2024

Choose a reason for hiding this comment

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

@sebastianbergmann wdyt about this CS fixer rule? :)
(most of the diff in this file of the PR is generated by the CS fixer sorting methods arround, because they changed the visibility. we don't see the actual changes anymore)

Copy link
Contributor

Choose a reason for hiding this comment

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

saying just that, maybe @akotulu could use separate commits for the CS fixing changes and the rest, so we could review commit by commit

Copy link
Owner

Choose a reason for hiding this comment

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

I agree that there is a conflict of objectives at play here: one the one hand, I want methods to be ordered in a certain way. On the other hand, the proposed changes should be readable. In this case the method ordering gets in the way of patch readability because the visitbility of a method is changed.

Copy link
Contributor Author

@akotulu akotulu Dec 3, 2024

Choose a reason for hiding this comment

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

Ok, how can I revert it or close this branch and add the modifications without CS fixer?
Hmm, atm I will revert the function back and add the modifications. Rebase and commit to this pull request. After successful review I will commit again with CS fixer?

@staabm
Copy link
Contributor

staabm commented Dec 2, 2024

please rebase

@akotulu
Copy link
Contributor Author

akotulu commented Dec 5, 2024

Rebased to main, also reverted to CS-fixer changes. Do I need to make a new pull request from my main?

@sebastianbergmann
Copy link
Owner

Force-pushing the current state to this PR should be enough.

@akotulu akotulu force-pushed the separated-process-improvement branch from 1f79abe to f4728e7 Compare December 5, 2024 07:28
@akotulu
Copy link
Contributor Author

akotulu commented Dec 5, 2024

Hope I did it right.

@akotulu
Copy link
Contributor Author

akotulu commented Jan 1, 2025

Hey, any progress on the review?

@sebastianbergmann
Copy link
Owner

I am currently only able to work for very short periods of time (and should not even do that), see https://phpc.social/deck/@sebastian/113487079241563305. I will get to this as soon as I am able to and kindly ask for your patience.

@sebastianbergmann sebastianbergmann force-pushed the separated-process-improvement branch from f4728e7 to 387c163 Compare January 13, 2025 13:03
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.

3 participants