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 testing #504

Merged
merged 12 commits into from
Nov 28, 2019
Merged

speed-up testing #504

merged 12 commits into from
Nov 28, 2019

Conversation

Borda
Copy link
Member

@Borda Borda commented Nov 13, 2019

I have introduced a smaller test dataset which is only 2k samples from MNIST dataset which lower the testing time from about 20min just to 10min 😈
I have also refactored imports in the test section

@williamFalcon
Copy link
Contributor

@Borda can we spend some time working on making the tests faster? maybe use a smaller dataset or something?

@Borda
Copy link
Member Author

Borda commented Nov 13, 2019

can we spend some time working on making the tests faster? maybe use a smaller dataset or something?

that would be perfect, (that is why I made this as WIP) since some contributors are creating PR with their first commit instead of developing in own branch and make PR when it is ready... the problem is that such approach takes almost all your CI workers so than all other PRs have to queue for hours...

Yes, in general the test should be as simple and straight forward as possible, so for example we can do:

  • make the test dataset smaller
  • have lower number of iteration
  • use higher stop threshold

@Borda Borda mentioned this pull request Nov 14, 2019
@jeffling
Copy link
Contributor

For the queuing problem: An alternative solution I've seen for bigger opensource projects would be to have a trigger for testing through a github bot. This way we don't run on every commit.

  1. User creates WIP PR, asks for advice
  2. Advice administered
  3. User finishes PR, comments '/run-ci'
  4. A bot triggers CI on the build
  5. Build passes and PR can be merged.

@Borda Borda changed the title [WIP] extend CI timeout speed-up testing [wip] Nov 26, 2019
@Borda Borda changed the title speed-up testing [wip] speed-up testing Nov 27, 2019
# Conflicts:
#	pytorch_lightning/testing/__init__.py
#	pytorch_lightning/testing/lm_test_module.py
#	pytorch_lightning/testing/lm_test_module_base.py
#	pytorch_lightning/testing/lm_test_module_mixins.py
#	pytorch_lightning/testing/model.py
#	pytorch_lightning/testing/model_base.py
#	pytorch_lightning/testing/model_mixins.py
#	pytorch_lightning/testing/test_module.py
#	pytorch_lightning/testing/test_module_base.py
#	pytorch_lightning/testing/test_module_mixins.py
@Borda
Copy link
Member Author

Borda commented Nov 27, 2019

@williamFalcon @jeffling @neggert @Ir1d test time 20min -> 10min

Copy link
Contributor

@Ir1d Ir1d left a comment

Choose a reason for hiding this comment

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

This is really nice! Always wanted to speed up the tests

Co-Authored-By: Ir1dXD <[email protected]>
@williamFalcon williamFalcon merged commit 47659da into Lightning-AI:master Nov 28, 2019
@williamFalcon
Copy link
Contributor

@Borda great job!

@Borda Borda deleted the fix-CIrcleCI branch November 28, 2019 17:07
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.

4 participants