-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix LFS errors for #20 #21
Conversation
Co-authored-by: Chengcai Shen <[email protected]>
These tests will not work since they are in files that were directly copied over from the NEI-modeling/NEI repository.
The class is adapted from the class EigenData2 which is in the eigenvaluetable.py file that will be deleted soon. The tests are adapted from the test_eigenvaluetable.py class that will also be deleted soon.
These were copied over from the NEI-modeling/NEI repository.
Co-authored-by: Chengcai Shen <[email protected]> Co-authored-by: Marcus Dupont <[email protected]>
This is done as per the docs: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-files-from-lfs It seems azure pipelines doesn't, by default, checkout LFS files. I realized this when I had issues cloning the repo including the LFS file.
Hello @StanczakDominik! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-05-01 10:14:39 UTC |
Codecov Report
@@ Coverage Diff @@
## master #21 +/- ##
============================================
- Coverage 100.00% 81.17% -18.83%
============================================
Files 2 4 +2
Lines 4 712 +708
============================================
+ Hits 4 578 +574
- Misses 0 134 +134
Continue to review full report at Codecov.
|
Gotcha! As per the docs at https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-files-from-lfs, it's the lack of this line in the OpenAstro run-tox-env.yaml template that's causing the LFS file not to get pulled during the checkout stage: https://github.com/PlasmaPy/PlasmaPy-NEI/pull/21/files#diff-fa9e59b6afe6a6ecdc0d1ee19d3befaeR59 I'm opening up a PR there. |
We ran into the issue of Azure not pulling git-lfs files during PlasmaPy/PlasmaPy-NEI#21 As it turns out, adding `lfs: true` to the `checkout` step as in this change: PlasmaPy/PlasmaPy-NEI@d3360c3 allows Azure to pull LFS files. This change was guided by Azure docs over at https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-files-from-lfs
Okay @namurphy, that should do the trick. It's probably best if you merge this branch into your PR before doing any further work there. |
For some reason the windows tox test is taking a good while longer. That's strange... |
the wheel and sdist tests are failing, the low-ish (I think...) size of the built package as per https://dev.azure.com/plasmapy/PlasmaPy-NEI/_build/results?buildId=778&view=logs&j=f7656e4a-aab1-5409-7a28-08f0d640eba6&t=a9542dd9-4ae8-5071-2817-2d1dda94f840&l=64 seems to imply the h5 file is not getting included in the sdist itself... A |
This reverts commit 035beb2.
I've reverted the changes as |
This is a temporary draft PR so I can experiment with CI and LFS
to fix #20's test failures while not polluting that commit tree.
Before merging:
git revert 0de1536011941b3e366669f790ba9a26664ee7c2 035beb2239a7b8cc7b14d790d7d07d4d65d7eaca d3360c3cba0fe95e949ec7d0cc35495c7929e8c1 adbc98b43dddd6becff51eaac9d0bc5b47e2465c
if Allow pulling git-lfs files in Azure CI OpenAstronomy/azure-pipelines-templates#40 is accepted, otherwise make it an issue