-
Notifications
You must be signed in to change notification settings - Fork 283
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
remove race on globals #1826
remove race on globals #1826
Conversation
@marqh I hate to say it but you've got test failures in the test you were aiming to fix... |
This appears to be failing quite regularly now. It might need to be reverted. |
# Test writing to a file handle to test that the logger uses the | ||
# handle name | ||
with self.temp_filename(suffix='.pp') as mysavefile: | ||
iris.save(cube, mysavefile) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is a bit strange - it makes no assertions. I was expecting something in the rules.log to be tested...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think from reading it that this usage used to blow up, so this is just a regression test against previous problems.
Do you mean just the recent failure on #1829, or have you seen lots of others somewhere -- and are they intermittent, as that one seemed to be ? The "race" problem this tries to address is related to multi-threaded testing via nose. |
@QuLogic please may you confirm for me that the failures you are observing are on Travis and that the branches include this change? Please also include a stack trace, or pointer to a travis log, so I can look at the failure mode in more detail thank you |
i have also observed another failure in this test, but it is not directly caused by this change. As @pp-mo has indicated, there is something going on where a global: If this is the problem being reported, then I don't believe the change in this PR has caused this issue and I don't think the PR should be reverted.
it does not fail when I run the test in isolation, it can only occur when run as part of a suite of tests, and it is intermittent i'll continue looking |
Hmm, perhaps it's a red-herring that the above error started occurring after merging this one? As far as I can tell, it did not occur on any of @pp-mo's Python 3 PRs until they were updated to include this commit. |
Sort-of.
Really, this is an accident waiting to happen, equivalent to a mysterious delayed-action "from xx import *". I will look into this later on today. |
👍 NB. Related to this (but not a fix for this issue) I've put up #1836. |
#1837 addresses, hopefully |
changed logging to avoid the race condition on config during testing,
see:
https://travis-ci.org/SciTools/iris/jobs/89628997
https://travis-ci.org/SciTools/iris/jobs/89628998