tlnagy / OMETIFF.jl

I/O operations for OME-TIFF files in Julia
Other
24 stars 7 forks source link

use exampletiffs as testdata source #88

Closed johnnychen94 closed 3 years ago

johnnychen94 commented 3 years ago

closes #87

I use git submodule feature because it avoids repeated test time data downloading.

Let's see if it works with my fork URL, and if it works, we can merge https://github.com/tlnagy/exampletiffs/pull/1 and then update the URL.

$ du -sh *
 16K    docs
  0B    exampletiffs
4.0K    LICENSE.md
4.0K    Project.toml
8.0K    README.md
 44K    src
1.1M    test

After git submodule update --remote:

 16K    docs
141M    exampletiffs
4.0K    LICENSE.md
4.0K    Project.toml
8.0K    README.md
 44K    src
1.1M    test

git clone still downloads the entire git history so it will still be slow unless we ignore the history, e.g., git clone git@github.com:johnnychen94/OMETIFF.jl.git --branch jc/testimages --depth 1

tlnagy commented 3 years ago

Appears that the git submodule isn't being downloaded before the tests?

johnnychen94 commented 3 years ago

Yep, it should work now! A new clone needs to follow with git submodule init so that git submodule update works and I made the if statement wrongly.

codecov[bot] commented 3 years ago

Codecov Report

Merging #88 (8775741) into master (2556424) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   95.65%   95.65%           
=======================================
  Files           6        6           
  Lines         345      345           
=======================================
  Hits          330      330           
  Misses         15       15           

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 2556424...8775741. Read the comment docs.

tlnagy commented 3 years ago

Do you mind bumping the patch version and then I can merge?

Thanks for putting this package on a diet! :sweat_smile:

johnnychen94 commented 3 years ago

Okay, let's merge https://github.com/tlnagy/exampletiffs/pull/1 first and I'll update the patch version and the submodule URL together.

tlnagy commented 3 years ago

Done.

johnnychen94 commented 3 years ago

Just a note, that in future PRs with large test image you might need to separate it into two PRs: one for OMETIFF and one for exampletiffs.

tlnagy commented 3 years ago

That's fine!

johnnychen94 commented 3 years ago

That's fine!

In this case, I think this PR is ready to merge.

tlnagy commented 3 years ago

Thanks for taking the initiative and getting this done 💯

johnnychen94 commented 3 years ago

hmmm, since it bumps the version, maybe make a new release?

IMO the VersionVigilante rule is too strong, maybe we should only trigger it when src/ is changed.

tlnagy commented 3 years ago

That's true. It's overly aggressive, but for projects that have slowed down the PR rate (like this one) it isn't a bad policy to have a release after each PR so that the changes make it out to stable without waiting forever.

hmmm, since it bumps the version, maybe make a new release?

Done