-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test backward compatibility #413
Conversation
@ChristianGeng this is funny. |
I tried to investigate the error that you are getting on windows via google. I find this thread interesting (despite both come trhough duckdb): duckdb/duckdb#8735 It basically says that
None of these however relate this to the windows platform. So I am also very startled what is going on here. |
Regarding the code location, I'm very confident that this is the affected code: Lines 271 to 279 in 44df511
So if we simply would catch try:
deps = Dependencies()
deps.load(cached_deps_file)
except KeyboardInterrupt:
raise
except Exception:
# If loading cached file fails, load again from backend.
# As loading of not compatible pickle files
# results in a variety of possible errors,
# we except all besides keyboard interruption
backend_interface = utils.lookup_backend(name, version)
deps = download_dependencies(backend_interface, name, version, verbose)
# Store as pickle in cache
deps.save(cached_deps_file) |
Probably then it will be hard to avoid a "catch-all". It is always a bit worrying ... |
At least if there is really another depedency file related error, it should be raised by the other code lines as well. I think, I'm more worried that |
Not sure whether I get it. Or is your worry about many problems after a release? |
No, they would not if the exception is raised due to a broken/non-compatible cache file, as the cache file is overwritten. |
As stated in audeering/audinterface#172 (comment), the actual problem regarding the failed Windows test might not be a backward compatibility issue, but an across platform compatibility issue when using the newest version of |
I ran into both the I think it isn't a cross-platform issue, but a compatibility issue with different This replicated the error:
Maybe the problem just manifested for Windows because it happened to install a different |
Thanks for reporting this. Would be nice if it is not a cross-platform issue. As then we can solve it by reloading the database and storing again when we experience an error. I will try to update the tests here to replicate your findings. |
...