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

Fix behind EDL tests #480

Merged
merged 7 commits into from
Dec 21, 2023
Merged

Fix behind EDL tests #480

merged 7 commits into from
Dec 21, 2023

Conversation

JessicaS11
Copy link
Member

Per #448, Earthdatalogin tests are failing since we upgraded to earthaccess for auth. This PR is to fix those tests so they run.

Copy link

github-actions bot commented Dec 18, 2023

Binder 👈 Launch a binder notebook on this branch for commit 6122fd6

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit 9756c50

Binder 👈 Launch a binder notebook on this branch for commit 4def499

Binder 👈 Launch a binder notebook on this branch for commit 127b78f

Binder 👈 Launch a binder notebook on this branch for commit ca7f027

Binder 👈 Launch a binder notebook on this branch for commit b277a9e

Binder 👈 Launch a binder notebook on this branch for commit 347b219

@JessicaS11 JessicaS11 linked an issue Dec 18, 2023 that may be closed by this pull request
@JessicaS11 JessicaS11 requested a review from betolink December 18, 2023 20:27
@JessicaS11 JessicaS11 marked this pull request as ready for review December 18, 2023 20:27
@JessicaS11
Copy link
Member Author

@all-contributors please add @lheagy for mentoring, review

Copy link
Contributor

@JessicaS11

I've put up a pull request to add @lheagy! 🎉

Copy link
Contributor

@betolink betolink left a comment

Choose a reason for hiding this comment

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

Looks good to me, the only observation is to what users will see if they have hard-coded queries to V005.

@@ -23,6 +24,7 @@ def reg():

@pytest.fixture(scope="module")
def session(reg):
os.environ = {"EARTHDATA_USERNAME": "icepyx_devteam"}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably beyond the PR but have you all considered having a "default" username in case users want to use icepyx but don't have an EDL login? (don't quote me =) )

Copy link
Member Author

Choose a reason for hiding this comment

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

We have, and we were told in no uncertain terms not to do it (it would also be very hard to do without somehow exposing the password). Since it's an ubiquitous problem, as you are well aware, we opted to just have users get an EDL (since they would have to just about anywhere except OA and SlideRule, I think), and we store the secrets for a dev account for CI testing (which isn't accessible for PRs from forks either).

obs = is2ref._get_custom_options(session, "ATL06", "005")
with open("./icepyx/tests/ATL06v05_options.json") as exp_json:
obs = is2ref._get_custom_options(session, "ATL06", "006")
with open("./icepyx/tests/ATL06v06_options.json") as exp_json:
Copy link
Contributor

Choose a reason for hiding this comment

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

What would be the behavior if a script points to V005?

Copy link
Member Author

Choose a reason for hiding this comment

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

As long as it's still available from NSIDC, the version specified will be ordered. If not, whatever error comes from NSIDC in the request will be surfaced. The default is to the most recent version, so we hard code the version into the test so that when a new version is released any changes in the options don't cause an error before we can manually update the json.

@JessicaS11 JessicaS11 merged commit 6943f2f into development Dec 21, 2023
7 checks passed
@JessicaS11 JessicaS11 deleted the edltests branch December 21, 2023 15:52
JessicaS11 added a commit that referenced this pull request Jan 5, 2024
JessicaS11 added a commit that referenced this pull request Jan 5, 2024
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.

debug tests behind EDL - failing builds for PRs to main
2 participants