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

Speed up integration tests #13792

Merged
merged 2 commits into from Dec 3, 2018
Merged

Speed up integration tests #13792

merged 2 commits into from Dec 3, 2018

Conversation

diosmosis
Copy link
Member

@diosmosis diosmosis commented Dec 3, 2018

Changes:

  • Make ArchiveWebTest.php less intensive, since the archive.php web script is mostly for BC.
    • Added hidden Console.doRun event that tests can use to intercept console execution.
  • In View.php, get Twig instance through DI. In clearCompiledTemplates() Twig was created as a new instance each time. It only took ~.03s, but this function is called on updates and in plugin manager when a plugin is activated/installed/deactivated/uninstalled. Which means it is run multiple times for each plugin every time a Fixture is setup, and since there are many integration tests this means it is run quite a lot.

In total seems to save > 8mins. Will eventually have to split the build between core & plugins, though.

@diosmosis diosmosis added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Dec 3, 2018
@diosmosis diosmosis added this to the 3.8.0 milestone Dec 3, 2018
@diosmosis diosmosis merged commit 8ccbd91 into 3.x-dev Dec 3, 2018
@diosmosis diosmosis deleted the fix-build3 branch December 3, 2018 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant