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

Explicitly cast to str a few cube and cubes instances in _io.py #2526

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

valeriupredoi
Copy link
Contributor

@valeriupredoi valeriupredoi commented Sep 17, 2024

Description

We found out in ESMValGroup/ESMValTool#3738 that one particular call to logger.debug hangs the run if the cube object it needs to print out is not explicitly cast to str - as @rswamina asks - why this happens only for certain datasets, and not for all, the answer is "beats me", but the run hanging is 100% due to this issue, and is perfectly reproducible on JASMIN (not elsewhere) - so I guess it's a combination of locale and the particular cube that needs be debug logged. At any rate, this fixes a problem that we don't really know the cause of, but fixes it does 😁


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:

@valeriupredoi valeriupredoi added the bug Something isn't working label Sep 17, 2024
@valeriupredoi
Copy link
Contributor Author

whoa!! Who's activated Precommit on PRs again? @bouweandela that you, bud?

@bouweandela
Copy link
Member

Sorry about that. Here is a pull request to disable the automatic commits: #2527

@valeriupredoi
Copy link
Contributor Author

Sorry about that. Here is a pull request to disable the automatic commits: #2527

cheers bud! Let me revert that PC commit now then

@valeriupredoi
Copy link
Contributor Author

OK that wildebeest is now gone, for good 😁

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.83%. Comparing base (4b0dd41) to head (4e18994).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2526   +/-   ##
=======================================
  Coverage   94.83%   94.83%           
=======================================
  Files         251      251           
  Lines       14191    14191           
=======================================
  Hits        13458    13458           
  Misses        733      733           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@valeriupredoi valeriupredoi marked this pull request as draft September 27, 2024 12:36
@valeriupredoi
Copy link
Contributor Author

converting this to Draft since it may need more stuff, depending what @rswamina finds out on JASMIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants