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

ci: Cache datasets #315

Merged
merged 16 commits into from
Nov 6, 2020
Merged

Conversation

akihironitta
Copy link
Contributor

@akihironitta akihironitta commented Oct 28, 2020

What does this PR do?

Fixes #279. All tests now use ./datasets/ to store downloaded datasets and to restore from if already downloaded.

Description of the changes

  • GitHub Actions
    • Add Cache datasets section
  • pytest
    • Remove unused tmpdir fixture
    • Create tests/conftest.py to define data_dir and DATA_DIR which can be referenced from each test.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #315 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #315      +/-   ##
==========================================
+ Coverage   82.37%   82.39%   +0.01%     
==========================================
  Files          99       99              
  Lines        5612     5611       -1     
==========================================
  Hits         4623     4623              
+ Misses        989      988       -1     
Flag Coverage Δ
cpu 24.62% <0.00%> (-0.02%) ⬇️
pytest 24.62% <0.00%> (-0.02%) ⬇️
unittests 81.78% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pl_bolts/models/mnist_module.py 100.00% <100.00%> (ø)
pl_bolts/datasets/cifar10_dataset.py 97.87% <0.00%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef34a17...126484f. Read the comment docs.

@pep8speaks
Copy link

pep8speaks commented Oct 29, 2020

Hello @akihironitta! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-11-06 13:16:11 UTC

@akihironitta akihironitta changed the title [WIP] CI: Cache datasets ci: Cache datasets Oct 30, 2020
@akihironitta akihironitta marked this pull request as ready for review October 30, 2020 17:43
@akihironitta
Copy link
Contributor Author

@akihironitta
Copy link
Contributor Author

I am not sure if the way of caching datasets is originally expected in the linked issue. If I am doing something which you find unreasonable, please let me know and close this PR! (It was a great opportunity to look through docs of actions/cache and pytest :])

@Borda Borda added datamodule Anything related to datamodules refactoring ci/cd Continues Integration and delivery labels Nov 6, 2020
@Borda Borda self-requested a review November 6, 2020 12:55
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

Nice, btw have you tested that DataModules really does not create any other folder?

@Borda Borda force-pushed the ci/cache-datasets branch from 88ac989 to 40cb4f9 Compare November 6, 2020 13:15
@Borda Borda merged commit bc01085 into Lightning-Universe:master Nov 6, 2020
@Borda Borda mentioned this pull request Nov 6, 2020
8 tasks
@akihironitta akihironitta mentioned this pull request Nov 27, 2020
8 tasks
@Borda Borda added this to the v0.3 milestone Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Continues Integration and delivery datamodule Anything related to datamodules refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add caching for used dataset
3 participants