Skip to content

Speedup by not running in isolation #32

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

Merged
merged 3 commits into from
Jun 8, 2016
Merged

Speedup by not running in isolation #32

merged 3 commits into from
Jun 8, 2016

Conversation

stefanlenselink
Copy link
Contributor

  • Entity Generation not running in Isolation
  • Updated PHPUnit to 5.4.2 -> fixed broken unit-test (never worked).
  • Added hostnet/phpcs-tool and apply hostnet code style
  • Added Unittest for Writer and the EmptyGenerator.

Stefan Lenselink added 2 commits June 7, 2016 15:03
@nicoschoenmaker
Copy link
Contributor

Hmm, the php 5.5 build fails due to the requirement on hostnet/phpcs-tool, which requires >= php5.6. According to the php supported versions 5.5 will only receive security updates for 1 more month. Perhaps we should just drop 5.5 here as well?

@@ -223,7 +223,7 @@ private function generateConcreteIndividualCode(EntityPackageBuilder $graph)
$this->writeIfVeryVerbose(
' - Generating interface for <info>' . $entity->getName() . '</info>'
);
ReflectionGenerator::generateInIsolation($entity->getName());
ReflectionGenerator::main($entity->getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

Since it's no longer process isolated, I'd expect the ReflectionGenerator to be created in the activate function of Plugin, which creates the whole dependency graph (and does no work). This should make the unit-tests a lot easier.

@linaori
Copy link
Contributor

linaori commented Jun 8, 2016

I agree, there's no need for people to keep using old php versions and makes maintenance easier.

On a side note, it would be easier to review if you make different PRs out of this. I'm not entirely sure all changes are related to the same subject so it's hard to gain a proper overview of what's changed.

@@ -8,7 +8,7 @@
*
* @author Nico Schoenmaker <nschoenmaker@hostnet.nl>
*/
interface PackagePathResolver
interface PackagePathResolverInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

Please note that this is a BC break. If you're not planning on bumping a major, please add a BC layer for this

@nicoschoenmaker nicoschoenmaker merged commit 98a3bff into hostnet:master Jun 8, 2016
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