Xfail esgf search tests if they fail with HTTP error from requests#1830
Xfail esgf search tests if they fail with HTTP error from requests#1830valeriupredoi wants to merge 4 commits intomainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1830 +/- ##
=======================================
Coverage 91.52% 91.52%
=======================================
Files 203 203
Lines 10920 10920
=======================================
Hits 9995 9995
Misses 925 925 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Good idea to fix this, but shall we fix the code instead of the tests? I was doing a tutorial on the tool today with some people and we had to modify everyone's ~/.esmvaltool/esgf-pyclient.yml file so it uses a different order of the index nodes. |
|
Created an issue to report the problem: #1833 |
Indeed, a code fix is better, but I think we should have a failsafe in place in testing too. Xpassed is better than failed 😁 |
Cool! I also reported the index node issue to CEDA 👍 |
|
Just created a pull request to fix the issue: #1833 |
Every user of ESMValCore with the default ESGF configuration is affected by this problem, so to me it seems really good that our unit test picked this up. |
you are correct, man, didn't realize that until today 😁 Am closing this since you fixed it proper in #1834 |
Description
The ESGF node at CEDA has been down for a few good hours now, and our tests are failing and rightly so! But this is the last thing we'd want to see when, say, we make a release and the package fails to build due to an annoying, and independent of us issue. I marked those tests as xfailed only when the exception occurs; most of the time it doesn't so we are still testing correctly - this id done like this:
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: