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

Improve execution time of railties' test #34971

Merged
merged 2 commits into from Feb 6, 2019

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Jan 18, 2019

This PR includes the following improvement.

  • Excludes unnecessary install tasks in engine test. Since action_text:install contains the execution of yarn, it slows.
  • Added that the preload of the newly added component was insufficient.

@rails-bot rails-bot bot added the railties label Jan 18, 2019
@kaspth
Copy link
Contributor

kaspth commented Jan 18, 2019

How much does this buy us?

@y-yagi
Copy link
Member Author

y-yagi commented Jan 19, 2019

As the result depends on the environment such as the network, the result is not stable, but this PR about to finish in about 35~37 minutes, while master now takes over 40 minutes.
master: https://travis-ci.org/rails/rails/builds/481557872
PR: https://travis-ci.org/rails/rails/builds/481216646

But before (as it is probably before the Action Mailbox is imported), it took about 30 minutes to complete, so I think there are probably other problems as well. I will investigate it.
https://travis-ci.org/rails/rails/builds/471912896

@y-yagi y-yagi force-pushed the improve_railties_test branch 8 times, most recently from f562753 to 7ab47b6 Compare January 31, 2019 03:54
@y-yagi y-yagi force-pushed the improve_railties_test branch 3 times, most recently from b7ac612 to 788a0e4 Compare February 4, 2019 23:38
For avoid to affect tests. Also, `action_text:install` task execute
`yarn add`. This is an expensive and should be avoided if it is not needed.
To avoid running require individually.
@y-yagi y-yagi changed the title [WIP] Improve execution time of railties' test Improve execution time of railties' test Feb 6, 2019
@y-yagi
Copy link
Member Author

y-yagi commented Feb 6, 2019

There are improvements I'd like to try yet, but first I'd like to merge this PR.

@y-yagi y-yagi merged commit daa264f into rails:master Feb 6, 2019
@y-yagi y-yagi deleted the improve_railties_test branch February 6, 2019 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants