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

Use xscen new #427

Merged
merged 27 commits into from
Dec 12, 2024
Merged

Use xscen new #427

merged 27 commits into from
Dec 12, 2024

Conversation

tlogan2000
Copy link
Collaborator

Overview

This PR fixes [issue id]

Changes:

  • Added ...

Related Issue / Discussion

Additional Information

Links to other issues or sources.

@Zeitsperre Zeitsperre changed the base branch from master to update-xclim October 31, 2024 14:13
@tlogan2000
Copy link
Collaborator Author

Local run of test suite are struggling triggering pull request to see test failures.

@tlogan2000 tlogan2000 requested a review from aulemahal December 9, 2024 14:46
@tlogan2000 tlogan2000 marked this pull request as draft December 9, 2024 14:46
@tlogan2000 tlogan2000 requested a review from Zeitsperre December 9, 2024 14:47
@tlogan2000
Copy link
Collaborator Author

@aulemahal @Zeitsperre ... any idea why I get a permission error for test_wps_ensemble.py::test_ensemble_hxmax_days_above_grid_point ??

@aulemahal
Copy link
Collaborator

aulemahal commented Dec 9, 2024

I really can't see why... All the other tests pass and they do the same thing...

It passes successfully on my machine.

I do get the notebook failures, but the OpenDAP links in the log work in a standalone console...

@aulemahal
Copy link
Collaborator

@tlogan2000 Hypothèse : the issue stems from temporary directories. I switched most (all?) temp file handling in the tests to use pytest's functions instead of custom ones.

The notebook error were coming from a faulty is_opendap_url function. The function was performing a test that worked with Thredds v4, but does not with v5. From what I understand of the OpenDAP doc, the previous test was not required to work, but my change should.

In details : we were making a HEAD request on the "raw" URL. OpenDAP does not specify what the server should return when hitting the pure dataset url without any query. Thredds v4 was returning something, v5 is returning an error. My solution is to request the "metadata" of the dataset using the ".dds" "query", which is something all OpenDAP server should be able to do.

@github-actions github-actions bot added the CI Continuous Integration label Dec 9, 2024
@aulemahal
Copy link
Collaborator

Changing the temp dir methods didn't work, but dropping python 3.9 did.

Any reasons not to, @Zeitsperre ? I think finch is solely used by ClimateData and through it's docker image which installs python 3.12 by default I think.

@tlogan2000 tlogan2000 marked this pull request as ready for review December 10, 2024 22:11
@Zeitsperre
Copy link
Collaborator

@aulemahal Dropping Python3.9 is fine. We've already done this in recent versions of xclim and xscen. This is a web service, so an especially wide range of compatible Python versions isn't as important.

Copy link
Collaborator

@Zeitsperre Zeitsperre left a comment

Choose a reason for hiding this comment

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

LGTM

I think I might update the cookiecutter once this is merged in, then we can release a new version. Great work!

@Zeitsperre
Copy link
Collaborator

This is just waiting on an update to the changelog. Thanks again!

@Zeitsperre Zeitsperre merged commit 330bab0 into update-xclim Dec 12, 2024
8 of 9 checks passed
@Zeitsperre Zeitsperre deleted the use_xscen_new branch December 12, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants