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

Speed up ESGF search #1512

Merged
merged 5 commits into from
Mar 2, 2022
Merged

Speed up ESGF search #1512

merged 5 commits into from
Mar 2, 2022

Conversation

bouweandela
Copy link
Member

@bouweandela bouweandela commented Feb 28, 2022

Description

This pull request speeds up searching for files on ESGF. This requires the latest version of esgf-pyclient (0.3.1), because it uses a feature that was broken in the previous release. See ESGF/esgf-pyclient#75.

This pull request also takes into account that ESGF/esgf-pyclient#71 and conda-forge/esgf-pyclient-feedstock#12 have been solved now.


Before you get started

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:

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #1512 (82ccb14) into main (06d5de0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1512   +/-   ##
=======================================
  Coverage   90.74%   90.74%           
=======================================
  Files         197      197           
  Lines       10547    10547           
=======================================
  Hits         9571     9571           
  Misses        976      976           
Impacted Files Coverage Δ
esmvalcore/esgf/_search.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06d5de0...82ccb14. Read the comment docs.

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

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

cheers much @bouweandela - I will trun on one GA action here then turn it off if all goes well, so please don't merge just yet (I'll turn it on in a few minutes, I just merged a PR and that's hogging a fair bit of GA nodes now); @schlunma heads up you guys will have to change the feedstock recipe with the new pins Bouwe put it, I think 👍

@schlunma
Copy link
Contributor

schlunma commented Mar 2, 2022

I will do a couple of tests of the download feature with this change 👍

@valeriupredoi
Copy link
Contributor

I don't feel like opening anew issue and since we have @bouweandela 's attention here I'll just ask: we had loads of coonectivity issues to llnl last night: HTTPConnectionPool(host='esgf-node.llnl.gov', port=80): Read timed out. (read timeout=120) - probably everyone was streaming the State of the Union speech, would it be an option to bypass these if it's just a connection hiccup and mark tests xfail or skip? I think there was an issue about this now that I think about it...meh, Bouwe, what you reckon?

Copy link
Contributor

@schlunma schlunma left a comment

Choose a reason for hiding this comment

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

I tested 3 recipes with this and everything worked fine! From these 3 tests I cannot really tell if there is a speedup, but let's use the next round of recipe tests for that.

Thanks @bouweandela!!

@remi-kazeroni Please merge when you are happy with this 👍

Copy link
Contributor

@remi-kazeroni remi-kazeroni left a comment

Choose a reason for hiding this comment

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

Thanks a lot @bouweandela! It works fine for me as well. I have run several recipes and the ESGF search seemed rather fast. I can't tell the gain based on these runs. We'll have a better overview after the next round of recipe testing for the v2.5 release.

@remi-kazeroni remi-kazeroni merged commit 6c92433 into main Mar 2, 2022
@remi-kazeroni remi-kazeroni deleted the speedup-esgf-search branch March 2, 2022 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants