-
Notifications
You must be signed in to change notification settings - Fork 84
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 failing integration tests #869
Conversation
👈 Launch a binder notebook on this branch for commit cf77990 I will automatically update this comment whenever this PR is modified 👈 Launch a binder notebook on this branch for commit e6fd006 👈 Launch a binder notebook on this branch for commit bc73b03 👈 Launch a binder notebook on this branch for commit b3a1ebf 👈 Launch a binder notebook on this branch for commit e615b43 👈 Launch a binder notebook on this branch for commit cf73e1d |
@mfisher87, I closed #866 and opened this PR in hopes of getting past the integration test problem, but it is still happening. I have no idea why, by the integration test jobs are not using the code in the PR, thus the fix in the PR is not being run. I can immediately tell this to be the case because this is at the top of the integration-tests step:
However, in the PR I have removed the I'm stumped at the moment as to why this is happening, particularly because I can similarly see that the unit tests are running the code from the PR. I'm wondering if this has to do with the cc: @jhkennedy |
Ah, I see that indeed the unit tests and integration tests are using different code. Code for unit tests is pulled from the PR, as we want, but the event is for Code for integration tests is pulled from main, not as we want, but the even is for I think that for integration tests we should not be skipping the |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files@@ Coverage Diff @@
## main #869 +/- ##
===========================================
- Coverage 73.88% 58.72% -15.17%
===========================================
Files 31 13 -18
Lines 2003 1100 -903
===========================================
- Hits 1480 646 -834
+ Misses 523 454 -69 ☔ View full report in Codecov by Sentry. |
e6fd006
to
bc73b03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chuckwondo I'm approving this so we can merge and check the action.
I have not, however, reviewed the changes in earthaccess/api.py
and earthaccess/store.py
, or the integration tests themselves. I don't fully grok what's going on there, or why unit tests -> integration tests.
Unfortunately, I don't have time this week (or next) to dive into those, so feel free to request a review from someone else if you want someone to dive into those parts. I'm fine with just though.
Thanks @jhkennedy! Fingers crossed. Regarding the move of unit tests -> integration tests, that's because the unit tests added for testing the new pqdm_kwargs argument rely on logging in because calling earthaccess.download requires being authenticated, but unit tests do not make use of the EDL creds configured as secrets, only integration tests do. However, it's still unclear to me how the original changes passed the unit test workflows. The mysteries of github workflows continue to confound me in new ways. |
Ugh! Now the commit ref is fouled up. I'm going to attempt to fix this ASAP! See https://github.com/nsidc/earthaccess/actions/runs/11693290544/job/32564527976 |
Integration tests started failing after #792 was merged. This PR attempts to fix them.
Pull Request (PR) draft checklist - click to expand
contributing documentation
before getting started.
title such as "Add testing details to the contributor section of the README".
Example PRs: #763
example
closes #1
. SeeGitHub docs - Linking a pull request to an issue.
CHANGELOG.md
with details about your change in a section titled## Unreleased
. If such a section does not exist, please create one. FollowCommon Changelog for your additions.
Example PRs: #763
README.md
with details of changes to theearthaccess interface, if any. Consider new environment variables, function names,
decorators, etc.
Click the "Ready for review" button at the bottom of the "Conversation" tab in GitHub
once these requirements are fulfilled. Don't worry if you see any test failures in
GitHub at this point!
Pull Request (PR) merge checklist - click to expand
Please do your best to complete these requirements! If you need help with any of these
requirements, you can ping the
@nsidc/earthaccess-support
team in a comment and wewill help you out!
Request containing "pre-commit.ci autofix" to automate this.
📚 Documentation preview 📚: https://earthaccess--869.org.readthedocs.build/en/869/