E51D Speed up slow tests on PHP 5 by morozov · Pull Request #1079 · phpbrew/phpbrew · GitHub
[go: up one dir, main page]

Skip to content

Speed up slow tests on PHP 5#1079

Merged
morozov merged 1 commit intophpbrew:masterfrom
morozov:phpunit-speedup
Dec 8, 2019
Merged

Speed up slow tests on PHP 5#1079
morozov merged 1 commit intophpbrew:masterfrom
morozov:phpunit-speedup

Conversation

@morozov
Copy link
Contributor
@morozov morozov commented Dec 8, 2019

The slowest tests are:

Test Time, sec
Extension\KnownCommandTest::testBitbucketPackage 302
Command\InstallCommandTest::testKnownCommand 200
Command\UpdateCommandTest::testUpdateCommand 181
Command\KnownCommandTest::testOldMoreOption 178
Extension\ExtensionInstallerTest::testPackageUrl 18
Extension\KnownCommandTest::testPeclPackage 5
Patches\Apache2ModuleNamePatchTest::testPatch 1.5
VariantBuilderTest::testEverything 0.2

Summary of the changes:

  1. InstallCommandTest::testKnownCommand() communicates to php.net which is slow on Travis and is only needed as a dependency for ::testInstallCommand() which is skipped on Travis. Combined them together.
  2. Skip ExtensionInstallerTest::testPackageUrl() on Travis since VCR cannot properly record the binary file downloaded by the test.
  3. Refreshed and reorganized recordings for some other commands.

The slowest suites are down from 15+ minutes to 2 minutes.

1. `InstallCommandTest::testKnownCommand()` communicates to php.net which is slow on Travis and is only needed as a dependency for `::testInstallCommand()` which is skipped on Travis. Combined them together.
2. Skip `ExtensionInstallerTest::testPackageUrl()` on Travis since VCR cannot properly record the binary file downloaded by the test.
3. Refreshed and reorganized recordings for some other commands.
@morozov morozov changed the title Trying to identify slow tests on PHP 5 Speed up slow tests on PHP 5 Dec 8, 2019
@morozov morozov added CI Continuous integration Improvement Test Suite labels Dec 8, 2019
@morozov morozov self-assigned this Dec 8, 2019
@morozov morozov added this to the Release 1.25.0 milestone Dec 8, 2019
@morozov morozov merged commit 9588255 into phpbrew:master Dec 8, 2019
@morozov morozov deleted the phpunit-speedup branch December 8, 2019 19:35
@morozov morozov mentioned this pull request Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration Improvement Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

0